/* ================================
   ziiiegler DESIGN — Basis & Variablen
================================ */
:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f5f4f2;
  --color-text: #1c1c1c;
  --color-text-muted: #6f6f6f;
  --color-line: #e2e0dc;
  --color-border: #1c1c1c;

  /* Dezente Akzenttöne, aus der Farbvorlage abgeleitet (nur dekorativ, nicht für Text/Fokus) */
  --color-accent-light: #e5d5d5;
  --color-accent: #a98b8d;
  --color-accent-dark: #3e2e30;

  --font-heading: 'Montserrat', 'Segoe UI', sans-serif;
  --font-body: 'Karla', 'Segoe UI', sans-serif;

  --container-width: 1280px;
  --header-height: 92px;
  --radius-btn: 4px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 300;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 4.2vw + 1rem, 4.6rem); }
h2 { font-size: clamp(1.9rem, 2.4vw + 1rem, 2.8rem); }
h3 { font-size: 1.15rem; font-weight: 500; }

p { margin: 0 0 1em; color: var(--color-text-muted); }

a { color: inherit; text-decoration: none; }

ul, ol { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 56px;
}

.eyebrow {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 1em;
}
.eyebrow::before,
.eyebrow::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--color-text-muted);
}
.eyebrow::before { margin-bottom: 14px; }
.eyebrow::after { margin-top: 14px; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #000;
  color: #fff;
  padding: 12px 20px;
  z-index: 999;
}
.skip-link:focus { left: 16px; top: 16px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .hero-bg__image { animation: none !important; transform: scale(1) !important; filter: none !important; }
  .hero-bg__sweep { animation: none !important; }
  .hero-slide .eyebrow,
  .hero-slide .hero-claim,
  .hero-slide .hero-text,
  .hero-slide .hero-cta-row {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* ================================
   Buttons
================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 11px 28px;
  border: 1px solid rgba(62, 46, 48, 0.32);
  border-radius: var(--radius-btn);
  background: rgba(255, 255, 255, 0.28);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text);
  white-space: nowrap;
  transition: border-color 0.24s ease-out, background-color 0.24s ease-out, color 0.24s ease-out;
}
.btn-line {
  flex: 0 0 auto;
  width: 34px;
  height: 1px;
  background: rgba(169, 139, 141, 0.6);
  transition: width 0.24s ease-out, background-color 0.24s ease-out;
}
.btn:hover,
.btn:focus-visible {
  border-color: rgba(62, 46, 48, 0.55);
  background: rgba(229, 213, 213, 0.3);
}
.btn:hover .btn-line,
.btn:focus-visible .btn-line { width: 46px; }

/* ================================
   Header
================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 0 var(--color-line);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.logo { justify-self: start; }
.logo img { height: auto; max-height: 76px; width: auto; }

.main-nav { justify-self: center; }
.main-nav ul { display: flex; gap: 42px; }
.main-nav a {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  position: relative;
  padding: 4px 0;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--color-text);
  transition: width 0.3s var(--ease);
}
.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a.is-active::after { width: 100%; }

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 22px;
}

.social-links { display: flex; align-items: center; gap: 14px; }
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: color 0.3s var(--ease);
}
.social-links a:hover,
.social-links a:focus-visible { color: var(--color-text); }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-text);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ================================
   Hero Animation
================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: #f2f2f0;
}

.hero-slider { position: relative; width: 100%; height: 100%; overflow: hidden; }

/* --- Silk background --- */
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; isolation: isolate; }

.hero-bg__image {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  background-image: url("../assets/background-zD.jpg");
  background-size: cover;
  background-position: center 90%;
  will-change: transform, filter;
  filter: blur(14px);
  animation:
    heroSilkFocus 2.4s cubic-bezier(.165,.84,.44,1) forwards,
    heroSilkCamera 24s cubic-bezier(.445,.05,.55,.95) infinite;
}
@keyframes heroSilkFocus { to { filter: blur(0); } }
@keyframes heroSilkCamera {
  0%   { transform: translate3d(0, 0, 0) scale(1.06); }
  50%  { transform: translate3d(-2.6%, 1.4%, 0) scale(1.15); }
  100% { transform: translate3d(0, 0, 0) scale(1.06); }
}

