/* ==========================================================================
   Refresh v5 (Oktober 2026)
   Vier Farben: Creme, Weiß, Navy, Kupfer (plus Abstufungen derselben).
   Grundsatz für Unterseiten: wenige Elementtypen, ruhiger Ablauf,
   genau EIN kräftiger Moment je Seite (der Navy-Block „So arbeiten wir“).
   Wird NACH site.css geladen.
   ========================================================================== */

:root{
  --bg:#f7f4ee;           /* Creme  */
  --white:#fff;           /* Weiß   */
  --ink:#14213d;          /* Navy   */
  --accent:#8f5a21;       /* Kupfer */
  --sand:#eee6d9;         /* Creme, eine Stufe dunkler */
  --accent-light:#dcaa70; /* Kupfer hell, nur auf Navy */
  --on-ink:rgba(247,244,238,.78);
  --line-ink:rgba(247,244,238,.2);
}

/* ---------- Labels: normale Schreibweise mit kurzem Kupferstrich ---------- */
.eyebrow{display:flex;align-items:center;gap:12px;text-transform:none;letter-spacing:0;font-size:14px;font-weight:600}
.eyebrow::before{content:"";flex:none;width:24px;height:2px;background:currentColor}
.project .eyebrow{font-size:13px;font-weight:500;color:var(--soft);margin-bottom:4px}
.project .eyebrow::before{display:none}

/* ---------- Kopfzeile ---------- */
header{transition:box-shadow .2s ease}
header.is-scrolled{box-shadow:0 6px 18px rgba(20,33,61,.08)}
.desktop-nav .nav-contact{background:var(--ink);color:var(--bg)}
.desktop-nav .nav-contact:hover{background:var(--ink);color:var(--white);text-decoration:underline;text-underline-offset:4px}
.primary:hover{background:var(--accent)}

/* ==========================================================================
   STARTSEITE
   ========================================================================== */
.services{background:var(--white);border-top:0}
.service-row{position:relative;overflow:hidden;isolation:isolate;padding:34px 24px}
.service-row::before{content:"";position:absolute;inset:0;z-index:-1;background:var(--ink);transform:scaleX(0);transform-origin:left;transition:transform .35s cubic-bezier(.2,.7,.2,1)}
.service-row h3,.service-row p,.service-row .number,.service-row .arrow{transition:color .25s ease,translate .25s ease}
.service-row:hover,.service-row:focus-visible{background:transparent}
.service-row:hover::before,.service-row:focus-visible::before{transform:scaleX(1)}
.service-row:hover h3,.service-row:focus-visible h3{color:var(--white)}
.service-row:hover p,.service-row:focus-visible p{color:var(--on-ink)}
.service-row:hover .number,.service-row:hover .arrow,.service-row:focus-visible .arrow{color:var(--accent-light)}
.service-row:hover .arrow,.service-row:focus-visible .arrow{translate:4px -4px}

.work-preview{background:var(--sand)}
.preview{background:var(--white);border-radius:8px;padding:22px 22px 14px}
.preview .small{display:inline-flex;align-items:center;gap:8px;font-weight:600}
.preview .small::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.preview .preview-stage{background:var(--bg);height:340px}
.preview .phone-preview .phone{width:168px}
.preview-link{color:var(--ink)}
.preview:hover .preview-link{color:var(--accent)}

#ueber-uns{background:var(--white)}
.people{gap:24px}
.people article{background:var(--bg);border-radius:8px;padding:32px}

/* ==========================================================================
   UNTERSEITEN – bewusst schlicht
   Flächenfolge: Hero Creme → Beispiele mit Umschalter Weiß → Vorteile Creme
                 → Ablauf Navy → Kontakt Creme
   ========================================================================== */

.benefit-grid:has(> h2 + p){display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.4fr);gap:64px;align-items:start}
.benefit-grid:has(> h2 + p) > p{font-size:18px;color:var(--ink)}

/* Projekt-Einblick: nur das Ergebnis wird hervorgehoben */
.case-section{background:var(--white)}
.case-stages li:not(:last-child):after{border-left:2px solid var(--line)}
.case-layout .case-stages li:last-child{background:var(--sand);border-radius:7px;padding:22px 24px 22px 64px;margin-top:4px}
.case-layout .case-stages li:last-child:before{left:24px;top:24px}
.case-stages strong{color:var(--accent)}

/* Vorteile: offene Liste, keine Kästen */
.benefits{gap:36px 64px}
.benefits li,.benefits li:first-child{border-top:1px solid var(--line);padding-top:22px}
.benefit-grid h3{font-size:18px}
/* Beratung: Einstieg (Creme) und Leistungen (Weiß) klar trennen */
[data-page="beratung"] main>section:nth-of-type(2){background:var(--white)}

/* Webseiten: kompakte Galerie statt Zickzack-Reihen */
.project-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px}
.project,.project+.project{display:flex;flex-direction:column;align-items:stretch;gap:0;border:0;padding:0}
.project .project-visual,.project:nth-child(even) .project-visual{order:-1}
.project-visual{background:var(--bg);padding:14px;border-radius:7px;margin-bottom:20px;transition:background .2s ease}
.project-visual img{box-shadow:none;border-radius:3px}
.project-visual:hover{background:var(--sand)}
.project h3{font-size:24px;margin:0 0 10px}
.project p{font-size:15px;margin-bottom:6px}
.project .text-link{font-size:14px}
#webseiten .project-list+p{margin-top:36px}


