/*
Theme Name: AF Tech Solutions
Theme URI: https://alexanderfolberth.de
Author: Alexander Folberth
Description: Individuelles One-Page-Theme für AF Tech Solutions: KI-Beratung, Schulung und Umsetzung.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: af-tech-solutions
*/

:root {
  --ink: #0c2b3d;
  --ink-2: #123a52;
  --ink-3: #1b4a66;
  --paper: #f3f6f6;
  --card: #ffffff;
  --accent: #2ec4b6;
  --accent-deep: #0e8a7e;
  --mist: #9fb6c3;
  --line: rgba(12, 43, 61, 0.14);
  --line-light: rgba(243, 246, 246, 0.16);
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;
  --radius: 14px;
  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 43, 61, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-light);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 6px; text-decoration: none; flex-shrink: 0; }
.brand .custom-logo-link { display: flex; align-items: center; line-height: 0; margin: 0; padding: 0; }
.brand img,
.brand .custom-logo,
.brand .custom-logo-link img,
.site-header a img,
.site-header img {
  height: 42px !important;
  width: auto !important;
  max-height: 42px !important;
  max-width: 160px !important;
}
.brand-name {
  font-family: var(--display); font-weight: 700; font-size: 1rem;
  letter-spacing: 0.02em; color: #fff; white-space: nowrap;
}
.brand-name span { color: var(--accent); }
.main-nav ul { list-style: none; display: flex; gap: 30px; }
.main-nav a {
  text-decoration: none; color: #d7e3ea; font-size: 0.95rem; font-weight: 500;
  transition: color 0.2s;
}
.main-nav a:hover, .main-nav a:focus-visible { color: var(--accent); }
.nav-cta {
  border: 1px solid var(--accent); border-radius: 999px;
  padding: 8px 18px; color: var(--accent) !important;
}
.nav-cta:hover { background: var(--accent); color: var(--ink) !important; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.7rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 70%, var(--ink-3) 100%);
  color: #f2f7f9;
  padding: 110px 0 130px;
}
.hero-net {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.5; pointer-events: none;
}
.hero .wrap { position: relative; }
.eyebrow {
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.3rem, 5.2vw, 4rem);
  line-height: 1.08; letter-spacing: -0.015em; max-width: 17ch;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lede {
  margin-top: 26px; max-width: 56ch; font-size: 1.13rem; color: #c9d9e2;
}
.hero-actions { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  font-size: 1rem; border-radius: 999px; padding: 14px 30px;
  transition: transform 0.15s, background 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: #54d6c9; }
.btn-ghost { border: 1px solid rgba(255,255,255,0.4); color: #fff; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.hero-note { margin-top: 22px; font-family: var(--mono); font-size: 0.82rem; color: var(--mist); }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.12;
  letter-spacing: -0.01em;
}
.section-head p { margin-top: 16px; color: #3c5868; }

/* Leistungen */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 30px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(12,43,61,0.10); }
.card .tag {
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent-deep);
}
.card h3 { font-family: var(--display); font-weight: 700; font-size: 1.3rem; }
.card p { color: #3c5868; font-size: 0.98rem; }
.card ul { list-style: none; margin-top: 6px; }
.card li { padding-left: 22px; position: relative; font-size: 0.95rem; color: #2c4a5b; margin-bottom: 8px; }
.card li::before { content: "→"; position: absolute; left: 0; color: var(--accent-deep); }

/* Vorgehen */
.process { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.step .num {
  font-family: var(--mono); font-size: 0.85rem; color: var(--accent-deep);
  border: 1px solid var(--line); border-radius: 999px;
  display: inline-block; padding: 4px 14px; margin-bottom: 18px;
}
.step h3 { font-family: var(--display); font-weight: 700; font-size: 1.2rem; margin-bottom: 10px; }
.step p { color: #3c5868; font-size: 0.97rem; }

/* Über mich */
.about-grid { display: grid; grid-template-columns: 380px 1fr; gap: 64px; align-items: start; }
.portrait {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 24px 50px rgba(12,43,61,0.16);
}
.about h2 { font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 8px; }
.about .role { font-family: var(--mono); font-size: 0.85rem; color: var(--accent-deep); margin-bottom: 22px; letter-spacing: 0.08em; }
.about p { color: #3c5868; margin-bottom: 16px; max-width: 60ch; }
.vita { margin-top: 34px; border-left: 2px solid var(--accent); padding-left: 26px; }
.vita h3 { font-family: var(--display); font-size: 1.05rem; margin-bottom: 16px; }
.vita ul { list-style: none; }
.vita li { margin-bottom: 14px; font-size: 0.96rem; color: #2c4a5b; }
.vita .year { font-family: var(--mono); color: var(--ink); font-weight: 600; margin-right: 10px; }

/* Werte */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.value {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.value h4 { font-family: var(--display); font-size: 1.05rem; margin-bottom: 8px; }
.value p { font-size: 0.92rem; color: #3c5868; margin: 0; }

/* Kontakt */
.contact {
  background: linear-gradient(150deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #f2f7f9; text-align: center;
}
.contact h2 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.01em;
}
.contact p { margin: 20px auto 0; max-width: 52ch; color: #c9d9e2; }
.contact .hero-actions { justify-content: center; }
.socials { margin-top: 36px; display: flex; gap: 26px; justify-content: center; }
.socials a { color: var(--mist); text-decoration: none; font-family: var(--mono); font-size: 0.88rem; letter-spacing: 0.1em; }
.socials a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #9fb6c3; padding: 40px 0; border-top: 1px solid var(--line-light); }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; }
.site-footer nav ul { list-style: none; display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer a { color: #9fb6c3; text-decoration: none; font-size: 0.9rem; }
.site-footer a:hover { color: var(--accent); }
.copyright { font-family: var(--mono); font-size: 0.8rem; }

/* ---------- Unterseiten (Impressum etc.) ---------- */
.page-content { background: var(--card); }
.page-content .wrap { max-width: 800px; padding-top: 80px; padding-bottom: 100px; }
.page-content h1 { font-family: var(--display); font-weight: 800; font-size: 2.2rem; margin-bottom: 30px; }
.page-content h2, .page-content h3 { font-family: var(--display); margin: 32px 0 12px; }
.page-content p, .page-content li { color: #2c4a5b; margin-bottom: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .cards, .steps, .values { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .portrait { max-width: 380px; }
}
@media (max-width: 760px) {
  .main-nav { display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--ink); border-bottom: 1px solid var(--line-light); padding: 18px 24px 26px; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 18px; }
  .nav-toggle { display: block; }
  section { padding: 70px 0; }
  .hero { padding: 80px 0 90px; }
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
