/* ==========================================================================
   dasw — Digitalagenturen Südwest
   Design: Schwarz/Weiß + EIN Rot-Akzent · Typo: Delight (400/600)
   Premium, editorial, B2B, zukunftsorientiert. State-of-the-art Motion,
   konsequent dezent (keine Gradients, kein Bunt).
   ========================================================================== */

/* ---------- Cross-Document View Transitions (Chromium 2026, progressive) ---------- */
@view-transition { navigation: auto; }

/* ---------- Fonts (proprietär, lokal) ---------- */
@font-face {
  font-family: 'Delight';
  src: url('../fonts/Delight-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Delight';
  src: url('../fonts/Delight-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --accent:       #D60A24;
  --accent-dark:  #990012;
  --accent-light: #FF4D61;

  --ink:          #0a0a0a;
  --ink-2:        #3a3a3a;
  --ink-3:        #6b6b6b;
  --line:         #e8e8e6;
  --line-2:       #d2d2d0;
  --bg:           #ffffff;
  --surface:      #f6f6f4;
  --surface-2:    #efefec;

  --dark-bg:      #0a0a0a;
  --dark-surface: #161616;
  --on-dark:      #f4f4f3;
  --on-dark-dim:  #a6a6a3;
  --on-dark-line: #292927;

  --r-sm: 4px; --r-md: 10px; --r-lg: 18px; --r-xl: 26px; --r-full: 9999px;

  --maxw: 1400px;
  --gutter: clamp(20px, 5vw, 80px);
  --section-y: clamp(76px, 11vw, 152px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  font-family: 'Delight', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400; color: var(--ink); background: var(--bg);
  line-height: 1.55; font-size: clamp(16px, 1.05vw, 18px);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 300; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 var(--r-md) 0; }
.skip-link:focus { left: 0; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(52px, 7vw, 96px); }
.section--surface { background: var(--surface); }
.section--dark { background: var(--dark-bg); color: var(--on-dark); }

/* ---------- Typo ---------- */
h1, h2, h3, h4 { font-weight: 600; line-height: 1.08; letter-spacing: 0; }
.h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); letter-spacing: 0; line-height: 1.02; text-wrap: balance; }
.h2 { font-size: clamp(2rem, 4.2vw, 3.15rem); line-height: 1.06; letter-spacing: 0; }
.h3 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); line-height: 1.2; letter-spacing: 0; }
.lead { font-size: clamp(1.1rem, 1.55vw, 1.36rem); color: var(--ink-2); line-height: 1.5; }
.section--dark .lead { color: var(--on-dark-dim); }

.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.section--dark .eyebrow { color: var(--accent-light); }
.accent { color: var(--accent); }
.section--dark .accent { color: var(--accent-light); }

.s-head { max-width: 820px; margin-bottom: clamp(40px, 5vw, 72px); }
.s-head .h2 { margin-top: 16px; }
.s-head .lead { margin-top: 20px; }

/* Custom Cursor entfernt (auf Kundenwunsch). */

/* ==========================================================================
   Header
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.72); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s var(--ease), background-color .3s var(--ease); }
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(255,255,255,.85); }
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 24px; transition: height .3s var(--ease); }
.site-header.scrolled .nav-row { height: 66px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 48px; width: auto; }
.mainnav { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 40px); }
.navlink { font-size: 0.98rem; color: var(--ink-2); position: relative; padding-block: 6px; transition: color .2s var(--ease); }
.navlink::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--accent); transition: width .3s var(--ease); }
.navlink:hover, .navlink.active { color: var(--ink); }
.navlink:hover::after, .navlink.active::after { width: 100%; }
.nav-contact { font-weight: 600; color: var(--ink); border: 1px solid var(--line-2); border-radius: var(--r-full); padding: 10px 22px; transition: border-color .25s var(--ease), color .25s var(--ease), background-color .25s var(--ease); will-change: transform; }
.nav-contact:hover { border-color: var(--ink); }

.burger { display: none; width: 46px; height: 46px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: #fff; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); transition: transform .28s var(--ease), opacity .2s var(--ease); }
.burger span:nth-child(1) { top: 16px; } .burger span:nth-child(2) { top: 22px; } .burger span:nth-child(3) { top: 28px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-nav { display: none; flex-direction: column; gap: 2px; padding: 8px var(--gutter) 26px; border-bottom: 1px solid var(--line); background: #fff; }
.mobile-nav a { padding: 14px 4px; font-size: 1.15rem; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-nav a:last-child { border-bottom: 0; }

/* Scroll-Progress (scroll-driven wenn unterstützt, sonst JS) */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--accent); z-index: 200; transform-origin: left; }
@supports (animation-timeline: scroll()) {
  .progress { width: 100%; transform: scaleX(0); animation: progress-grow linear both; animation-timeline: scroll(root); }
  @keyframes progress-grow { to { transform: scaleX(1); } }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; padding-block: clamp(72px, 13vw, 168px) clamp(60px, 9vw, 124px); overflow: hidden; }
