/* =============================================================
   pesch.consulting — Design-System „Tiefsee"
   Geteilte Basis für alle Seiten. Framework-frei, kein Build.
   Richtung: dunkel-navy · Messing-Akzent · High-Contrast-Serif · ruhig.
   ============================================================= */

@import url("../fonts/_fontface.css");

/* ---------- Tokens ---------- */
:root {
  /* Grounds */
  --abyss:   #071626;   /* tiefster Grund */
  --deep:    #0a1f33;   /* Body-Basis */
  --ozean:   #123a5c;   /* mittleres Blau */
  --panel:   rgba(18, 44, 70, 0.28);   /* Karten/Flächen */
  --panel-2: rgba(18, 44, 70, 0.5);
  --line:    rgba(200, 214, 230, 0.10); /* Hairlines */
  --line-2:  rgba(200, 214, 230, 0.18);

  /* Text */
  --paper:      #f4efe6;               /* Headlines, warmes Off-White */
  --paper-soft: rgba(214, 224, 234, 0.72);
  --paper-mute: rgba(190, 205, 222, 0.46);
  --nebel:      #8ca3b8;

  /* Akzent */
  --brass:      #c8a04a;
  --brass-lite: #e0c079;
  --brass-soft: rgba(200, 160, 74, 0.14);
  --brass-line: rgba(200, 160, 74, 0.4);

  /* Typo */
  --serif: "Fraunces", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Maße */
  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  /* Radius / Schatten */
  --r: 18px;
  --r-sm: 10px;
  --shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.7);
}

/* ---------- Reset / Basis ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--paper-soft);
  background:
    radial-gradient(ellipse 90% 70% at 50% -5%, #12395a 0%, #0a2137 34%, #071a2b 62%, #050f1b 100%)
    fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
::selection { background: rgba(200, 160, 74, 0.28); color: #fff; }

/* ---------- Typografie ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  color: var(--paper);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
p { max-width: 66ch; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--brass-line);
}
.eyebrow.center { justify-content: center; }

.lead { font-size: 1.12rem; color: var(--paper-soft); max-width: 56ch; }

a { color: inherit; }

/* ---------- Layout-Helfer ---------- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(5rem, 11vw, 9rem); position: relative; }
.stack { display: flex; flex-direction: column; }

.hairline {
  height: 1px; border: 0;
  background: linear-gradient(90deg, transparent, var(--line-2) 15%, var(--brass-line) 50%, var(--line-2) 85%, transparent);
  opacity: 0.6;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.15rem var(--gutter);
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(5, 15, 27, 0.7);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}
.wordmark { display: inline-flex; align-items: center; text-decoration: none; }
/* Original-Logo (assets/logo.png) exakt auf sein Lockup (x74 y100 1110x494) zugeschnitten */
.wm-logo {
  --lh: 51px;
  display: block; height: var(--lh);
  width: calc(var(--lh) / 494 * 1110);
  background: url("../logo.png") no-repeat;
  background-size: calc(var(--lh) / 494 * 3114) auto;
  background-position: calc(var(--lh) / 494 * -74) calc(var(--lh) / 494 * -100);
}
@media (max-width: 420px) { .wm-logo { --lh: 41px; } }

.nav { display: flex; align-items: center; gap: 0.35rem; }
.nav a {
  font-size: 0.82rem; letter-spacing: 0.02em; color: var(--paper-soft);
  text-decoration: none; padding: 0.55rem 0.95rem; border-radius: 100px;
  transition: color 0.25s, background 0.25s;
}
.nav a:hover { color: var(--paper); background: rgba(255, 255, 255, 0.04); }
.nav a.current { color: var(--brass-lite); }
.nav .btn { margin-left: 0.5rem; }

.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--brass);
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--sans); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.02em; text-decoration: none; cursor: pointer;
  padding: 0.85rem 1.6rem; border-radius: 100px; border: 1px solid transparent;
  background: var(--btn-bg); color: #0a1a2f;
  transition: transform 0.3s cubic-bezier(.2,.9,.3,1), box-shadow 0.3s, background 0.3s;
  box-shadow: 0 12px 30px -14px rgba(200, 160, 74, 0.6);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(200, 160, 74, 0.7); }
.btn svg { width: 15px; height: 15px; }
.btn--ghost {
  background: transparent; color: var(--paper);
  border-color: var(--line-2); box-shadow: none;
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.05); border-color: var(--brass-line); box-shadow: none; }

