/* ============================================================
   TQS – Transport Qualification Services · Startseite (V3, Oktober 2026)
   Mobile-first. Fuenf Bereiche mit je eigener Darstellungsform:
   1 Hero · 2 Leistungen (Spalten mit Trennlinien) · 3 Herausforderungen
   (Anthrazit, Liste) · 4 Wissen & Werkzeuge (Panel + redaktionelle Links)
   · 5 Kontakt (Anthrazit) · Footer.
   ============================================================ */

/* ---------- 1. Reset & Tokens ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --black: #0a0a0a; --white: #ffffff; --gray-100: #f5f5f5;
  --gray-200: #e8e8e8; --gray-400: #999999; --gray-600: #555555;
  --gray-800: #222222; --accent: #c8a96e; --accent-light: rgba(200,169,110,0.15);
  --accent-dark: #8a6c33;
  --nav-h: 68px;
  --container-max: 1480px;
  --container-gutter: 56px;
  --gutter: 20px;                 /* Seitenrand Mobile */
  /* Zentrale Abstands-Tokens (fluid ueber clamp):
     Section oben/unten 28 -> 52px, Ueberschrift -> Inhalt 16 -> 24px,
     Element-Abstand 10 -> 16px, Innenabstand 16 -> 22px */
  --sec-y: clamp(1.75rem, 1.1rem + 2.4vw, 3.25rem);
  --head-gap: clamp(1rem, 0.8rem + 0.6vw, 1.5rem);
  --card-gap: clamp(0.625rem, 0.5rem + 0.4vw, 1rem);
  --card-pad: clamp(1rem, 0.85rem + 0.5vw, 1.375rem);
  /* Flaechen: Weiss, Off-White, Anthrazit; Gold nur als Akzent */
  --offwhite: #f7f7f5; --anthracite: #222222;
  --fs-mobile-hero: clamp(1.75rem, 1.10714rem + 2.85714vw, 1.875rem); /* 28-30px */
  --fs-mobile-section: clamp(1.25rem, 0.60714rem + 2.85714vw, 1.375rem); /* 20-22px */
  --fs-mobile-card-title: 16.5px;
  --fs-mobile-body: 15px;
}
html { scroll-behavior: smooth; overflow-x: clip; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
section[id] { scroll-margin-top: var(--nav-h); }
body { font-family: 'DM Sans', sans-serif; background: var(--white); color: var(--black); overflow-x: hidden; overflow-wrap: break-word; line-height: 1.5; }
img, svg { max-width: 100%; height: auto; display: block; }
body.menu-open { overflow: hidden; }
a { color: inherit; }
ul, ol { list-style: none; }
h1, h2, h3 { hyphens: manual; -webkit-hyphens: manual; word-break: normal; overflow-wrap: normal; text-wrap: balance; }

/* ---------- 2. Basis / Utilities ---------- */
.wrap { width: 100%; max-width: calc(var(--container-max) + (var(--container-gutter) * 2)); margin: 0 auto; padding: 0 var(--gutter); }
.sec { padding: var(--sec-y) 0; background: var(--white); }
.sec--alt { background: var(--offwhite); }
.sec--ink { background: var(--anthracite); color: var(--white); }

.sec-title {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
  line-height: 1.15; letter-spacing: -0.015em; text-wrap: balance; max-width: 26ch;
}

/* Textlink mit Pfeil (Satzschreibung statt Versalien) */
.more-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-size: 14px; font-weight: 500; color: var(--accent-dark); text-decoration: none;
}
.more-link::after { content: '→'; color: var(--accent); transition: transform 0.25s; }
.more-link:hover::after { transform: translateX(4px); }

a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Reveal: Mobile bewusst kurz und mit kleinem Versatz, damit nichts das
   Lesen/Scrollen verzoegert. Nur unter html.js-anim (ohne JS sofort sichtbar). */
html.js-anim .reveal { opacity: 0; transform: translateY(10px); transition: opacity 0.4s ease, transform 0.4s ease; }
html.js-anim .reveal.visible { opacity: 1; transform: none; }