.hero-bg__sweep {
  position: absolute;
  inset: -20% -60%;
  background: linear-gradient(100deg, rgba(255,255,255,0) 35%, rgba(229,213,213,.4) 50%, rgba(255,255,255,0) 65%);
  mix-blend-mode: soft-light;
  animation: heroSweep 9s linear infinite;
}
@keyframes heroSweep {
  from { transform: translateX(-35%); }
  to   { transform: translateX(35%); }
}

.hero-bg__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 62% 46%, rgba(255,255,255,0) 35%, rgba(199,167,169,.48) 100%);
}

.hero-bg__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(229,213,213,.3) 0%, rgba(255,255,255,0) 64%);
}

/* --- Text block --- */
.hero-text-block {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: var(--header-height) 8% 90px 11.5%;
  max-width: 980px;
}

.hero-slides { position: relative; display: grid; width: 100%; }

.hero-slide {
  grid-area: 1 / 1;
  align-self: start;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.hero-slide .eyebrow,
.hero-slide .hero-claim,
.hero-slide .hero-text,
.hero-slide .hero-cta-row {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(5px);
  transition: opacity 0.9s cubic-bezier(.165,.84,.44,1), transform 0.9s cubic-bezier(.165,.84,.44,1), filter 0.9s cubic-bezier(.165,.84,.44,1);
}
.hero-slide.is-active .eyebrow { transition-delay: 0.05s; }
.hero-slide.is-active .hero-claim { transition-delay: 0.2s; }
.hero-slide.is-active .hero-text { transition-delay: 0.4s; }
.hero-slide.is-active .hero-cta-row { transition-delay: 0.6s; }
.hero-slide.is-active .eyebrow,
.hero-slide.is-active .hero-claim,
.hero-slide.is-active .hero-text,
.hero-slide.is-active .hero-cta-row {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Claim (H1 & H2): langsame Fade-Animation von innen nach außen (Skalierung + Unschärfe) */
.hero-slide .hero-claim {
  transform: scale(0.85);
  filter: blur(9px);
  transition: opacity 2.2s cubic-bezier(.165,.84,.44,1), transform 2.2s cubic-bezier(.165,.84,.44,1), filter 2.2s cubic-bezier(.165,.84,.44,1);
}
.hero-slide.is-active .hero-claim {
  transform: scale(1);
  filter: blur(0);
}

.hero-claim {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(1.6rem, 2vw + 1rem, 2.6rem);
  line-height: 1.3;
  color: rgba(28, 28, 28, 0.85);
  max-width: 640px;
  margin: 0 0 22px;
}

.hero-slide .hero-text {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(28, 28, 28, 0.62);
  max-width: 480px;
  margin: 0 0 40px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 11px 28px;
  border: 1px solid rgba(62, 46, 48, 0.32);
  border-radius: var(--radius-btn);
  background: rgba(255, 255, 255, 0.28);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text);
  transition: border-color 0.24s ease-out, background-color 0.24s ease-out;
}
.hero-cta__line {
  width: 34px;
  height: 1px;
  background: rgba(169, 139, 141, 0.6);
  transition: width 0.24s ease-out;
}
.hero-cta:hover,
.hero-cta:focus-visible {
  border-color: rgba(62, 46, 48, 0.55);
  background: rgba(229, 213, 213, 0.3);
}
.hero-cta:hover .hero-cta__line,
.hero-cta:focus-visible .hero-cta__line { width: 46px; }

.hero-cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
}
.hero-phone {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-text);
  border-bottom: 1px solid rgba(28, 28, 28, 0.28);
  padding-bottom: 2px;
  transition: border-color 0.24s ease-out, color 0.24s ease-out;
}
.hero-phone:hover,
.hero-phone:focus-visible {
  color: rgba(28, 28, 28, 0.7);
  border-color: rgba(62, 46, 48, 0.6);
}

.hero-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 40px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.hero-dots { display: flex; gap: 10px; }
.hero-dot {
  width: 30px;
  height: 2px;
  border: none;
  background: var(--color-line);
  cursor: pointer;
  padding: 0;
  transition: background-color 0.3s var(--ease);
}
.hero-dot.is-active { background: var(--color-accent-dark); }

