/* =========================================================
   Bestattungshaus Krüger — Relaunch 2026
   Warm, würdevoll, familiär
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

/* ---------------------------------------------------------
   Design Tokens
   --------------------------------------------------------- */
:root {
  /* Farben — warme Erdtöne */
  --cream:        #F5F0E8;
  --cream-deep:   #EDE6D6;
  --sand:         #D4C4A8;
  --sand-light:   #E8DFC8;
  --warm-brown:   #8B6F4E;
  --bark:         #6B5240;
  --slate:        #3D3530;
  --slate-soft:   #5C4F47;
  --sage:         #7A8C72;
  --sage-dark:    #5C6B55;
  --sage-light:   #A8B8A0;
  --gold:         #B8964A;
  --gold-light:   #D4B060;

  /* Typografie */
  --font-serif:   'Cormorant Garamond', Georgia, serif;
  --font-sans:    'Inter', system-ui, sans-serif;

  /* Abstände */
  --gap-xs:    0.5rem;
  --gap-sm:    1rem;
  --gap-md:    2rem;
  --gap-lg:    4rem;
  --gap-xl:    7rem;

  /* Übergänge */
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
  --duration:  0.35s;

  /* Schatten */
  --shadow-sm: 0 2px 12px rgba(61,53,48,0.08);
  --shadow-md: 0 8px 32px rgba(61,53,48,0.12);
  --shadow-lg: 0 20px 60px rgba(61,53,48,0.18);

  --radius:    2px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--slate);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------------------------------------------------------
   Typografie-System
   --------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
  color: var(--slate);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 400; }
h4 { font-size: 1.2rem; font-weight: 600; }

p {
  font-size: 1rem;
  color: var(--slate-soft);
  line-height: 1.85;
}

.lead {
  font-size: 1.125rem;
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  color: var(--bark);
  line-height: 1.8;
}

/* ---------------------------------------------------------
   Utility
   --------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

.section {
  padding: var(--gap-xl) 0;
}

.section--warm {
  background: var(--cream-deep);
}

.section--dark {
  background: var(--slate);
  color: var(--cream);
}

.section--sage {
  background: #EEF1EB;
}

/* Dekorative Trennlinie */
.rule {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.2rem 0;
}

.rule::before,
.rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--sand);
}

.rule--center { text-align: center; }

/* Schmale Linie ohne Text */
.divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 1.5rem 0;
}

.divider--center {
  margin: 1.5rem auto;
}

/* Kein Grid-Bild */
.tag-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: 1rem;
}

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: all var(--duration) var(--ease);
  cursor: pointer;
}

.btn--primary {
  background: var(--slate);
  color: var(--cream);
  border-color: var(--slate);
}
.btn--primary:hover {
  background: var(--bark);
  border-color: var(--bark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--cream);
  border-color: rgba(245,240,232,0.55);
}
.btn--outline:hover {
  background: rgba(245,240,232,0.12);
  border-color: var(--cream);
  transform: translateY(-1px);
}

.btn--sage {
  background: transparent;
  color: var(--slate);
  border-color: var(--sage-dark);
}
.btn--sage:hover {
  background: var(--sage-dark);
  color: var(--cream);
  transform: translateY(-1px);
}

/* ---------------------------------------------------------
   Top Bar
   --------------------------------------------------------- */
.topbar {
  background: var(--slate);
  color: var(--sand-light);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 0.55rem 1rem;
}

.topbar a {
  color: var(--gold-light);
  font-weight: 500;
  transition: color var(--duration);
}
.topbar a:hover { color: var(--cream); }

/* ---------------------------------------------------------
   Header / Navigation
   --------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245,240,232,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sand);
  transition: box-shadow var(--duration);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  max-width: 1180px;
  margin: 0 auto;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-mark::after {
  content: 'K';
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--slate);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.logo-sub {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warm-brown);
  font-weight: 400;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav a {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-soft);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--duration);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--duration) var(--ease);
}

.nav a:hover,
.nav a.active {
  color: var(--slate);
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.nav-cta {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate) !important;
  border: 1px solid var(--warm-brown);
  padding: 0.5rem 1.2rem;
  transition: all var(--duration);
}
.nav-cta:hover {
  background: var(--slate) !important;
  color: var(--cream) !important;
  border-color: var(--slate);
}
.nav-cta::after { display: none !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--slate);
  transition: all var(--duration) var(--ease);
}

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
.hero {
  position: relative;
  height: 92vh;
  min-height: 580px;
  max-height: 900px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero.jpg');
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.04);
  transition: transform 8s ease-out;
}

.hero-bg.loaded { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(61,53,48,0.55) 0%,
    rgba(61,53,48,0.35) 50%,
    rgba(61,53,48,0.6) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(1.5rem, 8vw, 10rem);
  max-width: 900px;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.4rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.3s var(--ease) forwards;
}

.hero h1 {
  color: var(--cream);
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  font-weight: 500;
  line-height: 1.15;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
  opacity: 0;
  animation: fadeUp 0.9s 0.55s var(--ease) forwards;
}

.hero-sub {
  margin-top: 1.4rem;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  color: rgba(245,240,232,0.88);
  max-width: 520px;
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp 0.9s 0.75s var(--ease) forwards;
}

.hero-actions {
  margin-top: 2.8rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s 0.95s var(--ease) forwards;
}

/* Scroll-Indikator */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeIn 1s 1.5s ease forwards;
}