/* ---------- 3. Navigation ---------- */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 12px var(--gutter); display: flex; align-items: center; justify-content: space-between;
  transition: background 0.35s ease, padding 0.35s ease;
}
#nav::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 150%; z-index: -1; pointer-events: none; background: linear-gradient(to bottom, rgba(10,10,10,0.6), rgba(10,10,10,0)); transition: opacity 0.3s ease; }
#nav.scrolled::before { opacity: 0; }
#nav.scrolled { background: rgba(10,10,10,0.9); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); padding: 10px var(--gutter); }
.nav-inner { display: contents; }
.nav-right { display: contents; }
.nav-logo-link { display: flex; flex-direction: column; gap: 2px; line-height: 1; text-decoration: none; }
.nav-logo-sub { display: none; font-size: 9px; font-weight: 400; letter-spacing: 0.12em; color: rgba(255,255,255,0.45); text-transform: uppercase; }
.nav-logo-img { height: 28px; width: auto; max-width: none; display: block; align-self: flex-start; object-fit: contain; }
.nav-links, .nav-ctas { display: none; }

/* Mobile: kompakter Kontakt-CTA rechts + Burger */
.nav-m { display: flex; align-items: center; gap: 4px; }
/* Anfrage-Button (Header): deckend Anthrazit (immer lesbar, unabhaengig vom Hero-Bild),
   Goldrahmen, weisse Schrift, goldener Pfeil; Hover: sanfte Goldfuellung + dezenter Glow */
.cta-arrow { width: 13px; height: 13px; flex-shrink: 0; fill: none; stroke: #c7a66b; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s ease, stroke 0.2s ease; }
.nav-contact-m {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 4px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.02em; color: #ffffff; background: none; border: 0; text-decoration: none; text-shadow: 0 1px 10px rgba(0,0,0,0.55);
  border-bottom: 1px solid #c8a96e; border-radius: 0; line-height: 1.6; margin-bottom: 0;
}
.nav-contact-m { gap: 6px; }
.nav-contact-m .cta-arrow { width: 12px; height: 12px; fill: none; stroke: #c8a96e; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-contact-m:hover, .nav-contact-m:active, .nav-contact-m:focus-visible { border-bottom-width: 2px; }
.nav-burger {
  width: 44px; height: 44px; border: none; background: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0; flex-shrink: 0;
}
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--white); transition: transform 0.3s ease, opacity 0.3s ease; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobiles Menue: kompakt, ohne Beschreibungen */
.mobile-menu {
  position: fixed; inset: 0; z-index: 150; overflow-y: auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(10,10,10,0.98); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  padding: calc(var(--nav-h) + 8px) 24px 32px;
}
.mobile-menu.open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.mobile-menu-links { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mobile-menu-link {
  font-family: 'Syne', sans-serif; font-size: 19px; font-weight: 700; color: var(--white);
  text-decoration: none; min-height: 48px; display: flex; align-items: center; gap: 8px; padding: 4px 14px;
  transition: color 0.2s;
}
.mobile-menu-link.active, .mobile-menu-link:hover, .mobile-menu-link:active { color: var(--accent); }
.mobile-menu-sub { text-align: center; }
.mobile-menu-sub > summary { list-style: none; cursor: pointer; justify-content: center; }
.mobile-menu-sub > summary::-webkit-details-marker { display: none; }
.mobile-menu-sub > summary::after { content: '▾'; font-size: 12px; color: var(--accent); transition: transform 0.2s; }
.mobile-menu-sub[open] > summary::after { transform: rotate(180deg); }
.mobile-menu-sub-links { display: flex; flex-direction: column; gap: 0; margin: 2px 0 8px; }
.mobile-menu-sub-links a {
  font-size: 15px; font-weight: 500; color: rgba(255,255,255,0.65);
  text-decoration: none; min-height: 42px; display: flex; align-items: center; justify-content: center;
}
.mobile-menu-sub-links a:hover, .mobile-menu-sub-links a:active { color: var(--accent); }

/* Desktop-Navigation */
.nav-link { position: relative; font-size: 13.5px; font-weight: 500; letter-spacing: 0.03em; color: rgba(255,255,255,0.75); text-decoration: none; transition: color 0.25s; padding: 4px 0; }
.nav-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.25s; }
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link.active::after, .nav-link:hover::after { transform: scaleX(1); }
.nav-drop { position: relative; display: flex; }
.nav-drop-panel {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(4px);
  background: rgba(10,10,10,0.98); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 4px; padding: 8px; margin-top: 8px;
  display: flex; flex-direction: column; gap: 0; min-width: 300px; white-space: nowrap;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease;
}
.nav-drop-panel::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav-drop:hover .nav-drop-panel, .nav-drop:focus-within .nav-drop-panel { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.nav-drop-group { font-size: 10px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.35); padding: 8px 12px 2px; }
.nav-drop-panel a {
  font-size: 13px; font-weight: 400; color: rgba(255,255,255,0.75); text-decoration: none;
  padding: 6px 12px; border-radius: 3px; min-height: 32px; display: flex; align-items: center;
  transition: background 0.2s, color 0.2s;
}
.nav-drop-panel a:hover { background: rgba(255,255,255,0.06); color: var(--accent); }
.nav-drop-panel a.nav-drop-all { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 4px; padding-top: 8px; color: var(--accent); font-weight: 500; }

/* ---------- 4. Hero ---------- */
/* Kompakt auf allen Breiten: Mobile nur so hoch wie der Inhalt, Desktop
   grosszuegig, aber nicht mehr bildschirmfuellend - die Leistungen
   kuendigen sich am unteren Rand bereits an. Hintergrund liegt bewusst
   auf #home (CSS-Background), damit ein spaeterer zeitabhaengiger
   Bildwechsel nur diese eine Regel/Klasse tauschen muss. */
#home {
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + 28px) 0 32px;
  background: linear-gradient(170deg, rgba(10,10,10,0.6) 0%, rgba(10,10,10,0.86) 55%, rgba(10,10,10,0.97) 100%),
              url('https://images.pexels.com/photos/10802569/pexels-photo-10802569.jpeg?auto=compress&cs=tinysrgb&w=800') center/cover no-repeat;
  background-color: var(--black);
}
.hero-noise {
  position: absolute; inset: 0; opacity: 0.03; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 2; }