.hero-counter {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.hero-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(63, 63, 63, 0.12);
  z-index: 3;
  overflow: hidden;
}
.hero-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--color-accent-dark);
  animation: heroProgress 7s linear forwards;
}
.hero-slider.is-paused .hero-progress-bar { animation-play-state: paused; }

@keyframes heroProgress {
  from { width: 0%; }
  to { width: 100%; }
}

/* ================================
   Sections
================================ */
.section { padding: 120px 0; }
.section--alt { background: var(--color-bg-alt); }
.section-intro { max-width: 640px; }

/* Einheitlicher Abstand Absatz → nächster Content-Block, z. B. Kacheln (One-Pager-Bereiche; beratung.html hat eigene, individuell angepasste Abstände) */
#referenzen .reference-grid {
  margin-top: 64px;
}

/* Kontakt-Formular: Felder tauchen nacheinander auf statt als ein Block */
.kontakt-form .btn.reveal {
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), border-color 0.24s ease-out, background-color 0.24s ease-out, color 0.24s ease-out;
}
.kontakt-form > .reveal:nth-child(1) { transition-delay: 0s; }
.kontakt-form > .reveal:nth-child(2) { transition-delay: 0.12s; }
.kontakt-form > .reveal:nth-child(3) { transition-delay: 0.24s; }
.kontakt-form > .reveal:nth-child(4) { transition-delay: 0.36s; }
.kontakt-form > .reveal:nth-child(5) { transition-delay: 0.48s; }

.grid { display: grid; gap: 40px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-media {
  position: relative;
  width: 100%;
}
.about-media::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 24px;
  right: -24px;
  bottom: -24px;
  border: 1px solid var(--color-line);
  z-index: 0;
}
.about-media__frame {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.about-media__frame img {
  width: 100%;
  height: 130%;
  object-fit: cover;
  will-change: transform;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.about-stat {
  padding-top: 16px;
  border-top: 1px solid var(--color-accent-light);
}
.about-stat__number {
  display: block;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(1.25rem, 0.7vw + 1.05rem, 1.5rem);
  color: var(--color-text);
  line-height: 1.1;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.about-stat__label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* Leistung */
.leistung-section {
  position: relative;
  background-image:
    radial-gradient(ellipse 820px 620px at 12% 15%, rgba(169, 139, 141, 0.26), transparent 62%),
    radial-gradient(ellipse 760px 720px at 88% 12%, rgba(229, 213, 213, 0.32), transparent 62%),
    radial-gradient(ellipse 900px 720px at 18% 92%, rgba(62, 46, 48, 0.08), transparent 65%),
    radial-gradient(ellipse 820px 640px at 92% 88%, rgba(169, 139, 141, 0.2), transparent 62%);
  background-color: var(--color-bg);
  background-repeat: no-repeat;
}
.leistung-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 64px;
}
.leistung-col {
  padding: 48px 44px;
  background: var(--color-bg-alt);
  border-top: 2px solid var(--color-accent-light);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}
.leistung-col:hover {
  transform: translateY(-6px);
  border-color: var(--color-accent-dark);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.12);
}
.leistung-index {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  letter-spacing: 0.1em;
}
.leistung-col h3 {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(1.3rem, 1.4vw + 1rem, 1.7rem);
  margin: 0 0 12px;
}
.leistung-subhead {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  margin: 0 0 18px;
}
.leistung-col > p:not(.leistung-subhead):not(.leistung-list-label) {
  color: var(--color-text-muted);
  line-height: 1.7;
}
.leistung-list-label {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
  margin: 28px 0 14px;
}
.leistung-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 32px;
}
.leistung-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}
.leistung-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-line);
}
.leistung-cta-wrap {
  margin-top: 56px;
  text-align: left;
}