.hero-scroll span {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.6);
}

.hero-scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(245,240,232,0.5), transparent);
  animation: scrollPulse 2s 1.5s ease-in-out infinite;
}

/* ---------------------------------------------------------
   Willkommen / Welcome
   --------------------------------------------------------- */
.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.welcome-image {
  position: relative;
}

.welcome-image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center;
}

.welcome-image-frame {
  position: absolute;
  top: -16px;
  left: -16px;
  right: 16px;
  bottom: 16px;
  border: 1px solid var(--sand);
  z-index: -1;
}

.welcome-text .tag-label { color: var(--warm-brown); }

.welcome-text h2 {
  margin-bottom: 0.5rem;
}

.welcome-text .lead {
  margin: 1.2rem 0 1.6rem;
}

.welcome-text p + p { margin-top: 1rem; }

.welcome-signature {
  margin-top: 2rem;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--warm-brown);
}

.welcome-signature strong {
  display: block;
  font-style: normal;
  font-weight: 600;
  font-size: 0.85rem;
  font-family: var(--font-sans);
  letter-spacing: 0.06em;
  color: var(--slate-soft);
  margin-top: 0.2rem;
}

/* ---------------------------------------------------------
   Leistungen — Akkordeon
   --------------------------------------------------------- */
.akkordeon {
  margin-top: 3rem;
  border-top: 1px solid var(--sand);
}

.akkordeon-item {
  border-bottom: 1px solid var(--sand);
}

.akkordeon-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: none;
  border: none;
  padding: 1.6rem 0;
  cursor: pointer;
  text-align: left;
  transition: background var(--duration);
}

.akkordeon-trigger:hover .ak-title {
  color: var(--bark);
}

.ak-num {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.06em;
  flex-shrink: 0;
  width: 2rem;
  transition: color var(--duration);
}

.ak-title {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 500;
  color: var(--slate);
  flex: 1;
  transition: color var(--duration);
}

/* Plus/Minus Icon — rein aus CSS, kein Bild */
.ak-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  position: relative;
  margin-left: auto;
}

.ak-icon::before,
.ak-icon::after {
  content: '';
  position: absolute;
  background: var(--warm-brown);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}

.ak-icon::before {
  /* horizontale Linie */
  width: 100%;
  height: 1px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.ak-icon::after {
  /* vertikale Linie → dreht sich zu 0 wenn offen */
  width: 1px;
  height: 100%;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

/* Offen: vertikale Linie dreht weg */
.akkordeon-trigger[aria-expanded="true"] .ak-icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.akkordeon-trigger[aria-expanded="true"] .ak-num {
  color: var(--bark);
}

.akkordeon-trigger[aria-expanded="true"] .ak-title {
  color: var(--bark);
}

/* Panel — smooth via grid */
.akkordeon-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}

.akkordeon-panel.open {
  grid-template-rows: 1fr;
}

.akkordeon-body {
  overflow: hidden;
}

.akkordeon-body p {
  padding: 0 0 1.8rem 3.5rem;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--slate-soft);
  max-width: 680px;
}

/* Goldene Akzentlinie links beim offenen Item */
.akkordeon-item:has(.akkordeon-trigger[aria-expanded="true"]) {
  border-bottom-color: var(--gold);
}


/* ---------------------------------------------------------
   Zitat / Philosophie
   --------------------------------------------------------- */
.quote-section {
  position: relative;
  overflow: hidden;
  padding: var(--gap-xl) 0;
}

.quote-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/meadow.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.quote-overlay {
  position: absolute;
  inset: 0;
  background: rgba(61,53,48,0.72);
}

.quote-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

.quote-mark {
  font-family: var(--font-serif);
  font-size: 6rem;
  color: var(--gold);
  line-height: 0.5;
  display: block;
  margin-bottom: 1.5rem;
  opacity: 0.7;
}

.quote-text {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 400;
  font-style: italic;
  color: var(--cream);
  line-height: 1.6;
}

.quote-author {
  margin-top: 2rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* ---------------------------------------------------------
   Schritte im Trauerfall
   --------------------------------------------------------- */
.schritte-intro {
  max-width: 600px;
  margin-bottom: 4rem;
}

.schritte-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  position: relative;
}

.schritt {
  padding: 2.4rem 2rem;
  border-left: 1px solid var(--sand);
  position: relative;
  transition: border-color var(--duration);
}

.schritt:first-child { border-left: none; padding-left: 0; }