.hero-h1 {
  font-family: 'Syne', sans-serif; font-weight: 700; color: var(--white);
  font-size: var(--fs-mobile-hero); line-height: 1.06; letter-spacing: -0.02em;
  margin-bottom: 12px; text-wrap: wrap; overflow-wrap: normal; hyphens: none;
}
.hl-line { display: block; }
.hero-sub { font-size: 15px; font-weight: 400; line-height: 1.5; color: rgba(255,255,255,0.8); max-width: 40ch; margin-bottom: 20px; }
.hero-sub-line { display: block; white-space: nowrap; }
.hero-ask { margin: 0 0 26px; }
.hero-ask-label { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.65); margin-bottom: 12px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: #fff; text-decoration: none; background: rgba(10,10,10,.45); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .25s ease; }
.hero-chip:hover, .hero-chip:focus-visible { background: rgba(200,169,110,.18); border-color: #c8a96e; color: #fff; transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .hero-chip { transition: none; } .hero-chip:hover { transform: none; } }
.hero-link {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px;
  font-size: 15px; font-weight: 500; letter-spacing: 0.01em; color: rgba(255,255,255,0.88); text-decoration: none;
  transition: color 0.2s;
}
.hero-link .arrow {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(200,169,110,0.6);
  display: inline-flex; align-items: center; justify-content: center; color: var(--accent); font-size: 14px;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.hero-link:hover { color: var(--white); }
.hero-link:hover .arrow { background: var(--accent); color: var(--anthracite); transform: translateY(3px); }

/* ---------- 5. Leistungen: drei Bereiche mit Trennlinien statt Karten ---------- */
.svc { border-top: 1px solid var(--anthracite); margin-top: var(--head-gap); }
.svc li { border-bottom: 1px solid var(--gray-200); }
.svc-item {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 14px;
  padding: 16px 0; text-decoration: none; color: var(--black);
}
.svc-item::before {
  content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s cubic-bezier(0.16,0.8,0.3,1);
}
.svc-top { display: contents; }
.svc-icon {
  width: 40px; height: 40px; border-radius: 50%; background: var(--offwhite);
  display: flex; align-items: center; justify-content: center; transition: background 0.25s;
}
.svc-icon svg { width: 18px; height: 18px; fill: none; stroke: var(--anthracite); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.svc-go {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  color: var(--accent); font-size: 16px; transition: transform 0.25s;
}
.svc-body { padding-right: 28px; }
.svc-title { font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 16.5px; line-height: 1.3; margin-bottom: 2px; text-wrap: wrap; }
.svc-text { display: block; font-size: 14px; font-weight: 300; line-height: 1.5; color: var(--gray-600); }
.svc-item:hover .svc-title { color: var(--accent-dark); }
.svc-item:hover .svc-go { transform: translate(4px, -50%); }
.svc-item:hover::before { transform: scaleX(1); }

/* ---------- 6. Herausforderungen: Anthrazit, Liste mit Goldpfeilen ---------- */
.sec-lead { font-size: 15px; font-weight: 300; line-height: 1.5; color: var(--gray-600); margin-top: 6px; max-width: 46ch; }
.sec--ink .sec-lead { color: rgba(255,255,255,0.62); }
.issues { border-top: 1px solid rgba(255,255,255,0.14); margin-top: var(--head-gap); }
.issues li { border-bottom: 1px solid rgba(255,255,255,0.14); }
.issue {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 0; text-decoration: none; color: var(--white);
}
.issue-title { display: block; font-size: 16px; font-weight: 600; line-height: 1.3; margin-bottom: 3px; transition: color 0.2s; }
.issue-text { display: block; font-size: 14px; font-weight: 300; line-height: 1.5; color: rgba(255,255,255,0.62); }
.issue-go {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(200,169,110,0.45);
  display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 15px;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.issue:hover .issue-title { color: var(--accent); }
.issue:hover .issue-go { background: var(--accent); color: var(--anthracite); transform: translateX(3px); }

/* ---------- 7. Wissen & Werkzeuge: zwei unterschiedliche Darstellungsformen ---------- */
.ww { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: var(--head-gap); }
.ww-sub { font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--gray-600); margin-bottom: 10px; }
/* Tools: EIN weisses Panel mit Trennlinien statt drei Einzelkarten */
.tools { background: var(--white); border: 1px solid var(--gray-200); border-radius: 4px; }
.tools li + li { border-top: 1px solid var(--gray-200); }
.tool {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 12px 14px; min-height: 60px; text-decoration: none; color: var(--black); transition: background 0.2s;
}
.tool-badge {
  width: 40px; height: 40px; border-radius: 3px; background: var(--offwhite); border: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: center;
  font-size: 9.5px; font-weight: 600; letter-spacing: 0.08em; color: var(--anthracite);
}
.tool-badge--check svg { width: 16px; height: 16px; fill: none; stroke: var(--accent-dark); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tool-title { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; }
.tool-meta { display: block; font-size: 12.5px; color: var(--gray-400); }
.tool-action { font-size: 13px; font-weight: 500; color: var(--accent-dark); white-space: nowrap; }
.tool-action span { color: var(--accent); display: inline-block; transition: transform 0.25s; }
.tool:hover { background: #fbfbfa; }
.tool:hover .tool-title { color: var(--accent-dark); }
.tool:hover .tool-action span { transform: translateY(2px); }
.tool[href$=".html"]:hover .tool-action span { transform: translateX(3px); }
/* Artikel: redaktionelle Textlinks mit Trennlinie, keine Karten */
.articles { border-top: 1px solid var(--gray-200); }
.articles li { border-bottom: 1px solid var(--gray-200); }
.article { display: block; padding: 12px 0; text-decoration: none; color: var(--black); }
.article-cat { display: block; font-size: 12.5px; color: var(--gray-400); margin-bottom: 2px; }
.article-title { display: block; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 16.5px; line-height: 1.3; letter-spacing: -0.01em; transition: color 0.2s; }
.article-link { display: inline-block; margin-top: 4px; font-size: 13px; font-weight: 500; color: var(--accent-dark); }
.article-link span { color: var(--accent); display: inline-block; transition: transform 0.25s; }
.article:hover .article-title { color: var(--accent-dark); }
.article:hover .article-link span { transform: translateX(4px); }
.ww-col .more-link { margin-top: 6px; }

/* ---------- 8. Kontakt ---------- */
#kontakt-cta { position: relative; overflow: hidden; }
#kontakt-cta::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 90% at 100% 100%, rgba(200,169,110,0.10) 0%, transparent 60%);
}
#kontakt-cta::after { content: ''; position: absolute; left: var(--gutter); top: 0; width: 48px; height: 2px; background: var(--accent); }
.close { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 18px; }
/* Direkte Erreichbarkeit: drei kompakte Icon-Links statt Button */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-meta { margin-top: 18px; font-size: 14px; color: rgba(255,255,255,0.62); }
.cta-meta a { color: rgba(255,255,255,0.85); text-decoration: none; border-bottom: 1px solid rgba(200,169,110,0.5); }
.cta-meta a:hover { color: var(--accent); }
@media (max-width: 640px) {
  #kontakt-cta .sec-title { font-size: 1.4rem; line-height: 1.2; }
  #kontakt-cta .cta-row { flex-direction: column; gap: 10px; }
  #kontakt-cta .btn-primary, #kontakt-cta .btn-secondary { width: 100%; min-height: 46px; padding: 12px 18px; font-size: 13px; }
  .cta-meta { font-size: 14px; line-height: 1.9; }
  .cta-meta .sep { display: none; }
  .cta-meta a { white-space: nowrap; display: inline-block; margin-right: 14px; }
}
.btn-primary, .btn-secondary { font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500; letter-spacing: 0.06em; padding: 14px 26px; border-radius: 2px; text-decoration: none; text-transform: uppercase; transition: all 0.25s ease; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; border: 1px solid transparent; }
.btn-primary { background: var(--accent); color: #0a0a0a; }
.btn-primary:hover { background: #dbbf85; }
.btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,0.45); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.reach { border-top: 1px solid rgba(255,255,255,0.12); }
.reach li { border-bottom: 1px solid rgba(255,255,255,0.12); }
.reach-item { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 8px 0; text-decoration: none; color: var(--white); }
.reach-icon {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(200,169,110,0.5);
  display: flex; align-items: center; justify-content: center; color: var(--accent);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.reach-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.reach-icon--fill svg { fill: currentColor; stroke: none; }
.reach-label { display: block; font-size: 15px; font-weight: 600; line-height: 1.25; transition: color 0.2s; }
.reach-sub { display: block; font-size: 12.5px; color: rgba(255,255,255,0.55); line-height: 1.3; }
.reach-item:hover .reach-icon { background: var(--accent); border-color: var(--accent); color: var(--anthracite); }
.reach-item:hover .reach-label { color: var(--accent); }

/* ---------- 9. Footer ---------- */
footer {
  background: var(--anthracite); border-top: 1px solid rgba(255,255,255,0.08); padding: 14px 20px;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 16px; }
.footer-copy { font-size: 11.5px; color: rgba(255,255,255,0.4); letter-spacing: 0.02em; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px; }
.footer-links a { font-size: 11.5px; color: rgba(255,255,255,0.55); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; transition: color 0.25s; }
.footer-links a:hover { color: var(--accent); }
.footer-dot { color: rgba(200,169,110,0.55); font-size: 11px; }

@media (max-width: 359px) {
  :root { --gutter: 16px; }
  .nav-contact-m { padding: 0 2px; font-size: 13.5px; }
  .tool { grid-template-columns: minmax(0, 1fr) auto; }
  .tool-badge { display: none; }
}

/* ============================================================
   TABLET (min-width: 768px)
   ============================================================ */
@media (min-width: 768px) {
  :root { --gutter: 40px; }
  html.js-anim .reveal { transform: translateY(16px); transition-duration: 0.55s; }

  #nav { padding: 18px var(--gutter); }
  #nav.scrolled { padding: 13px var(--gutter); }

  #home { padding: calc(var(--nav-h) + 64px) 0 64px; }
  .hero-h1 { font-weight: 800; font-size: clamp(2.6rem, 6vw, 3.2rem); line-height: 1.04; margin-bottom: 16px; }
  .hero-sub { font-size: 16.5px; max-width: 46ch; margin-bottom: 28px; }

  /* Leistungen: drei Spalten, getrennt durch feine vertikale Linien */
  .svc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--gray-200); }
  .svc li:nth-child(odd) { border-left: none; }
  .svc li:nth-child(n+3) { border-top: 1px solid var(--gray-200); }
  .svc li:nth-child(odd) .svc-item { padding-left: 0; }
  .svc li:nth-child(even) .svc-item { padding-right: 0; }
  .svc li { border-bottom: none; }
  .svc li + li { border-left: 1px solid var(--gray-200); }
  .svc-item { display: flex; flex-direction: column; align-items: stretch; height: 100%; padding: var(--card-pad); gap: 0; }
  .svc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
  .svc-go { position: static; transform: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(200,169,110,0.5); display: flex; align-items: center; justify-content: center; font-size: 14px; transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s; }
  .svc-item:hover .svc-go { transform: translateX(3px); background: var(--accent); border-color: var(--accent); color: var(--anthracite); }
  .svc-body { padding-right: 0; }
  .svc-title { font-size: 17.5px; margin-bottom: 6px; }
  .svc-item:hover .svc-icon { background: var(--accent-light); }

  .split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }

  .ww { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; }

  .reach { display: grid; grid-template-columns: repeat(2, auto); justify-content: start; gap: 0 36px; border-top: none; }
  .reach li { border-bottom: none; }

  footer { padding: 20px 40px 18px; }
}

/* ============================================================
   DESKTOP (min-width: 1024px)
   ============================================================ */
@media (min-width: 1100px) {
  .svc { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .svc li:nth-child(n+3) { border-top: none; }
  .svc li:nth-child(odd) { border-left: 1px solid var(--gray-200); }
  .svc li:first-child { border-left: none; }
  .svc li:nth-child(n) .svc-item { padding-left: var(--card-pad); padding-right: var(--card-pad); }
  .svc li:first-child:nth-child(n) .svc-item { padding-left: 0; }
  .svc li:last-child:nth-child(n) .svc-item { padding-right: 0; }
}

@media (min-width: 1024px) {
  :root { --nav-h: 88px; --gutter: var(--container-gutter); }
  html.js-anim .reveal { transform: translateY(20px); transition-duration: 0.6s; }

  #nav { padding: 24px 0; justify-content: center; }
  #nav.scrolled { padding: 16px 0; }
  .nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: calc(var(--container-max) + (var(--container-gutter) * 2)); padding: 0 var(--container-gutter); }
  .nav-right { display: flex; align-items: center; gap: 40px; }
  .nav-logo-sub { display: block; }
  .nav-logo-img { height: 34px; }
  .nav-links { display: flex; align-items: center; gap: 32px; }
  .nav-ctas { display: flex; align-items: center; }
  .nav-m, .mobile-menu { display: none !important; }
  .nav-cta-solid {
    position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 0 2px;
    font-size: 13.5px; font-weight: 600; letter-spacing: 0.02em; text-decoration: none;
    color: #ffffff; background: none; border: 0; text-shadow: 0 1px 10px rgba(0,0,0,0.55); transition: color 0.25s ease;
  }
  .nav-cta-solid { gap: 7px; }
  .nav-cta-solid .cta-arrow { width: 12px; height: 12px; fill: none; stroke: #c8a96e; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s ease; }
  .nav-cta-solid:hover .cta-arrow, .nav-cta-solid:focus-visible .cta-arrow { transform: translate(2px,-2px); }
  .nav-cta-solid::after { content: ""; position: absolute; left: 2px; right: 2px; bottom: 7px; height: 1px; background: #c8a96e; transform: scaleX(1); transform-origin: left; transition: transform 0.3s ease; }
  .nav-cta-solid:hover::after, .nav-cta-solid:focus-visible::after { height: 2px; }

  /* Hero fuellt ab 1024px IMMER den kompletten ersten Viewport (feste
     Vorgabe). Header liegt fixed darueber, daher volle Hoehe ohne Abzug.
     100vh = Fallback, 100lvh bleibt beim Ein-/Ausblenden von Browserleisten
     stabil -> kein Layout Shift, nie ein weisser Streifen am unteren Rand. */
  #home {
    min-height: 100vh; min-height: 100lvh; display: flex; align-items: center; padding: var(--nav-h) 0 48px;
    background: linear-gradient(100deg, rgba(10,10,10,0.96) 0%, rgba(10,10,10,0.9) 32%, rgba(10,10,10,0.78) 52%, rgba(10,10,10,0.5) 68%, rgba(10,10,10,0.12) 100%),
                url('https://images.pexels.com/photos/10802569/pexels-photo-10802569.jpeg?auto=compress&cs=tinysrgb&w=1800') center/cover no-repeat;
    background-color: var(--black);
  }
  .hero-copy { max-width: 1200px; margin-top: 7vh; }
  .hero-h1 { text-transform: uppercase; font-size: clamp(2.2rem, 2.9vw, 3.05rem); text-shadow: 0 2px 18px rgba(0,0,0,0.45); letter-spacing: -0.01em; line-height: 1.04; margin-bottom: 24px; }
  .hl-line--sub { font-size: 0.93em; }
  .hero-sub { font-size: 18px; line-height: 1.6; max-width: 54ch; margin-bottom: 32px; }
  .hero-anim { animation: heroIn 0.35s ease-out both; }
  .hero-anim--2 { animation-delay: 0s; }
  .hero-anim--3 { animation-delay: 0s; }
  @keyframes heroIn { from { opacity: .01; transform: translateY(6px); } to { opacity: 1; transform: none; } }

  .svc-title { font-size: 19px; }
  .svc-text { font-size: 15px; }

  /* Herausforderungen: Ueberschrift links, Liste rechts */
  .split { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; align-items: start; }
  .split .issues { margin-top: 0; }
  .issue { padding: 18px 0; }
  .issue-title { font-size: 18px; }
  .issue-text { font-size: 15px; }

  .ww { gap: 64px; }
  .tool { padding: 14px 18px; }
  .article { padding: 16px 0; }
  .article-title { font-size: 18px; }

  .close { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px 48px; }
  .reach { flex-shrink: 0; }

  footer { padding: 20px 56px; }
}

/* ---------- Smartphone-Feinschliff (<=767px) ---------- */
@media (max-width: 767px) {
  /* Artikel: ganze Zeile klickbar, Pfeil rechts statt eigener "Artikel lesen"-Zeile */
  .article { position: relative; padding: 11px 28px 11px 0; }
  .article::after { content: '→'; position: absolute; right: 2px; top: 50%; transform: translateY(-50%); color: var(--accent); transition: transform 0.25s; }
  .article:hover::after { transform: translate(4px, -50%); }
  .article-link { display: none; }
  .ww { gap: 20px; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js-anim .reveal, .reveal { transition: none !important; opacity: 1 !important; transform: none !important; }
  .hero-anim { animation: none !important; }
  .mobile-menu, #nav, .svc-item::before, .svc-go, .issue-go, .tool-action span, .article-link span, .hero-link .arrow, .reach-icon, .nav-cta-solid, .nav-contact-m, .cta-arrow { transition: none !important; }
  .svc-item:hover .svc-go, .issue:hover .issue-go, .hero-link:hover .arrow { transform: none !important; }
}