/* Website-Check Teaser (kompakter Quick-Entry-Bereich zwischen About und Leistung) */
.websitecheck-section {
  background: var(--color-bg-alt);
}
.websitecheck-disclaimer {
  max-width: 640px;
  margin-top: 48px;
  font-size: 0.82rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* Beratung steps */
.steps { display: flex; flex-direction: column; gap: 0; max-width: 780px; margin-left: auto; margin-right: auto; }
.steps li {
  position: relative;
  display: flex;
  gap: 32px;
  padding: 36px 0;
  border-top: 2px solid var(--color-accent-light);
  transition: border-color 0.6s var(--ease);
}
.steps li:last-child { border-bottom: 1px solid var(--color-line); }
.step-index {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-text-muted);
  flex: 0 0 48px;
}
.beratung-section {
  position: relative;
  padding-bottom: 0;
  background-image: linear-gradient(rgba(255,255,255,.45), rgba(255,255,255,.45)), url("../assets/background-beratung-zD.jpg");
  background-size: cover;
  background-position: left top;
  background-attachment: fixed;
}

#beratung.beratung-teaser-section { padding: 160px 0; }

#beratung .section-intro { max-width: none; }
.beratung-lead { max-width: none; }

.beratung-teaser-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}

.beratung-teaser-price {
  padding: 48px 44px;
  background: var(--color-bg-alt);
}

.beratung-price-display {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(1.6rem, 2vw + 1rem, 2.4rem);
  line-height: 1.3;
  color: var(--color-text);
  margin: 0;
}
.beratung-price-sub {
  margin: 8px 0 28px;
  color: var(--color-text-muted);
}

.card {
  padding: 36px 0;
  border-top: 1px solid var(--color-line);
}
.beratung-info .card:last-child {
  border-bottom: 1px solid var(--color-line);
}

.beratung-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
}
.beratung-accordion summary::-webkit-details-marker { display: none; }
.beratung-accordion summary h3 { margin: 0; }

.accordion-icon {
  position: relative;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
}
.accordion-icon span {
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--color-text);
  transition: transform 0.3s var(--ease);
}
.accordion-icon span:first-child { width: 16px; height: 1.5px; transform: translate(-50%, -50%); }
.accordion-icon span:last-child { width: 1.5px; height: 16px; transform: translate(-50%, -50%); }
.beratung-accordion[open] .accordion-icon span:last-child {
  transform: translate(-50%, -50%) rotate(90deg);
}

.beratung-accordion p { margin-top: 20px; }

.beratung-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 56px;
}

.beratung-hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  background-image: linear-gradient(rgba(229,213,213,.35), rgba(229,213,213,.35)), url("../assets/ziiiegler_design_beratung_01.jpg");
  background-size: cover, auto 75%;
  background-position: top, right;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.beratung-hero h1 { margin: 0; }

.websitecheck-hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  background-image: linear-gradient(rgba(250,248,246,.82), rgba(229,213,213,.82)), url("../assets/ziiiegler_design_websitecheck-01.jpg");
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.websitecheck-hero h1 { margin: 0; }

.existenzgruender-hero {
  background-image: linear-gradient(rgba(250,248,246,.93), rgba(229,213,213,.93)), url("../assets/ziiiegler_design_existenzgruender-01.jpg");
}
.existenzgruender-hero-lead { margin-top: 24px; }

.beratung-info { display: flex; flex-direction: column; }

.beratung-fuer-wen ul { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.beratung-fuer-wen li {
  position: relative;
  padding-left: 28px;
  color: var(--color-text-muted);
  line-height: 1.6;
}
.beratung-fuer-wen li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-text);
}

.beratung-process {
  background: var(--color-bg-alt);
  padding: 144px 0 80px;
}

.beratung-steps-title { max-width: 780px; margin: 0 auto 48px; text-align: left; }

.websitecheck-process {
  background: var(--color-bg);
  padding: 144px 0 80px;
}
.websitecheck-process h2 { max-width: 780px; margin: 0 auto 48px; text-align: left; }
.websitecheck-process .leistung-cta-wrap,
.websitecheck-process .websitecheck-disclaimer {
  box-sizing: border-box;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 80px;
}

.beratung-payment {
  margin-top: 24px;
  max-width: 640px;
}
.beratung-payment summary {
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-text);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
}
.beratung-payment summary::-webkit-details-marker { display: none; }
.beratung-payment summary::before {
  content: '▸';
  color: var(--color-text-muted);
  transition: transform 0.25s var(--ease);
}
.beratung-payment[open] summary::before { transform: rotate(90deg); }
.beratung-payment p {
  margin-top: 14px;
  font-size: 0.92rem;
}