.hero__mark { position: absolute; left: 100%; top: 50%; width: min(64vw, 660px); aspect-ratio: 1 / 1; margin-left: clamp(-160px, -10vw, -90px); pointer-events: none; z-index: -1; translate: 0 -50%; will-change: transform; }
.hero__mark-land { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: .07; }
.hero__mark-overlay { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; opacity: .55; }
@supports (animation-timeline: scroll()) {
  .hero__mark { animation: mark-parallax linear both; animation-timeline: scroll(root); animation-range: 0 80vh; }
  @keyframes mark-parallax { to { transform: translateY(10%); opacity: .3; } }
}
@media (max-width: 860px) {
  .hero__mark { left: auto; right: -14%; margin-left: 0; width: min(88vw, 480px); }
  .hero__mark-land { opacity: .04; }
  .hero__mark-overlay { opacity: .2; }
}
.hero .wrap { position: relative; z-index: 1; }
.hero__inner { max-width: 900px; position: relative; z-index: 1; }
.hero .h1 { margin-top: 24px; }
.hero__subhead { margin-top: 22px; display: flex; align-items: center; gap: 12px; font-size: clamp(1.05rem, 1.7vw, 1.3rem); font-weight: 600; color: var(--ink-2); }
.hero__subhead .arrow { color: var(--accent); flex: none; }
.hero .lead { margin-top: 20px; max-width: 660px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 14px 30px; margin-top: 44px; }
.badge { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.98rem; }
.badge svg { width: 22px; height: 22px; flex: none; color: var(--accent); }

/* Kinetische Headline (Blur-Rise, bruchsicher beim Umbruch) */
.reveal-lines .line { display: block; }
.reveal-lines .line > span { display: inline-block; transform: translateY(0.5em); opacity: 0; filter: blur(8px); transition: transform .9s var(--ease-out), opacity .9s var(--ease-out), filter .9s var(--ease-out); transition-delay: calc(var(--i, 0) * 110ms); }
.reveal-lines.is-in .line > span { transform: none; opacity: 1; filter: blur(0); }

/* ==========================================================================
   Marquee (Agentur-Ticker)
   ========================================================================== */
.marquee { border-block: 1px solid var(--line); padding-block: clamp(20px, 2.6vw, 30px); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; gap: 0; animation: marquee 38s linear infinite; will-change: transform; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; gap: clamp(28px, 4vw, 56px); padding-right: clamp(28px, 4vw, 56px); font-size: clamp(1.4rem, 3vw, 2.4rem); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.marquee__item::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Kennzahlen / Counter (dunkel, mit Spotlight)
   ========================================================================== */
.stats-wrap { position: relative; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 4vw, 60px); }
.stat { position: relative; border-left: 2px solid var(--on-dark-line); padding-left: 26px; }
.stat__num { font-size: clamp(2.8rem, 6.2vw, 4.8rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__num .suffix { color: var(--accent-light); }
.stat__label { margin-top: 14px; color: var(--on-dark-dim); font-size: 1rem; }
.stat__head { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.stat__head .stat__label { margin-top: 0; }
.stat__info { flex: none; width: 19px; height: 19px; border-radius: 50%; border: 1px solid var(--on-dark-line); background: none; color: var(--on-dark-dim); font: italic 700 12px/1 Georgia, serif; display: inline-flex; align-items: center; justify-content: center; transition: border-color .2s var(--ease), color .2s var(--ease); }
.stat__info:hover, .stat__info:focus-visible, .stat__info.is-open { border-color: var(--accent-light); color: var(--accent-light); }
.stat__tip { position: absolute; z-index: 5; left: 26px; top: calc(100% + 10px); width: min(280px, 70vw); padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--on-dark-line); background: #171715; color: var(--on-dark-dim); font-size: 0.85rem; line-height: 1.5; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s; pointer-events: none; }
.stat__head:has(.stat__info:hover) + .stat__tip, .stat__head:has(.stat__info:focus-visible) + .stat__tip, .stat__tip.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.stat__asof { margin-top: 10px; color: var(--on-dark-dim); font-size: 0.78rem; opacity: .75; }
.stats__note { margin-top: 40px; color: var(--on-dark-dim); font-size: 0.85rem; }

/* ==========================================================================
   Cards / Grids + Spotlight
   ========================================================================== */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.spot { position: relative; isolation: isolate; }
.spot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0; transition: opacity .35s var(--ease); background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(214,10,36,.07), transparent 42%); z-index: -1; pointer-events: none; }
.spot:hover::before { opacity: 1; }
.section--dark .spot::before { background: radial-gradient(380px circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,.08), transparent 42%); }