/* Text-Link mit Pfeil */
.arrow-link {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.02em;
  color: var(--brass-lite); text-decoration: none; width: fit-content;
}
.arrow-link .arw { width: 26px; height: 1px; background: currentColor; position: relative; transition: width 0.35s cubic-bezier(.2,.9,.3,1); }
.arrow-link .arw::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.arrow-link:hover .arw { width: 42px; }

/* ---------- Section-Kopf ---------- */
.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .title { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin: 1.1rem 0 1rem; }
.section-head p { color: var(--paper-mute); }

/* ---------- Karten (Leistungen) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 2.2rem 2rem; position: relative; overflow: hidden;
  transition: transform 0.4s cubic-bezier(.2,.9,.3,1), border-color 0.4s, box-shadow 0.4s;
}
.card:hover { transform: translateY(-6px); border-color: var(--brass-line); box-shadow: var(--shadow); }
.card .ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  margin-bottom: 1.5rem; border: 1px solid var(--line-2);
  background: linear-gradient(140deg, var(--brass-soft), transparent);
  color: var(--brass-lite);
}
.card .ico svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.5rem; margin-bottom: 0.6rem; }
.card p { font-size: 0.95rem; color: var(--paper-mute); margin-bottom: 1.4rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tags span {
  font-size: 0.68rem; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.32rem 0.7rem; border: 1px solid var(--line); border-radius: 7px;
  color: var(--paper-mute);
}

/* ---------- Referenz-Liste ---------- */
.ref { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center;
  padding: 2.6rem 0; border-top: 1px solid var(--line); position: relative; }
.ref:last-child { border-bottom: 1px solid var(--line); }
.ref .status {
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brass-lite); display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 0.7rem;
}
.ref .status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 10px var(--brass); }
.ref h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); transition: transform 0.4s cubic-bezier(.2,.9,.3,1), color 0.3s; }
.ref:hover h3 { transform: translateX(10px); color: var(--brass-lite); }
.ref p { color: var(--paper-mute); font-size: 0.95rem; margin-top: 0.6rem; }
.ref .meta { display: flex; flex-direction: column; align-items: flex-end; gap: 1rem; text-align: right; }
.ref .ptech { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: flex-end; }
.ref .ptech span { font-size: 0.66rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--paper-mute); border: 1px solid var(--line); padding: 0.3rem 0.65rem; border-radius: 7px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line); padding: 3rem var(--gutter);
  display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: center;
}
.site-footer .fnote { font-size: 0.78rem; color: var(--paper-mute); }
.site-footer .flinks { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.site-footer .flinks a { font-size: 0.78rem; color: var(--paper-mute); text-decoration: none; transition: color 0.25s; }
.site-footer .flinks a:hover { color: var(--brass-lite); }

/* ---------- Reveal on scroll ---------- */
.rv { opacity: 0; transform: translateY(38px); transition: opacity 1s cubic-bezier(.2,.9,.3,1), transform 1s cubic-bezier(.2,.9,.3,1); }
.rv.in { opacity: 1; transform: none; }
.rv-2 { transition-delay: 0.1s; } .rv-3 { transition-delay: 0.2s; }

/* ---------- Fokus / Zugänglichkeit ---------- */
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 4px; }
.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 999; background: var(--brass); color: #0a1a2f;
  padding: 0.6rem 1rem; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 0.85rem;
  transition: top 0.25s;
}
.skip-link:focus { top: 1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr; }
  .ref { grid-template-columns: 1fr; }
  .ref .meta { align-items: flex-start; text-align: left; }
  .ref .ptech { justify-content: flex-start; }
  .ref:hover h3 { transform: none; }
}
@media (max-width: 720px) {
  .nav { position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px); z-index: 205;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 0.4rem;
    padding: 2rem; background: #0a1c2b; backdrop-filter: blur(20px);
    box-shadow: -24px 0 70px rgba(0,0,0,.55);
    transform: translateX(100%); transition: transform 0.4s cubic-bezier(.2,.9,.3,1); }
  .nav.open { transform: none; }
  .nav a { width: 100%; font-size: 1rem; padding: 0.7rem 0.5rem; }
  .nav .btn { margin: 0.6rem 0 0; }
  .nav-toggle { display: inline-flex; z-index: 210; background: none; border: 0; cursor: pointer;
    width: 44px; height: 44px; align-items: center; justify-content: center; }
  .nav-toggle span { position: relative; width: 22px; height: 2px; background: var(--paper); transition: background 0.2s; }
  .nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--paper); transition: transform 0.3s; }
  .nav-toggle span::before { top: -7px; } .nav-toggle span::after { top: 7px; }
  .nav-toggle.open span { background: transparent; }
  .nav-toggle.open span::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span::after { transform: translateY(-7px) rotate(-45deg); }
}