.beratung-form-section {
  position: relative;
  background-image: linear-gradient(rgba(255,255,255,.65), rgba(255,255,255,.65)), url("../assets/background-beratung-zD.jpg");
  background-size: cover;
  background-position: center;
}

.beratung-form-wrap {
  margin: 0 auto;
  max-width: 640px;
}
.beratung-form-wrap h2 { margin-bottom: 72px; text-align: left; }
.beratung-form { display: flex; flex-direction: column; gap: 22px; }
.beratung-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

/* Referenzen */
.reference-card {
  position: relative;
  padding: 40px 0;
  border-top: 2px solid var(--color-accent-light);
  transition: border-color 0.6s var(--ease);
}
.reference-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 24px;
  background: var(--color-bg-alt);
}
.reference-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-accent);
  mix-blend-mode: color;
  opacity: 0.35;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.reference-card__media:hover::after { opacity: 0; }
.reference-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Touch-Geräte ohne Maus: Farblayer automatisch statt per Hover aufdecken */
@media (hover: none) {
  .reference-card__media::after {
    animation: reference-tint-pulse 7s ease-in-out infinite;
  }
  .reference-card:nth-child(3n+2) .reference-card__media::after { animation-delay: 1.4s; }
  .reference-card:nth-child(3n+3) .reference-card__media::after { animation-delay: 2.8s; }
}
@keyframes reference-tint-pulse {
  0%, 55% { opacity: 0.35; }
  75% { opacity: 0; }
  100% { opacity: 0.35; }
}
.reference-link {
  display: inline-block;
  margin-top: 20px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-line);
  padding-bottom: 2px;
  transition: border-color 0.24s ease-out, color 0.24s ease-out;
}
.reference-link:hover,
.reference-link:focus-visible { border-color: var(--color-text); }

/* Case Study (Referenz-Detailseite) */
.case-meta { color: var(--color-text-muted); margin: 0 0 8px; }
.case-tags {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 32px 0 40px;
  max-width: 640px;
}
.case-tags__group { font-size: 0.95rem; }
.case-tags__label {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-text);
}
.case-tags__list { color: var(--color-text-muted); }

.case-gallery {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin: 0 0 64px;
}
.case-gallery__frame {
  overflow: hidden;
  background: var(--color-bg-alt);
}
.case-gallery__frame img {
  display: block;
  width: 100%;
  height: auto;
}
.case-gallery__item { margin: 0; }
.case-gallery__caption {
  margin: 12px 0 0;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.case-lead { max-width: 640px; margin: 0 0 32px; }

.case-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--color-line);
}
.case-nav__back {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.case-nav__back:hover { color: var(--color-text); }
.case-nav__next {
  text-align: right;
}
.case-nav__next-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}
.case-nav__next-title {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 1.3rem;
  color: var(--color-text);
}
.case-nav__next:hover .case-nav__next-title { color: var(--color-text-muted); }

.case-gallery { position: relative; }
.case-tap {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  opacity: 0;
  background: rgba(255, 255, 255, 0.12);
  transition: opacity 0.2s var(--ease);
}
.case-tap--prev { left: 0; justify-content: flex-start; padding-left: 20px; }
.case-tap--next { right: 0; justify-content: flex-end; padding-right: 20px; }
.case-tap:hover,
.case-tap:focus-visible { opacity: 1; }
.case-tap:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: -4px;
}
.case-tap__icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* Dezenter Spotlight-Hover für Content-Bereiche */
.steps li::before,
.reference-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(169, 139, 141, 0.1), transparent 75%);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  pointer-events: none;
}
.steps li:hover,
.reference-card:hover { border-color: var(--color-accent-dark); }
.steps li:hover::before,
.reference-card:hover::before { opacity: 1; }
.reference-index {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  letter-spacing: 0.1em;
}

/* Kontakt */
.kontakt-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: start;
}
.kontakt-list { margin-top: 28px; }
.kontakt-list li {
  padding: 10px 0;
  border-top: 1px solid var(--color-line);
  color: var(--color-text-muted);
}
.kontakt-list li:last-child { border-bottom: 1px solid var(--color-line); }
.kontakt-list a:hover { color: var(--color-text); }