/* So arbeiten wir: der eine kräftige Moment */
.process{background:var(--ink);color:var(--bg)}
.process h2,.process h3{color:var(--white)}
.process .eyebrow{color:var(--accent-light)}
.process p{color:var(--on-ink)}
.steps{position:relative;gap:48px;--progress:1}
.steps::before,.steps::after{content:"";position:absolute;left:0;right:0;top:0;height:2px}
.steps::before{background:var(--line-ink)}
.steps::after{background:var(--accent-light);transform:scaleX(var(--progress));transform-origin:left}
.steps li{border-top:0;padding-top:30px}
.steps li:before{color:var(--accent-light);font-size:52px;line-height:1;margin-bottom:24px}

/* ==========================================================================
   ÜBERALL
   ========================================================================== */
.contact{background:var(--bg);border-top:0}
.contact-grid{background:var(--sand);border-radius:12px;padding:56px;gap:64px}
.contact figure img{border-radius:7px}
footer{background:var(--ink);border-top:0;color:var(--bg)}
footer a{color:var(--bg)}
footer .brand span{color:var(--accent-light)}

/* ---------- Responsiv ---------- */
@media(max-width:1100px){.contact-grid{padding:40px;gap:40px}.project-list{gap:20px}}
@media(max-width:860px){
  .service-row{padding:24px 16px}
  .preview+.preview{border-top:0;padding-top:22px}
  .preview .preview-stage{height:auto}
  .preview .phone-preview .phone{width:230px}
  .people article{padding:24px}
  .benefit-grid:has(> h2 + p){grid-template-columns:1fr;gap:24px}
  .project-list{grid-template-columns:1fr;gap:40px}
  .steps::before,.steps::after{left:15px;right:auto;width:2px;height:auto;bottom:0;transform:scaleY(var(--progress));transform-origin:top}
  .steps li{padding:0 0 0 64px}
  .steps li:before{font-size:34px;top:0;left:0;z-index:1;background:var(--ink);padding-block:4px}
  .contact-grid{padding:24px;border-radius:9px;gap:28px}
  .case-layout .case-stages li:last-child{padding:20px 20px 20px 56px}
  .case-layout .case-stages li:last-child:before{left:20px;top:22px}
}
@media(prefers-reduced-motion:reduce){.steps{--progress:1!important}.service-row::before{transition:none}}

/* ==========================================================================
   UMSCHALTER für echte Beispiele (KI-Agenten & Software)
   Ohne JS sind beide Beispiele untereinander sichtbar, der Schalter bleibt verborgen.
   ========================================================================== */
.switch{display:none}
.has-switch .switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:6px;margin-bottom:56px;background:var(--bg);border:1px solid var(--line);border-radius:9px}
.switch [role="tab"]{appearance:none;border:0;background:transparent;font:inherit;text-align:left;cursor:pointer;display:flex;flex-direction:column;gap:4px;padding:18px 22px;border-radius:6.5px;transition:background .25s ease}
.switch strong{font:400 24px/1.2 var(--serif);color:var(--ink);transition:color .25s ease}
.switch span{font-size:14px;line-height:1.45;color:var(--soft);transition:color .25s ease}
.switch [role="tab"]:hover{background:var(--sand)}
.switch [aria-selected="true"],.switch [aria-selected="true"]:hover{background:var(--ink)}
.switch [aria-selected="true"] strong{color:var(--white)}
.switch [aria-selected="true"] span{color:var(--on-ink)}
.switch [role="tab"]:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.switch-panel{padding:0}
.switch-panel+.switch-panel{margin-top:80px}
.has-switch .switch-panel+.switch-panel{margin-top:0}
.has-switch .switch-panel{animation:panel-in .3s ease}
@keyframes panel-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.panel-lede{max-width:760px;font-size:18px;color:var(--ink);margin:-18px 0 40px}

/* Nachgestellter Support-Chat (JUGAD) */
.chat-mock{width:100%;max-width:320px;background:var(--white);border:1px solid var(--line);border-radius:11px;padding:16px 16px 20px;box-shadow:0 14px 28px rgba(20,33,61,.08)}
.chat-mock-bar{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:var(--ink);padding:2px 4px 14px;border-bottom:1px solid var(--line)}
.chat-mock-bar::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--accent)}
.chat-mock .chat{padding:18px 0 0}
.chat-mock .bubble{background:var(--bg);box-shadow:none}
.chat-mock .bubble.assistant{background:var(--ink)}
.agent-case .agent-visual figcaption{font-size:12px;text-align:center;margin-top:16px}

@media(max-width:860px){
  .has-switch .switch{margin-bottom:36px;border-radius:7px}
  .switch [role="tab"]{padding:14px}
  .switch strong{font-size:19px}
  .switch span{font-size:13px}
  .panel-lede{font-size:17px;margin:-10px 0 28px}
}
@media(prefers-reduced-motion:reduce){.has-switch .switch-panel{animation:none}}