.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(26px, 3vw, 40px); transition: border-color .3s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease); }
.section--surface .card { background: #fff; }
.card:hover { border-color: var(--line-2); transform: translateY(-4px); box-shadow: 0 24px 60px rgba(0,0,0,.07); }
.card__icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: var(--r-md); background: rgba(214,10,36,.07); color: var(--accent); }
.card__icon svg { width: 28px; height: 28px; }
.card .h3 { margin-top: 16px; }
.card p { margin-top: 12px; color: var(--ink-2); }

/* Lösungen */
.solutions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--line); }
.solution { background: #fff; padding: clamp(24px, 2.8vw, 38px); display: flex; flex-direction: column; gap: 12px; transition: background .3s var(--ease); position: relative; }
.solution::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .35s var(--ease); background: radial-gradient(320px circle at var(--mx,50%) var(--my,50%), rgba(214,10,36,.06), transparent 45%); pointer-events: none; }
.solution:hover::before { opacity: 1; }
.solution__n { font-size: 0.8rem; color: var(--ink-3); font-weight: 600; letter-spacing: 0.04em; }
.solution .h3 { font-size: 1.2rem; position: relative; z-index: 1; }
.solution p { color: var(--ink-2); font-size: 0.96rem; position: relative; z-index: 1; }