.kontakt-form { display: flex; flex-direction: column; gap: 22px; margin-top: 75px; }
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row textarea {
  border: none;
  border-bottom: 1px solid var(--color-line);
  padding: 10px 2px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: transparent;
  resize: vertical;
  transition: border-color 0.3s var(--ease);
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-text);
}
.form-row--checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}
.form-row--checkbox label { text-transform: none; letter-spacing: normal; font-weight: 400; font-size: 0.9rem; }
.form-row--checkbox a { text-decoration: underline; }
.kontakt-form .btn { align-self: flex-start; margin-top: 8px; }
.kontakt-form__status {
  order: -1;
  margin: 0 0 4px;
  padding: 14px 18px;
  border-left: 3px solid var(--color-accent);
  background: var(--color-bg-alt);
  color: var(--color-text);
  font-size: 0.92rem;
  line-height: 1.5;
}
.kontakt-form__status--fehler { border-left-color: var(--color-text-muted); }
.kontakt-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ================================
   Footer
================================ */
.site-footer {
  border-top: 1px solid var(--color-line);
  padding: 36px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand img { width: 26px; height: auto; }
.footer-brand p { margin: 0; font-size: 0.82rem; color: var(--color-text-muted); }
.footer-brand a:hover { color: var(--color-text); }

.footer-legal {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}
.footer-legal a:hover { color: var(--color-text); }
.footer-cookie-link {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.footer-cookie-link:hover { color: var(--color-text); }
.back-to-top {
  margin-left: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-line);
  background: transparent;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.back-to-top:hover, .back-to-top:focus-visible { background: var(--color-text); color: #fff; }

/* ================================
   Scroll Reveal
================================ */
.reveal {
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.reveal-init {
  opacity: 0;
  transform: translateY(32px);
}
.reveal.reveal-init.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.grid-3 .reveal:nth-child(2),
.reference-grid .reveal:nth-child(2) { transition-delay: 0.12s; }
.grid-3 .reveal:nth-child(3),
.reference-grid .reveal:nth-child(3) { transition-delay: 0.24s; }

/* Headline-Reveal wie im Hero (Claim): langsames Auffächern von innen mit Skalierung + Unschärfe */
.claim-effect.reveal-init {
  transform: scale(0.85);
  filter: blur(9px);
  transition: opacity 2.2s cubic-bezier(.165,.84,.44,1), transform 2.2s cubic-bezier(.165,.84,.44,1), filter 2.2s cubic-bezier(.165,.84,.44,1);
}
.claim-effect.reveal-init.is-visible {
  transform: scale(1);
  filter: blur(0);
}

/* Leistung: zartes, nacheinander folgendes Auftauchen */
.leistung-col.reveal {
  transition: opacity 1.1s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.leistung-grid .reveal:nth-child(2) { transition-delay: 0.3s; }

/* Porträt-Bild (About): gleiches Auf-Sliden wie die Leistung-Kacheln */
.about-media.reveal {
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}

/* About-Stats: zartes, nacheinander folgendes Auffächern */
.about-stat.reveal {
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), border-color 1.1s var(--ease);
}
.about-stat.reveal.reveal-init {
  transform: translateY(14px);
  border-top-color: transparent;
}
.about-stat.reveal.reveal-init.is-visible {
  transform: translateY(0);
  border-top-color: var(--color-accent-light);
}
.about-stats .reveal:nth-child(2) { transition-delay: 0.12s; }
.about-stats .reveal:nth-child(3) { transition-delay: 0.24s; }

/* Beratung: zartes, langsames Auffächern */
.steps li.reveal {
  transition: opacity 1.3s var(--ease), transform 1.3s var(--ease);
}
.steps li.reveal.reveal-init {
  transform: translateY(30px) rotate(-1.1deg);
  transform-origin: left top;
}
.steps li.reveal.reveal-init.is-visible {
  transform: translateY(0) rotate(0deg);
}
.steps li.reveal:nth-child(2) { transition-delay: 0.28s; }
.steps li.reveal:nth-child(3) { transition-delay: 0.56s; }

/* ================================
   Cookie Consent
================================ */
.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  padding: 20px;
  display: flex;
  justify-content: center;
}
.cookie-consent[hidden] { display: none; }

.cookie-consent__panel {
  width: 100%;
  max-width: 720px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.16);
  padding: 30px 32px;
}

.cookie-consent__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 12px;
}
.cookie-consent__text {
  font-size: 0.88rem;
  margin: 0 0 22px;
  color: var(--color-text-muted);
}
.cookie-consent__text a { text-decoration: underline; color: var(--color-text); }

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cookie-consent__actions .btn {
  flex: 1 1 auto;
  justify-content: center;
}
.cookie-consent__accept {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: #fff;
}
.cookie-consent__accept .btn-line { background: rgba(255, 255, 255, 0.6); }
.cookie-consent__accept:hover,
.cookie-consent__accept:focus-visible {
  background: var(--color-text);
  border-color: var(--color-text);
  color: #fff;
}
.cookie-consent__accept:hover .btn-line,
.cookie-consent__accept:focus-visible .btn-line { width: 46px; background: #fff; }

.cookie-consent__settings[hidden] { display: none; }

.cookie-consent__category {
  padding: 16px 0;
  border-top: 1px solid var(--color-line);
}
.cookie-consent__category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.cookie-consent__category p {
  font-size: 0.85rem;
  margin: 0;
  color: var(--color-text-muted);
}
.cookie-consent__category input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-text);
  flex: 0 0 auto;
}
.cookie-consent__settings .cookie-consent__actions { margin-top: 22px; }

