/* =========================================================================
   stevora gmbh — shared stylesheet
   Dark editorial · violet→magenta · Fraunces / Manrope / DM Mono
   ========================================================================= */

/* ---- Design tokens ---------------------------------------------------- */
:root {
  /* palette — light editorial (cream / ink / lila) */
  --bg:            #F7F4EE;   /* cream */
  --bg-soft:       #EFEAE0;   /* cream-warm — alternating bands */
  --bg-card:       #FBF9F4;   /* near-white card */
  --ink:           #1A0F2E;   /* deep ink text */
  --muted:         #4A3D60;   /* muted body text */
  --muted-dim:     #6E6480;
  --violet:        #5B2C87;   /* lila — primary accent */
  --magenta:       #8B5DBD;   /* lila-light — secondary accent */
  --glow:          #5B2C87;   /* accent for italics / eyebrows */
  --line:          rgba(26, 15, 46, 0.12);       /* hairline borders on cream */
  --line-strong:   rgba(26, 15, 46, 0.26);

  --grad:          linear-gradient(100deg, #5B2C87 0%, #8B5DBD 100%);
  --grad-soft:     linear-gradient(100deg, rgba(91,44,135,.10), rgba(139,93,189,.10));

  /* type */
  --font-display:  "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:     "Manrope", system-ui, -apple-system, sans-serif;
  --font-mono:     "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* rhythm */
  --maxw:          1200px;
  --gutter:        clamp(20px, 5vw, 56px);
  --radius:        18px;
  --radius-pill:   999px;

  --ease:          cubic-bezier(.22, .61, .36, 1);
}

/* ---- Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

/* subtle ambient warmth on every page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 78% -5%,  rgba(139, 93, 189, .06), transparent 60%),
    radial-gradient(55% 45% at 8% 12%,   rgba(91, 44, 135, .04), transparent 55%),
    var(--bg);
  pointer-events: none;
}

/* ---- Typography ------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 460;
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-optical-sizing: auto;
}
h1 { font-size: clamp(2.7rem, 7vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -0.022em; }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); letter-spacing: -0.015em; }

em { font-style: italic; color: var(--glow); }

p { max-width: 64ch; }
strong { color: var(--ink); font-weight: 600; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--glow);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--grad);
  display: inline-block;
}

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- Layout helpers --------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(72px, 11vw, 150px); }
.section-tight { padding-block: clamp(48px, 7vw, 90px); }

.lede {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  color: var(--muted);
  max-width: 56ch;
}

.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head .eyebrow { margin-bottom: 22px; }
.section-head h2 { margin-bottom: 20px; }

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  --pad-y: 0.95em;
  --pad-x: 1.7em;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: var(--pad-y) var(--pad-x);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.97rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease),
              background .35s var(--ease), border-color .35s var(--ease);
  will-change: transform;
}
.btn svg { width: 1em; height: 1em; transition: transform .35s var(--ease); }

.btn-primary {
  background: var(--ink);
  color: #F7F4EE;
  box-shadow: 0 10px 30px -12px rgba(26, 15, 46, .5);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--violet);
  box-shadow: 0 14px 40px -12px rgba(91, 44, 135, .55);
}
.btn-primary:hover svg { transform: translateX(3px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--violet);
  background: rgba(91, 44, 135, .06);
}

/* ---- Header / Nav ----------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(247, 244, 238, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(247, 244, 238, 0.9);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: 0.06em;
}
.brand .dot { color: var(--magenta); }
.brand:hover { color: #fff; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 38px);
}
.nav-links a.nav-link {
  font-size: 0.95rem;
  color: var(--muted);
  position: relative;
  padding-block: 6px;
  transition: color .3s var(--ease);
}
.nav-links a.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-links a.nav-link:hover,
.nav-links a.nav-link[aria-current="page"] { color: var(--ink); }
.nav-links a.nav-link:hover::after,
.nav-links a.nav-link[aria-current="page"]::after { transform: scaleX(1); }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: transparent;
  position: relative;
}
.burger span {
  position: absolute;
  left: 11px; right: 11px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .35s var(--ease), opacity .2s var(--ease);
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---- Hero ------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: clamp(620px, 92vh, 940px);
  display: flex;
  align-items: center;
  overflow: hidden;
  /* base tone — visible before the video decodes and under reduced motion */
  background:
    radial-gradient(70% 60% at 50% 40%, #2E1B4D, transparent 70%),
    #1A0F2E;
}

/* ---- Hero video background ---- */
.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* slight upscale so the blur never bleeds the edges */
  filter: blur(8px);
  transform: scale(1.05);
  transform-origin: center;
  pointer-events: none;
  will-change: transform;
}

/* dark violet gradient veil — keeps the hero type legible over the footage */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(26, 15, 46, .82) 0%,
      rgba(26, 15, 46, .52) 45%,
      rgba(26, 15, 46, .58) 75%,
      rgba(26, 15, 46, .90) 100%),
    linear-gradient(100deg,
      rgba(26, 15, 46, .62) 0%,
      rgba(26, 15, 46, .22) 58%,
      rgba(26, 15, 46, .48) 100%);
}