/* Leistungen */
.disciplines { border-top: 1px solid var(--line); }
.discipline { display: grid; grid-template-columns: 60px 1fr; gap: 20px; align-items: baseline; padding: clamp(24px, 3vw, 38px) 0; border-bottom: 1px solid var(--line); transition: padding-left .35s var(--ease); }
.discipline:hover { padding-left: 14px; }
.discipline__n { font-size: 1rem; color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.discipline__body { display: grid; grid-template-columns: minmax(220px, 0.9fr) 1.4fr; gap: 12px 44px; }
.discipline p { color: var(--ink-2); }

/* ==========================================================================
   Technology Stack
   ========================================================================== */
.stack { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px 44px; }
.stack__group h3.stack-h4 { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { display: inline-flex; align-items: center; font-size: 0.95rem; font-weight: 600; padding: 9px 17px; border: 1px solid var(--line-2); border-radius: var(--r-full); background: #fff; transition: border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease); }
.tag:hover { border-color: var(--ink); transform: translateY(-2px); }
.tag--ai { border-color: var(--accent); color: var(--accent-dark); }
.tag--ai:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ==========================================================================
   Netzwerk / Partner
   ========================================================================== */
.partners { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.partner { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 26px; min-height: 176px; background: #fff; transition: border-color .3s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease); }
.partner:hover { border-color: var(--line-2); transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,.07); }
.partner__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.partner__name { font-size: 1.22rem; font-weight: 600; letter-spacing: -0.01em; position: relative; z-index: 1; }
.partner__city { font-size: 0.85rem; color: var(--ink-3); margin-top: 5px; display: inline-flex; align-items: center; gap: 6px; position: relative; z-index: 1; }
.partner__city::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.partner p { margin-top: 18px; color: var(--ink-2); font-size: 0.92rem; position: relative; z-index: 1; }

/* ==========================================================================
   Standorte
   ========================================================================== */
.locations { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.location { background: #fff; padding: 26px 24px; transition: background .3s var(--ease); }
.location:hover { background: var(--surface); }
.location__city { font-size: 1.18rem; font-weight: 600; }
.location__agency { font-size: 0.9rem; color: var(--ink-3); margin-top: 4px; }

/* ==========================================================================
   Team
   ========================================================================== */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.person { display: flex; flex-direction: column; }
.person__avatar { aspect-ratio: 1; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 600; letter-spacing: -0.02em; position: relative; overflow: hidden; transition: background .35s var(--ease); }
.person__avatar::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.person:hover .person__avatar { background: var(--surface-2); }
.person:hover .person__avatar::after { transform: scaleX(1); }
.person__name { font-size: 1.14rem; font-weight: 600; margin-top: 18px; }
.person__role { font-size: 0.92rem; color: var(--ink-2); margin-top: 3px; }
.person__focus { font-size: 0.85rem; color: var(--ink-3); margin-top: 9px; }
.person__mail { font-size: 0.85rem; color: var(--ink-3); margin-top: 10px; word-break: break-all; transition: color .2s var(--ease); }
.person__mail:hover { color: var(--accent-dark); }
/* Karussell-Steuerung (nur mobile sichtbar) */
.team-carousel { position: relative; }
.team__note { margin-top: 40px; max-width: 62ch; color: var(--ink-3); font-size: 0.92rem; line-height: 1.6; }
.team-controls { display: none; }
.team-nav { width: 48px; height: 48px; border: 1px solid var(--line-2); border-radius: var(--r-full); background: #fff; display: grid; place-items: center; color: var(--ink); transition: border-color .2s var(--ease), color .2s var(--ease), transform .15s var(--ease); }
.team-nav:hover { border-color: var(--accent); color: var(--accent-dark); }
.team-nav:active { transform: scale(0.94); }
.team-nav svg { width: 20px; height: 20px; }
.team-dots { display: flex; gap: 9px; align-items: center; }
.team-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); border: 0; padding: 0; cursor: pointer; transition: background .25s var(--ease), transform .25s var(--ease); }
.team-dot.is-active { background: var(--accent); transform: scale(1.4); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { max-width: 860px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; text-align: left; background: none; border: 0; padding: 26px 46px 26px 0; position: relative; font-size: clamp(1.05rem, 1.5vw, 1.28rem); font-weight: 600; color: var(--ink); letter-spacing: -0.01em; transition: color .2s var(--ease); }
.faq__q:hover { color: var(--accent-dark); }
.faq__q::after { content: ""; position: absolute; right: 6px; top: 50%; width: 15px; height: 15px; margin-top: -7px; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D60A24' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); transition: transform .35s var(--ease); }
.faq__item[open] .faq__q::after { transform: rotate(135deg); }
.faq__a { padding: 0 46px 28px 0; color: var(--ink-2); max-width: 72ch; animation: faq-open .4s var(--ease-out); }
@keyframes faq-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
details.faq__item summary { list-style: none; cursor: pointer; }
details.faq__item summary::-webkit-details-marker { display: none; }

/* ==========================================================================
   Kontakt
   ========================================================================== */
.contact { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.9rem; font-weight: 600; }
.field label .req { color: var(--accent); }
.field input, .field textarea { font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 14px 16px; width: 100%; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(214,10,36,.12); }
.field textarea { resize: vertical; min-height: 140px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__submit { justify-self: start; display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; border: 0; border-radius: var(--r-full); padding: 16px 36px; font-weight: 600; font-size: 1rem; position: relative; overflow: hidden; will-change: transform; transition: transform .15s var(--ease); }
.form__submit span { position: relative; z-index: 1; }
.form__submit svg { width: 18px; height: 18px; position: relative; z-index: 1; transition: transform .3s var(--ease); }
.form__submit::before { content: ""; position: absolute; inset: 0; background: var(--accent-dark); transform: translateY(101%); transition: transform .4s var(--ease); }
.form__submit:hover::before { transform: translateY(0); }
.form__submit:hover svg { transform: translateX(4px); }
.form__submit:active { transform: translateY(1px); }
.form__submit[disabled] { opacity: .65; cursor: wait; }
.form__note { font-size: 0.82rem; color: var(--ink-3); }
.form__msg { font-size: 0.95rem; padding: 12px 16px; border-radius: var(--r-md); display: none; }
.form__msg.is-ok { display: block; background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); border-left: 3px solid var(--accent); }
.form__msg.is-err { display: block; background: #fdf0f1; color: var(--accent-dark); border: 1px solid #f3ccd1; }

.contact__aside h3 { margin-bottom: 20px; }
.why { list-style: none; padding: 0; display: grid; gap: 15px; }
.why li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.why li svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 2px; }
.contact__direct { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.contact__direct .k { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.contact__direct a { font-weight: 600; }
.contact__direct a:hover { color: var(--accent-dark); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--dark-bg); color: var(--on-dark); padding-block: clamp(60px, 7vw, 96px) 38px; }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.foot-brand img { height: 48px; width: auto; margin-bottom: 20px; }
.foot-claim { color: var(--on-dark-dim); max-width: 44ch; }
.foot-right { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.foot-right .foot-h { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-dim); font-weight: 600; }
.foot-link { color: var(--on-dark); transition: color .2s var(--ease); }
.foot-link:hover { color: var(--accent-light); }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; align-items: center; margin-top: clamp(44px, 6vw, 76px); padding-top: 28px; border-top: 1px solid var(--on-dark-line); color: var(--on-dark-dim); font-size: 0.85rem; }
.foot-bottom a { color: var(--on-dark-dim); } .foot-bottom a:hover { color: var(--accent-light); }
.foot-legal { display: flex; gap: 24px; }

/* ==========================================================================
   Reveal on scroll (stagger via --i)
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Legal
   ========================================================================== */
.legal { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 4vw, 3rem); }
.legal h2 { font-size: 1.3rem; margin-top: 42px; }
.legal p, .legal address { margin-top: 14px; color: var(--ink-2); font-style: normal; line-height: 1.65; }
.legal a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 2px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 44px; font-weight: 600; }
.back-link svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.back-link:hover svg { transform: translateX(-4px); }

/* ==========================================================================
   Kompass (Logo-Marke als Nadel: Norden -> Südwesten)
   ========================================================================== */
.compass__ring { fill: none; stroke: var(--line-2); stroke-width: 1.4; }
.compass__tick { stroke: var(--line-2); stroke-width: 1.4; }
.compass__card { fill: var(--ink-3); font-family: 'Delight', sans-serif; font-weight: 600; font-size: 13px; }
.compass__sw-dot { fill: var(--accent); }
.compass__sw-label { fill: var(--accent); font-family: 'Delight', sans-serif; font-weight: 600; font-size: 11px; letter-spacing: 1px; }
.compass__needle { transform-box: view-box; transform-origin: 100px 100px; transform: rotate(0deg); will-change: transform; }
.compass__needle .nd-dark { fill: var(--ink); }
.compass__needle .nd-accent { fill: var(--accent); }
.compass.is-in .compass__needle { animation: compass-idle 8s ease-in-out infinite; }
/* Kein Einpendeln — Nadel ruht auf Südwest und wackelt nur leicht (echte Magnetnadel) */
@keyframes compass-idle {
  0%   { transform: rotate(0deg); }
  13%  { transform: rotate(1.8deg); }
  27%  { transform: rotate(-1.1deg); }
  41%  { transform: rotate(2.5deg); }
  55%  { transform: rotate(-1.4deg); }
  69%  { transform: rotate(1deg); }
  84%  { transform: rotate(-0.6deg); }
  100% { transform: rotate(0deg); }
}

/* CI-Button (rot) — wiederverwendbar */
.btn-primary { display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: #fff; border: 0; border-radius: var(--r-full); padding: 15px 32px; font-weight: 600; font-size: 1rem; cursor: pointer; transition: background .2s var(--ease), transform .15s var(--ease); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn-primary:hover svg { transform: translateX(4px); }

/* Kontakt-Icons je Ansprechpartner */
.person__links { display: flex; gap: 10px; margin-top: 14px; }
.person__icon { width: 38px; height: 38px; border: 1px solid var(--line-2); border-radius: var(--r-full); display: grid; place-items: center; color: var(--ink); transition: border-color .2s var(--ease), color .2s var(--ease), background-color .2s var(--ease); }
.person__icon:hover { border-color: var(--accent); color: var(--accent-dark); }
.person__icon svg { width: 17px; height: 17px; }

/* Kontakt-Sektion: CTA statt Inline-Formular */
.contact__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.contact__cta-text { color: var(--ink-2); font-size: 1.1rem; max-width: 40ch; }

/* Footer-CTA (CI-Button, öffnet Overlay) */
.foot-cta-row { margin-bottom: clamp(36px, 5vw, 56px); padding-bottom: clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--on-dark-line); }
.site-footer .btn-primary:hover { background: var(--accent-light); color: var(--ink); }

/* ==========================================================================
   Kontakt-Overlay (Modal, WERK4-Stil)
   ========================================================================== */
.modal { position: fixed; inset: 0; z-index: 1000; visibility: hidden; pointer-events: none; }
.modal.is-open { visibility: visible; pointer-events: auto; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(10,10,10,.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s var(--ease); }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__dialog { position: relative; z-index: 1; max-width: 580px; margin: clamp(20px, 6vh, 80px) auto; max-height: calc(100dvh - 40px); overflow-y: auto; background: #fff; border-radius: var(--r-xl); padding: clamp(28px, 4vw, 48px); box-shadow: 0 40px 120px rgba(0,0,0,.4); transform: translateY(18px) scale(.98); opacity: 0; transition: transform .4s var(--ease-out), opacity .4s var(--ease-out); }
.modal.is-open .modal__dialog { transform: none; opacity: 1; }
.modal__close { position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; border-radius: var(--r-full); border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--ink); transition: border-color .2s var(--ease), color .2s var(--ease), transform .15s var(--ease); }
.modal__close:hover { border-color: var(--accent); color: var(--accent-dark); }
.modal__close:active { transform: scale(.92); }
.modal__close svg { width: 18px; height: 18px; }
.modal__dialog .h3 { margin-top: 10px; }
.modal__dialog .form { margin-top: 24px; }
body.modal-open { overflow: hidden; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .grid--3, .partners, .team, .locations { grid-template-columns: repeat(2, 1fr); }
  .solutions { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 38px; }
  .contact { grid-template-columns: 1fr; }
  .discipline__body { grid-template-columns: 1fr; gap: 6px; }
  /* Hoovertext der letzten Kennzahl darf über den nächsten Abschnitt ragen, statt am overflow:hidden der Sektion abgeschnitten zu werden */
  .stats-section.has-mark { overflow: visible; z-index: 2; }
  .stats-section .stat__tip { z-index: 50; }
}
@media (max-width: 760px) {
  .mainnav, .nav-contact { display: none; }
  .burger { display: block; }
  .mobile-nav.is-open { display: flex; }
}
@media (max-width: 560px) {
  .grid--3, .grid--2, .partners, .team, .locations, .solutions { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr; gap: 30px; }
}

/* Ansprechpartner als wischbare Galerie (mobile) */
@media (max-width: 760px) {
  .team {
    display: flex; gap: 16px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .team::-webkit-scrollbar { display: none; }
  .team .person { flex: 0 0 82%; scroll-snap-align: center; opacity: 1 !important; transform: none !important; }
  .team-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 30px; }
}

/* ==========================================================================
   Reduced motion — alles Bewegte ruhigstellen
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal, .reveal-lines .line > span { opacity: 1 !important; transform: none !important; filter: none !important; }
  .marquee__track { animation: none !important; }
  .cursor { display: none !important; }
}

/* ==========================================================================
   Feedback-Iteration 2026-06-25 — Logos im Ticker + Partner-Karten,
   echte Ansprechpartner-Fotos, breiteres Layout, Dark-Statement-Band,
   Footer-Credit. Leitidee: monochrom (S/W-Marke) -> Farbe/Schaerfe bei Hover.
   ========================================================================== */

/* ---------- Marquee als Logo-Ticker ("Stoerer") ---------- */
.marquee__logo { display: inline-flex; align-items: center; height: clamp(24px, 3vw, 38px); padding-right: clamp(34px, 4.4vw, 64px); gap: clamp(34px, 4.4vw, 64px); }
.marquee__logo::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; opacity: .55; }
.marquee__logo img { height: 100%; width: auto; max-width: clamp(104px, 12vw, 168px); object-fit: contain; filter: grayscale(1); opacity: .46; }
.marquee__logo img[src$="enqraft-logo-dark.svg"] { height: 62%; }
.marquee__logo--word { font-size: clamp(1.2rem, 2.4vw, 1.95rem); font-weight: 600; letter-spacing: -0.02em; color: var(--ink-3); }

/* ---------- Partner-Karten: echtes Logo statt Wortmarke ---------- */
.partner__logo { height: 34px; display: flex; align-items: center; margin-bottom: 16px; position: relative; z-index: 1; }
.partner__logo img { height: 100%; width: auto; max-width: 170px; object-fit: contain; object-position: left center; filter: grayscale(1); opacity: .72; transition: filter .35s var(--ease), opacity .35s var(--ease); }
.partner:hover .partner__logo img { filter: none; opacity: 1; }
/* artismedia ist ein breiter Schriftzug -> etwas kleiner, damit es in Relation zu den anderen bleibt */
.partner__logo img[src$="artismedia.svg"] { height: 82%; }
.partner__logo img[src$="enqraft-logo-dark.svg"] { height: 62%; }
.partner__logo--word { font-size: 1.34rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink-2); transition: color .3s var(--ease); }
.partner:hover .partner__logo--word { color: var(--ink); }

/* ---------- Ansprechpartner: echte Fotos (Graustufe -> Farbe bei Hover) ---------- */
.person__avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center var(--focus, 0%); filter: grayscale(1) contrast(1.03); transition: filter .45s var(--ease), transform .6s var(--ease); }
.person:hover .person__avatar img { filter: grayscale(0); transform: scale(1.045); }
.person__avatar--mono { background: var(--surface); }

/* ---------- Dark-Statement-Band (Rhythmus gegen "zu weiss/leer") ---------- */
.statement { overflow: hidden; }
.statement__wrap { max-width: 1040px; }
.statement .eyebrow { margin-bottom: 22px; }
.statement__line { font-size: clamp(2.1rem, 5vw, 3.9rem); line-height: 1.05; letter-spacing: -0.03em; max-width: 17ch; }
.statement__sub { margin-top: 26px; max-width: 62ch; }
.statement::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.05) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 38%, #000 64%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 38%, #000 64%, transparent); }
.statement .wrap { position: relative; z-index: 1; }

/* ---------- Standorte: dezenter Pin-Akzent ---------- */
.location__city { display: inline-flex; align-items: center; gap: 8px; }
.location__city::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

/* ---------- Footer-Credit-Konvention (kein Copyright, igroup-Credit links) ---------- */
.foot-credit { color: var(--on-dark-dim); font-size: 0.85rem; }
.foot-credit a { color: var(--on-dark-dim); transition: color .2s var(--ease); }
.foot-credit a:hover { color: var(--accent-light); }

/* ==========================================================================
   Politur 2026-06-25 — Brand-Motive (Logo-Pfeil) & feine Texturen
   Wiederkehrendes, faintes Logo-/Kompassnadel-Motiv im Hintergrund (Idee wie
   WERK4), monochrom per CSS-Mask einfärbbar + dezentes Punktraster gegen "Leere".
   Deko => z-index hinter Inhalt, pointer-events:none, prefers-reduced-motion-neutral.
   ========================================================================== */
.has-mark { overflow: hidden; }
.has-mark > .wrap { position: relative; z-index: 1; }
.has-mark::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: var(--mark-size, min(46vw, 540px)); aspect-ratio: 1;
  right: var(--mark-x, -7%); top: var(--mark-y, 50%); translate: 0 -50%;
  -webkit-mask: url(../img/mark.svg) no-repeat center / contain;
          mask: url(../img/mark.svg) no-repeat center / contain;
  background-color: var(--accent); opacity: var(--mark-op, .08);
}
.section--dark.has-mark::after { opacity: var(--mark-op, .16); }
.has-mark--br::after { top: auto; bottom: -16%; translate: 0 0; }
.has-mark--bl::after { right: auto; left: var(--mark-x, -8%); top: auto; bottom: -16%; translate: 0 0; }
.has-mark--tr::after  { top: -14%; translate: 0 0; }
.site-footer.has-mark { position: relative; }
.site-footer.has-mark > .wrap { position: relative; z-index: 1; }

/* Feines Punktraster (Textur) */
.has-grid > .wrap { position: relative; z-index: 1; }
.has-grid::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(currentColor 1px, transparent 1.4px);
  background-size: 30px 30px; opacity: .04;
  -webkit-mask-image: radial-gradient(130% 80% at 50% 0%, #000 50%, transparent 100%);
          mask-image: radial-gradient(130% 80% at 50% 0%, #000 50%, transparent 100%);
}
.section--dark.has-grid::before { opacity: .06; }
.hero.has-grid::before {
  -webkit-mask-image: radial-gradient(90% 70% at 72% 42%, #000 38%, transparent 100%);
          mask-image: radial-gradient(90% 70% at 72% 42%, #000 38%, transparent 100%);
}
.has-mark--tl::after { right: auto; left: var(--mark-x, -10%); top: -6%; translate: 0 0; }

/* Indexierte Eyebrows (laufender Sektions-Index, Slash statt Strich) */
.eyebrow[data-n]::before { content: attr(data-n) " / "; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.section--dark .eyebrow[data-n]::before { color: var(--on-dark-dim); }

/* Editorial Hairline-Frame am Container (nur helle Sektionen, ab 768px) */
@media (min-width: 768px) {
  .wrap--ruled { position: relative; }
  .wrap--ruled::before, .wrap--ruled::after { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); z-index: 0; pointer-events: none; }
  .wrap--ruled::before { left: 0; }
  .wrap--ruled::after { right: 0; }
}

/* ==========================================================================
   Warum-wir-Karten: Line-Draw-Icons — zeichnen sich beim Reinscrollen
   (gated über prefers-reduced-motion: dann sofort fertig gezeichnet)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .card__icon svg path { stroke-dasharray: 120; stroke-dashoffset: 120; }
  .card.is-in .card__icon svg path { animation: icon-draw 1s var(--ease-out) forwards; }
  .card.is-in .card__icon svg path:nth-child(2) { animation-delay: .28s; }
}
@keyframes icon-draw { to { stroke-dashoffset: 0; } }

/* ==========================================================================
   Mehr Leben (2026-06-25): Parallax-Drift der Brand-Pfeile + Keyword-Laufband
   ========================================================================== */
/* Sanfte Scroll-Parallax der Wasserzeichen (progressiv + reduced-motion-fest) */
@keyframes mark-drift { from { transform: translateY(8%); } to { transform: translateY(-10%); } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .has-mark::after { animation: mark-drift linear both; animation-timeline: view(); animation-range: cover; }
  }
}

/* Keyword-Laufband (Outline-Text, gegenläufig zum Logo-Ticker) */
.marquee--keywords .marquee__track { animation-duration: 52s; animation-direction: reverse; }
.marquee__kw { display: inline-flex; align-items: center; gap: clamp(30px, 4vw, 60px); padding-right: clamp(30px, 4vw, 60px); font-size: clamp(1.5rem, 3.6vw, 3rem); font-weight: 600; letter-spacing: -0.02em; color: transparent; -webkit-text-stroke: 1.1px rgba(10,10,10,.22); }
.marquee__kw::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; -webkit-text-stroke: 0; }

/* ==========================================================================
   Standorte: Deutschland-Karte im Hintergrund (Silhouette + Kompass + Pins)
   ========================================================================== */
#standorte { overflow: hidden; }
#standorte > .wrap { position: relative; z-index: 1; }
.de-map { position: absolute; z-index: 0; top: 50%; left: 50%; transform: translate(-50%, -47%); height: min(125%, 820px); aspect-ratio: 1 / 1; pointer-events: none; }
.de-map__land { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: .13; }
/* Standort-Kacheln leicht transparent, damit die Karte im Hintergrund durchscheint */
#standorte .locations { background: transparent; }
#standorte .location { background: rgba(255,255,255,.6); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.de-map__overlay { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.de-map__needle-rot { transform-box: view-box; transform-origin: 511px 512px; animation: compass-idle 8s ease-in-out infinite; }
.de-map__needle .nd-dark { fill: var(--ink); opacity: .4; }
.de-map__needle .nd-accent { fill: var(--accent); opacity: .85; }
.de-map__pin { fill: var(--accent); }
.de-map__pin-ring { fill: var(--accent); opacity: .22; transform-box: fill-box; transform-origin: center; animation: de-pin 2.8s ease-out infinite; }
@keyframes de-pin { 0% { transform: scale(.5); opacity: .4; } 100% { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .de-map__needle-rot { animation: none; } .de-map__pin-ring { animation: none; opacity: 0; } }
@media (max-width: 980px) {
  /* Deutschland-Karte ist ein Desktop-Element -> auf Mobile/Tablet ausblenden */
  .de-map { display: none; }
  /* Standort-Kacheln wieder deckend (saubere Liste) */
  #standorte .locations { background: var(--line); }
  #standorte .location { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