.schritt:hover { border-color: var(--gold); }

.schritt-num {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 1rem;
}

.schritt h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.7rem;
  color: var(--slate);
}

.schritt p {
  font-size: 0.9rem;
  line-height: 1.75;
}

/* ---------------------------------------------------------
   Über uns
   --------------------------------------------------------- */
.ueber-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.ueber-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.ueber-image-caption {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warm-brown);
  margin-top: 1rem;
  text-align: center;
}

.ueber-text p + p { margin-top: 1rem; }

.facts-row {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--sand);
}

.fact {
  flex: 1;
}

.fact-num {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--slate);
  display: block;
  line-height: 1;
}

.fact-label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warm-brown);
  margin-top: 0.3rem;
}

/* ---------------------------------------------------------
   Kontakt
   --------------------------------------------------------- */
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
}

.kontakt-info h2 { margin-bottom: 0.5rem; }

.kontakt-info .lead { margin-bottom: 2rem; }

.kontakt-detail {
  margin-top: 2rem;
}

.kontakt-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 1.4rem;
}

.kontakt-item-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warm-brown);
}

.kontakt-item-value {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--slate);
}

.kontakt-item-value a {
  color: var(--slate);
  transition: color var(--duration);
}
.kontakt-item-value a:hover { color: var(--gold); }

.notfall-box {
  background: var(--slate);
  color: var(--cream);
  padding: 1.6rem 2rem;
  margin-top: 2rem;
}

.notfall-box p {
  color: var(--sand-light);
  font-size: 0.88rem;
}

.notfall-box a {
  color: var(--gold-light);
  font-weight: 500;
  font-size: 1.2rem;
  font-family: var(--font-serif);
}

/* Formular-Karte */
.form-card {
  background: var(--cream);
  border: 1px solid var(--sand);
  padding: 2.8rem 2.4rem;
  box-shadow: var(--shadow-sm);
}

/* Kontakt Formular */
.kontakt-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-soft);
}

.form-input,
.form-textarea {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--slate);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--sand);
  padding: 0.7rem 0;
  outline: none;
  transition: border-color var(--duration);
  width: 100%;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--warm-brown);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--warm-brown);
  margin-top: 0.5rem;
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.footer {
  background: var(--slate);
  color: var(--sand);
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer-brand .logo-text { color: var(--cream); font-size: 1rem; }
.footer-brand .logo-sub { color: var(--warm-brown); }
.footer-brand .logo-mark::after { color: var(--gold); }

.footer-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--sand);
  margin-top: 0.8rem;
  max-width: 220px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--sand);
  letter-spacing: 0.04em;
  transition: color var(--duration);
}
.footer-links a:hover { color: var(--cream); }

.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--slate-soft);
}

.footer-legal a {
  color: var(--slate-soft);
  transition: color var(--duration);
}
.footer-legal a:hover { color: var(--sand); }

/* ---------------------------------------------------------
   Animationen
   --------------------------------------------------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.5; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.15); }
}

/* Intersection Observer — sanftes Einblenden */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 900px) {
  .welcome-grid,
  .ueber-grid,
  .kontakt-grid {
    grid-template-columns: 1fr;
  }

  .welcome-image,
  .ueber-image {
    order: -1;
  }

  .welcome-image img,
  .ueber-image img {
    height: 340px;
  }

  .welcome-image-frame { display: none; }

  .hero-content { padding: 0 2rem; }
  .hero h1 { font-size: 2.4rem; }

  .schritte-grid { grid-template-columns: 1fr 1fr; }
  .schritt { border-left: none; border-top: 1px solid var(--sand); padding-left: 0; }
  .schritt:first-child { border-top: none; }

  .leistungen-tiles { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root {
    --gap-xl: 4.5rem;
    --gap-lg: 2.5rem;
  }

  .nav { display: none; flex-direction: column; }
  .nav.open {
    display: flex;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--cream);
    padding: 2rem;
    border-bottom: 1px solid var(--sand);
    box-shadow: var(--shadow-md);
    z-index: 99;
    gap: 1.5rem;
  }
  .nav.open a { font-size: 1rem; }
  .nav-toggle { display: flex; }

  .hero { height: 85vh; }
  .hero-actions { flex-direction: column; }
  .btn { text-align: center; }

  .leistungen-tiles { grid-template-columns: 1fr; }
  .leistung-tile { height: 320px; }
  /* Auf Mobile Text dauerhaft sichtbar */
  .leistung-tile-content p {
    max-height: 120px;
    opacity: 1;
  }
  .leistung-tile-content h3 { margin-bottom: 0.6rem; }
  .leistung-tile-content h3::after { width: 36px; }
  .schritte-grid { grid-template-columns: 1fr; }

  .facts-row { flex-wrap: wrap; gap: 1.5rem; }

  .footer-inner { flex-direction: column; }
  .footer-legal { flex-direction: column; text-align: center; }

  .quote-bg { background-attachment: scroll; }
}