/* ---- Mobile: Aufnahme sichtbar machen -------------------------------
   Im Hochformat schneidet object-fit:cover rund drei Viertel der Breite des
   2.33:1-Panoramas weg — der verbleibende Mittelstreifen wird stark hoch-
   skaliert. Blur(8px) matscht ihn dadurch weit mehr weg als am Desktop.
   Deshalb hier deutlich weniger Blur und ein leichteres Overlay; die
   Lesbarkeit übernimmt zusätzlich ein weicher Textschatten. */
@media (max-width: 767px) {
  .hero-video {
    /* brightness() statt eines dichteren Overlays: ein flaches Overlay wäscht
       das Bild aus, Abdunkeln erhält den Kontrast INNERHALB der Aufnahme —
       die Grate bleiben als Struktur lesbar. */
    filter: blur(3.5px) brightness(.55);
    transform: scale(1.03);   /* weniger Blur → weniger Überstand nötig */
  }
  .hero-overlay {
    /* bandweise statt gleichmässig: im Bergband (16–34 %) stark zurück-
       genommen, ab dem Fliesstext (46 %+) wieder dichter. Die h1 liegt über
       den Graten und ist mit 31.8px WCAG-Grosstext — dort genügen 3:1. */
    background:
      linear-gradient(180deg,
        rgba(26, 15, 46, .72) 0%,
        rgba(26, 15, 46, .26) 16%,
        rgba(26, 15, 46, .18) 34%,
        rgba(26, 15, 46, .42) 46%,
        rgba(26, 15, 46, .54) 62%,
        rgba(26, 15, 46, .58) 100%);
  }
  /* Eyebrow und Scroll-Hinweis waren als helles Lila zu dunkel für die nun
     hellere Aufnahme — auf Mobile fast weiss mit lila Stich. */
  .hero .eyebrow { color: #F0E8FC; }
  .hero .scroll-cue { color: #D6D0E0; }
  .hero .scroll-cue .bar { background: linear-gradient(#E4D8F8, transparent); }

  /* weicher Schatten als zusätzliche Reserve (zählt in der Messung nicht mit) */
  .hero .eyebrow,
  .hero h1,
  .hero .lede {
    text-shadow: 0 1px 2px rgba(12, 6, 24, .5), 0 2px 20px rgba(12, 6, 24, .55);
  }
  .hero .scroll-cue { text-shadow: 0 1px 8px rgba(12, 6, 24, .7); }
}

/* reduced motion → das <video> bleibt stehen und zeigt nur sein Poster-
   Standbild (das Skript lädt dann gar keine Videoquelle). Kein display:none,
   sonst ginge auch das Standbild verloren und der Hero wäre flach. */

/* ---- Hero content on dark ---- */
.hero h1 { color: #FBF9F4; }
.hero h1 em { color: #D9BEF8; }
.hero .lede { color: rgba(247, 244, 238, .84); }
.hero .eyebrow { color: #C9A6F0; }
.hero .eyebrow::before { background: linear-gradient(100deg, #8B5DBD, #C9A6F0); }
.hero .btn-primary {
  background: #F7F4EE;
  color: var(--ink);
  box-shadow: 0 14px 40px -14px rgba(0, 0, 0, .6);
}
.hero .btn-primary:hover {
  background: #C9A6F0;
  color: var(--ink);
}
.hero .btn-ghost {
  color: #F7F4EE;
  border-color: rgba(247, 244, 238, .38);
}
.hero .btn-ghost:hover {
  border-color: #C9A6F0;
  background: rgba(247, 244, 238, .10);
}
.hero .scroll-cue { color: rgba(247, 244, 238, .62); }
.hero .scroll-cue .bar { background: linear-gradient(#C9A6F0, transparent); }

.hero-inner {
  position: relative;
  z-index: 2;
  padding-block: 120px;
  pointer-events: none;
}
.hero-inner > * { pointer-events: auto; }
.hero h1 {
  max-width: 15ch;
  margin-block: 22px 26px;
}
.hero .lede { margin-bottom: 38px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.scroll-cue .bar {
  width: 1px; height: 40px;
  background: linear-gradient(var(--glow), transparent);
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue {
  0%   { transform: scaleY(0); transform-origin: top; }
  40%  { transform: scaleY(1); transform-origin: top; }
  60%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue .bar { animation: none; }
}

/* ---- Cards & grids ---------------------------------------------------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 40px);
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s var(--ease),
              background .4s var(--ease);
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 90% at 0% 0%, rgba(181,123,255,.10), transparent 45%);
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}
.card:hover::after { opacity: 1; }

.card .num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--glow);
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 12px; }
.card p { font-size: 0.98rem; }

.card-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  background: var(--grad-soft);
  border: 1px solid var(--line);
  color: var(--glow);
}
.card-icon svg { width: 22px; height: 22px; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
}

/* ---- Process / steps -------------------------------------------------- */
.steps { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line);
         border-radius: var(--radius); overflow: hidden; }
.steps.cols-4 { grid-template-columns: repeat(4, 1fr); }
.step {
  background: var(--bg-soft);
  padding: clamp(26px, 3vw, 38px) clamp(24px, 2.6vw, 32px);
  transition: background .4s var(--ease);
}
.step:hover { background: var(--bg-card); }
.step .num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--glow);
  margin-bottom: 22px;
}
.step h3 { font-size: 1.35rem; margin-bottom: 10px; }
.step p { font-size: 0.95rem; }

/* ---- Services (alternating rows) ------------------------------------- */
.service {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(48px, 7vw, 96px);
  border-top: 1px solid var(--line);
}
.service:first-of-type { border-top: none; }
.service .meta .eyebrow { margin-bottom: 20px; }
.service .meta h2 { margin-bottom: 18px; }
.service-list { display: grid; gap: 1px; background: var(--line);
                border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service-list li {
  background: var(--bg-soft);
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  align-items: baseline;
  transition: background .3s var(--ease);
}
.service-list li:hover { background: var(--bg-card); }
.service-list .k {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--glow);
  letter-spacing: 0.12em;
  min-width: 34px;
}
.service-list .t { color: var(--ink); font-weight: 500; }
.service-list .t small { display: block; color: var(--muted); font-weight: 400;
                         font-size: 0.86rem; margin-top: 3px; }

/* ---- Portfolio grid --------------------------------------------------- */
.portfolio { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.project {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-card);
  transition: transform .45s var(--ease), border-color .45s var(--ease);
}
.project .thumb {
  position: absolute;
  inset: 0;
  background: var(--grad-soft);
}
.project .thumb::before {           /* placeholder texture */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 60% at 30% 20%, rgba(225,79,176,.4), transparent 55%),
    radial-gradient(60% 70% at 80% 90%, rgba(124,77,255,.5), transparent 55%);
  opacity: .55;
  transition: transform .6s var(--ease), opacity .45s var(--ease);
}
.project .body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px;
  z-index: 2;
  background: linear-gradient(transparent, rgba(26,15,46,.88) 60%);
}
.project .body .eyebrow { margin-bottom: 10px; color: #D9C8EC; }
.project .body h3 { font-size: 1.5rem; color: #FBF9F4; }
.project:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.project:hover .thumb::before { transform: scale(1.08); opacity: .8; }

/* real reference screenshot inside a card */
.project .thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .6s var(--ease);
}
.project:hover .thumb-img { transform: scale(1.06); }

/* "Coming Soon" placeholder — same style, softly set apart, not clickable */
.project.is-soon {
  border-style: dashed;
  border-color: var(--line-strong);
  opacity: 0.7;
  pointer-events: none;
}
.project.is-soon:hover { transform: none; border-color: var(--line-strong); }
.project.is-soon .body { background: none; }
.project.is-soon .body .eyebrow { color: var(--violet); }
.project.is-soon .body h3 { color: var(--ink); }

/* ---- Stats ------------------------------------------------------------ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
         background: var(--line); border: 1px solid var(--line);
         border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--bg-soft); padding: clamp(28px, 3.5vw, 44px); }
.stat .v { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.2rem);
           color: var(--ink); line-height: 1; margin-bottom: 12px; }
.stat .v em { font-style: normal; }
.stat .l { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase;
           letter-spacing: 0.16em; color: var(--muted); }

/* ---- CTA band --------------------------------------------------------- */
.cta-band {
  position: relative;
  border: 1px solid transparent;
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(44px, 7vw, 88px);
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(70% 120% at 50% 0%, rgba(139,93,189,.35), transparent 60%),
    var(--violet);
}
.cta-band h2 { margin-bottom: 20px; color: #FBF9F4; }
.cta-band h2 em { color: #E8DDF0; }
.cta-band .eyebrow { color: #E8DDF0; }
.cta-band .lede { margin-inline: auto; margin-bottom: 34px; color: rgba(251,249,244,.82); }
.cta-band .hero-ctas { justify-content: center; }
.cta-band .btn-primary { background: #F7F4EE; color: var(--ink); }
.cta-band .btn-primary:hover { background: #fff; }
.cta-band .btn-ghost { color: #F7F4EE; border-color: rgba(251,249,244,.4); }
.cta-band .btn-ghost:hover { border-color: #F7F4EE; background: rgba(251,249,244,.1); }

/* ---- Contact form ----------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(36px, 6vw, 84px);
  align-items: start;
}
.contact-meta .eyebrow { margin-bottom: 22px; }
.contact-meta h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin-bottom: 24px; }
.contact-detail { margin-top: 36px; display: grid; gap: 22px; }
.contact-detail .row { border-top: 1px solid var(--line); padding-top: 18px; }
.contact-detail .k { font-family: var(--font-mono); font-size: 0.68rem;
                     text-transform: uppercase; letter-spacing: 0.18em;
                     color: var(--muted-dim); margin-bottom: 6px; }
.contact-detail .val { color: var(--ink); font-size: 1.05rem; }

.form {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 3.5vw, 44px);
}
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 10px;
}
.field input,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 15px 16px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field textarea { min-height: 158px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--muted-dim); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--glow);
  box-shadow: 0 0 0 3px rgba(124,77,255,.22);
}
.form .btn-primary { width: 100%; justify-content: center; }
.form-note { font-size: 0.82rem; color: var(--muted-dim); margin-top: 16px; text-align: center; }
.form-status { margin-top: 18px; font-size: 0.92rem; min-height: 1.2em; }
.form-status.ok { color: var(--glow); }
.form-status.err { color: var(--magenta); }

/* ---- Inline lists / about -------------------------------------------- */
.feature-list { display: grid; gap: 4px; margin-top: 8px; }
.feature-list li {
  position: relative;
  padding: 18px 0 18px 26px;
  color: var(--muted);
  line-height: 1.6;
  border-top: 1px solid var(--line);
}
.feature-list li:first-child { border-top: 0; }
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(18px + 0.62em);
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--grad);
}
.feature-list li strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 3px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.prose p + p { margin-top: 20px; }
.prose .lede { margin-bottom: 26px; }

/* ---- Page hero (interior) -------------------------------------------- */
.page-hero { padding-block: clamp(110px, 15vw, 180px) clamp(20px, 4vw, 48px); }
.page-hero .eyebrow { margin-bottom: 26px; }
.page-hero h1 { max-width: 16ch; margin-bottom: 26px; }
.page-hero .lede { max-width: 58ch; }

/* ---- Footer ----------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(56px, 7vw, 88px) 40px;
  margin-top: clamp(40px, 6vw, 80px);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}
.footer-brand .brand { font-size: 1.7rem; margin-bottom: 18px; }
.footer-brand p { color: var(--muted); max-width: 34ch; font-size: 0.96rem; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted-dim);
  margin-bottom: 20px;
  font-weight: 400;
}
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { color: var(--muted); font-size: 0.96rem; transition: color .3s var(--ease); }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--muted-dim);
  text-transform: uppercase;
}

/* ---- Reveal on scroll ------------------------------------------------- */
/* Content is visible by default. The hidden start-state is applied ONLY
   when JS adds `.reveal-on` to <html> — so with JS disabled everything
   simply shows, never the reverse. Stagger via --reveal-delay (set in JS). */
.reveal-on .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal-on .reveal.in {
  opacity: 1;
  transform: none;
}
/* Safety net: reduced motion never hides content, even if class is present. */
@media (prefers-reduced-motion: reduce) {
  .reveal-on .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---- Accessibility ---------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--glow);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 200;
  background: var(--violet);
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
}
.skip-link:focus { left: 16px; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---- Responsive ------------------------------------------------------- */
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .service { grid-template-columns: 1fr; gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-links {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 22px var(--gutter) 34px;
    background: rgba(247, 244, 238, 0.98);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform .35s var(--ease), opacity .35s var(--ease), visibility .35s;
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a.nav-link { font-size: 1.25rem; font-family: var(--font-display);
                          color: var(--ink); padding-block: 12px; width: 100%; }
  .nav-links a.nav-link::after { display: none; }
  .nav-links .btn { margin-top: 14px; display: inline-flex; }
  .burger { display: block; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps.cols-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .portfolio { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

}

/* =======================================================================
   Preis-Konfigurator
   ======================================================================= */
.cfg-wrap {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

/* ---- progress rail ---- */
.cfg-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 38px;
  counter-reset: step;
}
.cfg-progress button {
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.cfg-progress button .pn {
  width: 18px; height: 18px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-card);
  font-size: 0.62rem;
  color: var(--muted-dim);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.cfg-progress button:hover { border-color: var(--line-strong); color: var(--ink); }
.cfg-progress button.is-active { color: var(--ink); border-color: var(--glow); }
.cfg-progress button.is-active .pn,
.cfg-progress button.is-done .pn { background: var(--grad); color: #fff; }
.cfg-progress button.is-done { color: var(--ink); }

/* ---- steps ---- */
.cfg-step { padding-block: 6px 8px; }
.cfg-js .cfg-step { display: none; }
.cfg-js .cfg-step.is-active { display: block; }
.cfg-js .cfg-step.is-active { animation: cfgIn .5s var(--ease) both; }
@keyframes cfgIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .cfg-js .cfg-step.is-active { animation: none; }
}
/* without JS: visually separate the stacked steps */
.cfg:not(.cfg-js) .cfg-step + .cfg-step { margin-top: 40px; padding-top: 36px; border-top: 1px solid var(--line); }

.cfg-step legend, .cfg-step .legend {
  display: block;
  padding: 0;
  margin-bottom: 6px;
}
.cfg-step .step-kicker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--glow);
  margin-bottom: 14px;
}
.cfg-step h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 8px; }
.cfg-step .step-sub { color: var(--muted); font-size: 0.98rem; margin-bottom: 26px; max-width: 52ch; }

/* ---- option tiles ---- */
.opt-grid { display: grid; gap: 12px; border: 0; padding: 0; margin: 0; min-inline-size: 0; }
.opt-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.opt-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.opt {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  transition: transform .3s var(--ease), border-color .3s var(--ease),
              background .3s var(--ease), box-shadow .3s var(--ease);
}
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.opt .opt-mark {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  margin-top: 2px;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.opt[data-shape="radio"] .opt-mark { border-radius: 50%; }
.opt .opt-mark svg { width: 12px; height: 12px; color: #fff; opacity: 0; transform: scale(.5); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.opt .opt-body { flex: 1; min-width: 0; }
.opt .opt-title { display: block; color: var(--ink); font-weight: 600; font-size: 1.02rem; }
.opt .opt-desc { display: block; color: var(--muted); font-size: 0.86rem; margin-top: 4px; }
.opt .opt-price { flex: none; font-family: var(--font-mono); font-size: 0.82rem; color: var(--muted);
                  white-space: nowrap; padding-top: 2px; }
.opt .opt-price b { color: var(--ink); font-weight: 500; }

.opt:hover { transform: translateY(-2px); border-color: var(--line-strong); background: var(--bg-soft); }

/* selected → lila glow border */
.opt.is-selected {
  border-color: var(--glow);
  background: var(--grad-soft);
  box-shadow: 0 0 0 1px var(--glow), 0 14px 44px -16px rgba(124, 77, 255, .7);
}
.opt.is-selected .opt-mark { border-color: transparent; background: var(--grad); }
.opt.is-selected .opt-mark svg { opacity: 1; transform: none; }
.opt.is-selected .opt-price b { color: var(--glow); }
.opt:focus-within { outline: 2px solid var(--glow); outline-offset: 3px; }

/* ---- counter ---- */
.cfg-counter {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 20px;
  width: fit-content;
}
.cfg-counter button {
  width: 44px; height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  display: grid; place-items: center;
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .15s var(--ease);
}
.cfg-counter button:hover { border-color: var(--glow); background: rgba(181,123,255,.08); }
.cfg-counter button:active { transform: scale(.94); }
.cfg-counter .count { font-family: var(--font-display); font-size: 1.8rem; color: var(--ink);
                      min-width: 2.2ch; text-align: center; }
.cfg-counter .count-label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em;
                            text-transform: uppercase; color: var(--muted); }

/* ---- step nav ---- */
.cfg-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 34px; }
.cfg-js .cfg-nav { display: flex; }
.cfg:not(.cfg-js) .cfg-nav { display: none; }
.cfg-nav .spacer { flex: 1; }

/* ---- summary ---- */
.cfg-summary {
  position: sticky;
  top: 96px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  overflow: hidden;
}
.cfg-summary::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 70% at 100% 0%, rgba(124,77,255,.14), transparent 55%);
  pointer-events: none;
}
.cfg-summary > * { position: relative; }
.cfg-summary h3 { font-size: 1.2rem; margin-bottom: 18px; }
.sum-list { display: grid; gap: 0; margin-bottom: 18px; }
.sum-row { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0;
           border-top: 1px solid var(--line); font-size: 0.9rem; }
.sum-row:first-child { border-top: 0; }
.sum-row .k { color: var(--muted); }
.sum-row .k small { display: block; color: var(--muted-dim); font-size: 0.78rem; }
.sum-row .v { color: var(--ink); font-family: var(--font-mono); font-size: 0.84rem; white-space: nowrap; }
.sum-empty { color: var(--muted-dim); font-size: 0.88rem; padding: 8px 0 14px; }

.sum-total { border-top: 1px solid var(--line-strong); padding-top: 18px; margin-top: 4px; }
.sum-total .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sum-total .row + .row { margin-top: 8px; }
.sum-total .lbl { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase;
                  letter-spacing: 0.16em; color: var(--muted); }
.sum-total .amt { font-family: var(--font-display); color: var(--ink); }
.sum-total .amt.big { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.sum-total .amt .gradient-text { font-style: normal; }
.sum-total .per { font-size: 1.1rem; }
.cfg-summary .btn-primary { width: 100%; justify-content: center; margin-top: 22px; }
.cfg-summary .hint { font-size: 0.74rem; color: var(--muted-dim); margin-top: 12px; text-align: center; }

/* ---- contact step ---- */
.cfg-contact .cfg-msg {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  white-space: pre-wrap;
  min-height: 150px;
  margin-bottom: 22px;
  resize: vertical;
}

/* ---- responsive ---- */
@media (max-width: 980px) {
  .cfg-wrap { grid-template-columns: 1fr; }
  .opt-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .cfg-summary {
    position: fixed;
    inset: auto 0 0 0;
    top: auto;
    border-radius: 18px 18px 0 0;
    border-bottom: 0;
    padding: 16px var(--gutter);
    z-index: 60;
    box-shadow: 0 -18px 50px -20px rgba(0,0,0,.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(251, 249, 244, 0.95);
  }
  .cfg-summary h3 { display: none; }
  .cfg-summary .sum-list { display: none; }
  .cfg-summary.open .sum-list { display: grid; max-height: 42vh; overflow-y: auto; margin-bottom: 14px; }
  .cfg-summary .sum-toggle {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
    background: transparent; border: 0; color: var(--muted); font-family: var(--font-mono);
    font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 0 0 10px;
  }
  .cfg-summary .sum-toggle svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
  .cfg-summary.open .sum-toggle svg { transform: rotate(180deg); }
  /* leave room so fixed bar doesn't cover content */
  .cfg-pad { padding-bottom: 200px; }
}
.cfg-summary .sum-toggle { display: none; }
@media (max-width: 980px) { .cfg-summary .sum-toggle { display: flex; } }

@media (max-width: 560px) {
  .opt-grid.cols-2, .opt-grid.cols-3 { grid-template-columns: 1fr; }
  .opt { padding: 16px; }
  .cfg-progress button .label { display: none; }
}

/* ---- Brand logo (image wordmark) ------------------------------------- */
.brand-logo {
  height: 34px;
  width: 34px;
  display: block;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.brand:hover .brand-logo { opacity: .82; transform: translateY(-1px); }
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand .brand-logo { height: 28px; width: 28px; }
@media (max-width: 720px) {
  .brand-logo { height: 30px; width: 30px; }
}

/* =======================================================================
   Preloader / Loading-Screen — "stevora." animiert
   ======================================================================= */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;                 /* aus, bis JS es freischaltet (kein Stuck-Overlay ohne JS) */
  place-items: center;
  background:
    radial-gradient(60% 60% at 50% 42%, rgba(139, 93, 189, .10), transparent 62%),
    var(--bg);
  transition: opacity .9s var(--ease), visibility .9s var(--ease);
}
/* Nur zeigen, wenn JS an UND Bewegung erlaubt (Klasse setzt der Inline-Guard) */
.show-preloader .preloader { display: grid; }
.preloader.is-done { opacity: 0; visibility: hidden; }

.preloader-inner { text-align: center; padding-inline: 24px; }

.preloader-word {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 9vw, 5rem);
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(100deg, #5B2C87 0%, #8B5DBD 40%, #5B2C87 70%, #8B5DBD 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translateY(16px);
  animation: pl-rise 1.1s var(--ease) .12s forwards,
             pl-sheen 3s linear .6s infinite;
}
.preloader-word .gmbh {
  font-size: 0.34em;
  letter-spacing: 0.02em;
  vertical-align: baseline;
  margin-left: 0.28em;
  -webkit-text-fill-color: var(--muted);
  color: var(--muted);
}

.preloader-line {
  display: block;
  height: 1px;
  width: min(300px, 62vw);
  margin: 24px auto 0;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: center;
  animation: pl-line 1.2s var(--ease) .55s forwards;
}

.preloader-sub {
  display: block;
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--muted);
  opacity: 0;
  animation: pl-fade 1s var(--ease) .9s forwards;
}

@keyframes pl-rise  { to { opacity: 1; transform: none; } }
@keyframes pl-line  { to { transform: scaleX(1); } }
@keyframes pl-fade  { to { opacity: 1; } }
@keyframes pl-sheen { to { background-position: 220% 0; } }

/* =======================================================================
   Über uns — persönlicher Intro-Abschnitt (Kilian Steiner)
   Gleicher editorialer Stil wie der Rest der Seite.
   ======================================================================= */
.intro-split { grid-template-columns: 0.82fr 1.18fr; align-items: start; gap: clamp(32px, 6vw, 68px); }
.intro-photo { position: relative; }
.intro-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;      /* ausgewogenes Hochformat, nicht lang gezogen */
  max-height: 560px;        /* verhindert überlange Darstellung auf breiten Screens */
  object-fit: cover;
  object-position: center 18%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-card);
}
.intro-body .eyebrow { margin-bottom: 20px; }
.intro-body h2 { margin-bottom: 20px; }
.intro-body .lede { margin-bottom: 0; }

.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 460;
  font-size: clamp(1.2rem, 2.1vw, 1.55rem);
  line-height: 1.42;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 44ch;
  margin-top: 32px;
  padding-left: 24px;
  border-left: 2px solid transparent;
  border-image: var(--grad) 1;
}

/* Ausbildung & Zertifikate */
.edu { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 28px; }
.edu .eyebrow { margin-bottom: 20px; }
.edu-list { display: grid; gap: 0; }
.edu-list li {
  display: flex;
  gap: 22px;
  align-items: baseline;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}
.edu-list li:first-child { border-top: 0; }
.edu-year {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--glow);
  min-width: 3.6ch;
  flex: none;
}
.edu-title { color: var(--ink); font-weight: 500; }
.edu-title small { display: block; color: var(--muted); font-weight: 400; font-size: 0.85rem; margin-top: 3px; }

@media (max-width: 980px) {
  /* gestapelt: kompakter, damit das Foto nicht die halbe Seite füllt */
  .intro-photo img { aspect-ratio: 3 / 2; max-height: 440px; object-position: center 20%; }
}
@media (max-width: 560px) {
  .intro-photo img { aspect-ratio: 4 / 5; max-height: 460px; object-position: center 16%; }
}

/* ---- Team-Header (Hinter stevora gmbh.) ---- */
.team-head { align-items: end; gap: clamp(24px, 5vw, 64px); margin-bottom: clamp(40px, 6vw, 68px); }
.team-head .eyebrow { margin-bottom: 18px; }
.team-head h2 { margin-bottom: 0; }
.team-head .lede { margin-bottom: 6px; }
@media (max-width: 980px) {
  .team-head { align-items: start; }
}

/* ---- Foto-Rahmen: sauber begrenzt, blutet nie randlos ---- */
.intro-photo img {
  box-shadow: 0 24px 60px -32px rgba(26, 15, 46, .35);
}

/* =======================================================================
   Rechtstexte (Impressum / Datenschutz) + Footer-Rechtslinks
   ======================================================================= */
.legal { max-width: 780px; }
.legal .lede { margin-bottom: 8px; }
.legal h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  margin-top: clamp(38px, 5vw, 58px);
  margin-bottom: 14px;
}
.legal h3 { font-size: 1.1rem; margin-top: 26px; margin-bottom: 8px; color: var(--ink); }
.legal p { margin-bottom: 14px; color: var(--muted); }
.legal a { color: var(--violet); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--ink); }
.legal ul { display: grid; gap: 9px; margin: 6px 0 16px; padding-left: 0; }
.legal ul li { position: relative; padding-left: 22px; color: var(--muted); }
.legal ul li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--grad);
}
.legal address.addr {
  font-style: normal; color: var(--ink); line-height: 1.75;
  padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-card); margin: 4px 0 16px; display: inline-block;
}
.legal .note {
  font-size: 0.86rem; color: var(--muted-dim);
  border-left: 2px solid var(--line-strong); padding-left: 16px; margin: 22px 0;
}

/* Footer: Rechtslinks */
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: var(--muted-dim); transition: color .3s var(--ease); }
.footer-legal a:hover { color: var(--ink); }

/* =======================================================================
   Partner-Seite
   ======================================================================= */
.partner-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  padding-block: clamp(52px, 8vw, 96px);
  border-top: 1px solid var(--line);
}
.partner-row:first-of-type { border-top: 0; }

.partner-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--violet);
  background: rgba(91, 44, 135, .10);
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  margin-bottom: 22px;
}
.partner-body h2 { margin-bottom: 20px; }
.partner-body p { margin-bottom: 16px; }
.partner-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* violette Primär-CTA (wie in den Partner-Screenshots) */
.btn-violet { background: var(--violet); color: #F7F4EE; box-shadow: 0 10px 30px -12px rgba(91, 44, 135, .5); }
.btn-violet:hover { transform: translateY(-2px); background: #6B3AA0; box-shadow: 0 14px 40px -12px rgba(91, 44, 135, .55); }
.btn-violet:hover svg { transform: translateX(3px); }

/* Partner-Visuals */
.partner-card {
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px;
}
.partner-card--ads {
  background: #164A34;              /* Forest-Green wie stevora ads */
  color: #EAF0EA;
  font-family: var(--font-display);
  line-height: 1.02;
}
.partner-card--ads .pc-w1 { display: block; font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 500; letter-spacing: -0.02em; }
.partner-card--ads .pc-w2 { display: block; font-style: italic; font-size: clamp(1.7rem, 3.4vw, 2.6rem); color: #A9C3AC; margin-top: 8px; }

.partner-card--lux { background: #FFFFFF; border: 1px solid var(--line); }
.partner-card--lux img { max-width: 70%; height: auto; }
.partner-card--lux .lux-ph b { display: block; font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.2rem); color: #2C2C2C; letter-spacing: 0.04em; margin-bottom: 6px; }
.partner-card--lux .lux-ph span { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: #8A8A8A; }

@media (max-width: 900px) {
  .partner-row { grid-template-columns: 1fr; gap: 28px; }
  .partner-visual { order: -1; }   /* Bild auf Mobile immer oben */
}

/* ---- Footer: Social-Icon (Instagram) ---- */
.footer-social {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-top: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  transition: color .3s var(--ease), border-color .3s var(--ease),
              background .3s var(--ease), transform .3s var(--ease);
}
.footer-social svg { width: 20px; height: 20px; }
.footer-social:hover {
  color: var(--violet);
  border-color: var(--violet);
  background: rgba(91, 44, 135, .06);
  transform: translateY(-2px);
}

/* =======================================================================
   Mobile-Feinschliff (nur kleine Viewports — Desktop bleibt unberührt)
   ======================================================================= */

/* ---- Tap-Targets ab Tablet abwärts ---- */
@media (max-width: 980px) {
  .nav-links a.nav-link { min-height: 44px; display: inline-flex; align-items: center; }
  .footer-col ul a,
  .footer-legal a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-col ul li { line-height: 1.3; }
  .site-header .brand,
  .footer-brand .brand { min-height: 44px; align-items: center; }
  .footer-social { width: 44px; height: 44px; }
  /* eigenständige Kontaktlinks (nicht im Fliesstext) sicher tippbar */
  .contact-detail .val a { display: inline-flex; align-items: center; min-height: 44px; }

  /* ---- Mikro-Typografie: nichts unter 12px ----
     Die Ausgangswerte (0.68–0.72rem) landen bei 16px Basis auf 10.9–11.5px.
     Selektoren bewusst so spezifisch wie die Originalregeln. */
  .eyebrow { font-size: 0.78rem; letter-spacing: 0.2em; }
  .scroll-cue { font-size: 0.78rem; letter-spacing: 0.2em; }
  .stat .l { font-size: 0.78rem; }
  .site-footer h4 { font-size: 0.78rem; letter-spacing: 0.2em; }
  .footer-bottom { font-size: 0.78rem; }
  .service-list .k,
  .contact-detail .k { font-size: 0.78rem; }
  .field label { font-size: 0.78rem; }
  .cfg-step .step-kicker { font-size: 0.78rem; }
  .sum-total .lbl { font-size: 0.78rem; }
  .cfg-summary .hint { font-size: 0.8rem; }
  .cfg-summary .sum-toggle { font-size: 0.78rem; }
  .cfg-counter .count-label { font-size: 0.78rem; }
  .partner-badge { font-size: 0.78rem; }
  .cfg-progress button .label { font-size: 0.78rem; }

  /* Konfigurator-Bedienelemente auch auf Tablet gross genug */
  .cfg-progress button { min-height: 44px; }
  .cfg-summary .sum-toggle { min-height: 44px; }
}

@media (max-width: 720px) {
  /* ---- Hero: Überschrift sauber herunterskaliert ----
     Die Kurve trifft bei 720px exakt die Desktop-Grösse (50.5px),
     damit am Breakpoint kein Sprung entsteht. */
  h1 { font-size: clamp(1.9rem, 5.65vw + 0.61rem, 3.2rem); }
  h2 { font-size: clamp(1.65rem, 4.4vw + 0.55rem, 2.6rem); }
  .hero h1 { max-width: 100%; margin-block: 18px 22px; }
  .hero .lede { margin-bottom: 30px; }
  .hero-inner { padding-block: 96px 108px; }
  .hero { min-height: min(88vh, 720px); }

  /* ---- Hero-Buttons: gestapelt, volle Breite, sicher tippbar ---- */
  .hero-ctas { flex-direction: column; align-items: stretch; gap: 12px; width: 100%; }
  .hero-ctas .btn { width: 100%; justify-content: center; min-height: 52px; }

  /* alle Buttons mindestens 44px hoch */
  .btn { min-height: 46px; justify-content: center; }

  .edu-title small { font-size: 0.9rem; }
  .cfg-progress button { font-size: 0.78rem; }

  /* ---- Über uns: Foto über den Text stapeln ----
     .intro-split stand nach der 980er-Query im Quelltext und hat deren
     1fr wieder überschrieben — das Foto blieb dadurch in einer 76px-Spalte. */
  .intro-split { grid-template-columns: 1fr; gap: 28px; }
  .intro-photo img { aspect-ratio: 4 / 3; max-height: 380px; object-position: center 15%; }
  .pull-quote { padding-left: 18px; margin-top: 26px; }
  .edu-list li { gap: 16px; }

  /* ---- Konfigurator: Bedienelemente grosszügiger ---- */
  .cfg-progress button { min-height: 44px; }
  .cfg-summary .sum-toggle { min-height: 44px; }

  /* ---- Kontakt: Felder tippbar, 16px verhindert iOS-Zoom beim Fokus ---- */
  .field input,
  .field textarea { min-height: 48px; font-size: 16px; }
  .field textarea { min-height: 150px; }
}

/* iPhone SE und schmaler: letzte Reserve */
@media (max-width: 380px) {
  .stats { grid-template-columns: 1fr; }
  .eyebrow { letter-spacing: 0.16em; }
  .eyebrow::before { width: 18px; }
}

/* ---- Touch: Hover-Effekte nur dort, wo es echten Hover gibt ----
   Verhindert hängenbleibende Hover-Zustände nach dem Antippen. */
@media (hover: none) {
  .btn:hover,
  .card:hover,
  .project:hover,
  .nav-link:hover,
  .partner-card:hover,
  .cfg-progress button:hover,
  .opt:hover {
    transform: none;
  }
  .btn:hover svg { transform: none; }
  .project:hover .thumb-img { transform: none; }