/* =============================================================
   Unterseiten-Komponenten
   ============================================================= */

/* Page-Hero (Kopf ohne Globus) */
.page-hero { padding-top: clamp(8rem, 15vh, 11rem); padding-bottom: clamp(2.5rem, 6vw, 4.5rem); position: relative; }
.page-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brass-line), transparent); opacity: 0.5; }
.page-hero .title { font-size: clamp(2.6rem, 6.5vw, 5rem); margin: 1.3rem 0 1.3rem; max-width: 18ch; }
.page-hero .lead { max-width: 60ch; }

/* Detail-Block (Leistungen) */
.detail { display: grid; grid-template-columns: 16rem 1fr; gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line); align-items: start; }
.detail:first-of-type { border-top: 0; }
.detail aside { position: sticky; top: 6rem; }
.detail aside h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 1rem; }
.detail .body p { color: var(--paper-soft); margin-bottom: 1.2rem; }
.detail .body p:last-child { margin-bottom: 0; }

/* Feature-Liste mit Messing-Marker */
.feature-list { list-style: none; display: grid; gap: 0.7rem; margin: 0.4rem 0 1.6rem; }
.feature-list li { position: relative; padding-left: 1.5rem; color: var(--paper-soft); font-size: 0.98rem; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px;
  border-radius: 2px; background: var(--brass); }

/* Beispiel-Callout */
.callout { border-left: 2px solid var(--brass); background: var(--panel); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 1.2rem 1.4rem; }
.callout .k { font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-lite); display: block; margin-bottom: 0.4rem; }
.callout p { color: var(--paper-soft); font-size: 0.95rem; margin: 0; }

/* Prozess-Schritte (echte Reihenfolge → nummeriert) */
.steps { display: grid; gap: 1.25rem; counter-reset: step; }
@media (min-width: 780px) { .steps.cols-2 { grid-template-columns: 1fr 1fr; } }
.step { counter-increment: step; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 2rem; position: relative; }
.step::before { content: counter(step, decimal-leading-zero); font-family: var(--serif); font-size: 1.2rem;
  color: var(--brass-lite); display: block; margin-bottom: 1rem; letter-spacing: 0.05em; }
.step h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.step p { color: var(--paper-mute); font-size: 0.95rem; }

/* Info-Grid (Kontakt) */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.info-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 1.8rem;
  text-decoration: none; color: inherit; display: block; transition: border-color 0.35s, transform 0.35s; }
a.info-card:hover { border-color: var(--brass-line); transform: translateY(-4px); }
.info-card .k { font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-lite); margin-bottom: 0.6rem; }
.info-card .v { font-family: var(--serif); font-size: 1.35rem; color: var(--paper); }

/* Schließendes CTA-Band */
.cta-band { text-align: center; }
.cta-band .title { font-size: clamp(2.2rem, 5.5vw, 4rem); margin: 1.1rem auto 1.2rem; max-width: 16ch; }
.cta-band .lead { margin: 0 auto 2.4rem; }

/* Prose (Fließtext-Seiten) */
.prose { max-width: 62ch; }
.prose p { color: var(--paper-soft); margin-bottom: 1.3rem; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 2.4rem 0 1rem; }
.prose strong { color: var(--paper); font-weight: 600; }
.prose em { color: var(--brass-lite); font-style: italic; }
code { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 0.88em;
  background: rgba(200, 160, 74, 0.12); color: var(--brass-lite); padding: 0.1em 0.4em; border-radius: 5px; }

@media (max-width: 800px) {
  .detail { grid-template-columns: 1fr; gap: 1.2rem; }
  .detail aside { position: static; }
}

/* ---------- Handy-Feinschliff ---------- */
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .section { padding-block: clamp(3rem, 11vw, 4.5rem); }
  .page-hero { padding-top: 6rem; padding-bottom: 2.25rem; }
  .section-head { margin-bottom: 2rem; }
  .page-hero .title { font-size: clamp(2.3rem, 9vw, 3.4rem); }
  .cta-band .title { font-size: clamp(2rem, 8vw, 3rem); }
  /* Buttons komfortabel: volle Breite, sicher tippbar */
  .hero-actions .btn, .cta-band .btn, .closing .btn { width: 100%; justify-content: center; }
  .btn { padding: 0.95rem 1.6rem; }
  /* Callout / Steps etwas kompakter */
  .step { padding: 1.6rem; }
  .callout { padding: 1.1rem 1.2rem; }
  /* Kontakt-Karten volle Breite */
  .info-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
}