/* ================================
   Responsive
================================ */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-media { max-width: 480px; margin: 0 auto; }
  .kontakt-grid { grid-template-columns: 1fr; gap: 56px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .beratung-intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .leistung-grid { grid-template-columns: 1fr; gap: 48px; }
  .beratung-teaser-grid { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 90px 0; }
}

@media (max-width: 900px) {
  .beratung-section { background-attachment: scroll; }
  .beratung-form-section {
    background-image: none;
    background-color: var(--color-bg-alt);
  }
  .beratung-hero {
    background-attachment: scroll;
    background-size: cover, cover;
    background-position: center, center;
  }
  .websitecheck-hero {
    background-attachment: scroll;
    background-size: cover, cover;
    background-position: center, center;
  }
  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--color-line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s var(--ease);
  }
  .main-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 32px 24px; }
  .main-nav li { border-bottom: 1px solid var(--color-line); }
  .main-nav a { display: block; padding: 16px 0; }
  .nav-toggle { display: flex; }

  .hero-text-block { padding-left: 7%; padding-right: 7%; padding-top: calc(var(--header-height) + 32px); }
}

@media (max-width: 680px) {
  .container { padding: 0 28px; }
  .beratung-hero { min-height: 240px; }
  .websitecheck-hero { min-height: 240px; }
  .grid-3 { grid-template-columns: 1fr; }
  .about-media { max-width: 100%; }
  .about-stats { grid-template-columns: repeat(3, 1fr); gap: 20px 12px; }
  .about-media::before { top: 16px; left: 16px; right: -16px; bottom: -16px; }
  .hero { min-height: 560px; }
  .hero-bg__image { background-position: 45% 90%; }
  .hero-bg__veil { background: linear-gradient(180deg, rgba(229,213,213,.45) 0%, rgba(255,255,255,.2) 55%); }
  .hero-controls { flex-wrap: wrap; bottom: 24px; }
  .hero-counter { order: 3; width: 100%; text-align: right; }
  .hero-text-block { padding-bottom: 130px; padding-top: calc(var(--header-height) + 48px); }
  .steps li { flex-direction: column; gap: 12px; }
  .websitecheck-process .leistung-cta-wrap,
  .websitecheck-process .websitecheck-disclaimer {
    padding-left: 0;
  }
  .beratung-teaser-price { padding: 32px 28px; }
  .leistung-col { padding: 32px 28px; }
  .beratung-form__row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-legal { width: 100%; justify-content: flex-start; flex-wrap: wrap; row-gap: 8px; }

  .cookie-consent { padding: 0; }
  .cookie-consent__panel { max-width: 100%; max-height: 100vh; border-left: none; border-right: none; border-bottom: none; }
  .cookie-consent__actions { flex-direction: column; }
  .cookie-consent__actions .btn { width: 100%; }
}
