/* ============================================================
   Webdesign Luca Alexa – eigene Website
   Hell & klar: Warmweiß, Tinte, Kobaltblau
   Bricolage Grotesque + Instrument Sans (lokal eingebunden)
   ============================================================ */

:root {
  --bg: #fcfbf8;
  --bg-soft: #f4f2ec;
  --card: #ffffff;
  --ink: #16181d;
  --ink-soft: #5a5e68;
  --blue: #2547e8;
  --blue-deep: #1c38bb;
  --blue-pale: #e8ecfd;
  --line: #e3e0d7;
  --dot: #e9e6dd;
  --header-bg: rgba(252, 251, 248, 0.9);
  --dot-neutral: #d8d4c9;
  --mark-bg-color: #dbe3fd;
  --mark-bg-strong: #c5d2fc;
  /* Akzent-Panel (Kontakt): bewusst invertiert zum Rest */
  --panel-bg: #16181d;
  --panel-text: #fcfbf8;
  --panel-sub: #b9bcc4;
  --panel-card-bg: rgba(252, 251, 248, 0.06);
  --panel-card-border: rgba(252, 251, 248, 0.18);
  --panel-label: #8f93a0;
  /* Telefon-Rahmen bleibt in beiden Modi dunkel */
  --phone-frame: #16181d;

  --font-display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", sans-serif;

  --pad: clamp(1.25rem, 5vw, 6rem);
  --radius: 14px;

  /* starke Easing-Kurven (statt der schwachen CSS-Defaults) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

html[data-theme="dark"] {
  --bg: #14151a;
  --bg-soft: #1b1d23;
  --card: #1e2027;
  --ink: #f0eee8;
  --ink-soft: #a2a6af;
  --blue: #6b85ff;
  --blue-deep: #8a9eff;
  --blue-pale: #232c44;
  --line: #2c2f37;
  --dot: #22242b;
  --header-bg: rgba(20, 21, 26, 0.85);
  --dot-neutral: #3a3d46;
  --mark-bg-color: #2a3358;
  --mark-bg-strong: #344070;
  --panel-bg: #1e2027;
  --panel-text: #f0eee8;
  --panel-sub: #a2a6af;
  --panel-card-bg: rgba(255, 255, 255, 0.05);
  --panel-card-border: rgba(255, 255, 255, 0.14);
  --panel-label: #8f93a0;
}

/* Kurzer Farb-Crossfade nur während des Umschaltens (per .theming-Klasse),
   nicht beim Laden oder Scrollen – maskiert den Wechsel ohne Dauer-Transition */
html.theming, html.theming * {
  transition: background-color 0.3s ease, color 0.3s ease,
              border-color 0.3s ease, box-shadow 0.3s ease !important;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* dezentes Punktraster als Hintergrund */
  background-image: radial-gradient(circle, var(--dot) 1px, transparent 1px);
  background-size: 28px 28px;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

a { color: inherit; }

.section { padding: clamp(4.5rem, 9vw, 8rem) var(--pad); }

.section-head { max-width: 38rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 0.8rem; }
.section-head p { color: var(--ink-soft); }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  position: relative;
  padding: 0.9rem 1.7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.97rem;
  text-decoration: none;
  border: 2px solid var(--blue);
  transition: transform 0.16s var(--ease-out), background 0.2s ease, color 0.2s ease;
}
/* Druck-Feedback: das Interface reagiert auf den Klick */
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--blue); color: #fff; }
/* Schatten liegt vorgerendert auf ::after – animiert wird nur dessen opacity (GPU) */
.btn-primary::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(37, 71, 232, 0.28);
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: -1;
}
.btn-ghost { color: var(--blue); background: transparent; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background: var(--blue-deep);
    border-color: var(--blue-deep);
    transform: translateY(-2px);
  }
  .btn-primary:hover::after { opacity: 1; }
  .btn-ghost:hover { background: var(--blue-pale); transform: translateY(-2px); }
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem var(--pad);
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.site-header.scrolled { border-color: var(--line); }
.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  white-space: nowrap;
}
.logo span {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}
.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav a:not(.btn) {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
.main-nav a:not(.btn):hover { color: var(--blue); }
.nav-cta { padding: 0.55rem 1.2rem; font-size: 0.9rem; }

/* Theme-Umschalter */
.theme-toggle {
  position: relative;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  margin-left: 0.2rem;
  transition: transform 0.16s var(--ease-out), border-color 0.2s ease, background 0.2s ease;
}
.theme-toggle:active { transform: scale(0.9); }
@media (hover: hover) and (pointer: fine) {
  .theme-toggle:hover { border-color: var(--blue); background: var(--blue-pale); }
}
.theme-toggle svg {
  position: absolute;
  width: 1.3rem; height: 1.3rem;
  fill: currentColor;
  transition: opacity 0.25s var(--ease-out), transform 0.35s var(--ease-out);
}
/* Sonne als saubere Linien-Grafik (Strahlen gleichmäßig) */
.theme-toggle .icon-sun {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
/* Hell: Mond zeigen (Klick → dunkel). Dunkel: Sonne zeigen (Klick → hell) */
.theme-toggle .icon-moon { opacity: 1; transform: rotate(0) scale(1); }
.theme-toggle .icon-sun  { opacity: 0; transform: rotate(-90deg) scale(0.4); }
html[data-theme="dark"] .theme-toggle .icon-moon { opacity: 0; transform: rotate(90deg) scale(0.4); }
html[data-theme="dark"] .theme-toggle .icon-sun  { opacity: 1; transform: rotate(0) scale(1); }

.nav-toggle { display: none; }

/* ===== Hero ===== */
.hero {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
  padding: clamp(4rem, 9vw, 7.5rem) var(--pad) clamp(3rem, 6vw, 5rem);
}
.hero-kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-pale);
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  margin-bottom: 1.6rem;
  animation: fadeUp 0.6s var(--ease-out) 0.05s both;
}
.hero h1 {
  font-size: clamp(2.5rem, 6.5vw, 4.6rem);
  font-weight: 800;
  margin-bottom: 1.4rem;
  animation: fadeUp 0.6s var(--ease-out) 0.18s both;
}
/* „Kunden bringen": Mauszeiger markiert den Text und klickt – Endlosschleife */
.marked {
  position: relative;
  white-space: nowrap;
}
.mark-bg {
  position: absolute;
  left: -0.08em; right: -0.08em;
  top: 0.04em; bottom: 0;
  background: var(--mark-bg-color);
  border-radius: 0.1em;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left center;
  animation: markBg 7s ease-in-out infinite;
}
.mark-cursor {
  position: absolute;
  left: -6%;
  bottom: -0.42em;
  width: 0.45em;
  height: 0.45em;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  animation: markCursor 7s ease-in-out infinite;
}
.mark-cursor svg { width: 100%; height: 100%; display: block; }
.mark-cursor svg path { fill: var(--ink); stroke: var(--bg); }
.mark-pulse {
  position: absolute;
  left: -55%; top: -55%;
  width: 210%; height: 210%;
  border: 3px solid var(--blue);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.3);
  animation: markPulse 7s ease-out infinite;
}
@keyframes markCursor {
  0%        { left: -6%; opacity: 0; transform: scale(1); }
  8%        { left: -3%; opacity: 1; }
  42%       { left: 97%; transform: scale(1); }
  48%       { transform: scale(0.78); } /* Klick */
  54%       { transform: scale(1); }
  84%       { left: 97%; opacity: 1; }
  92%, 100% { left: 97%; opacity: 0; }
}
@keyframes markBg {
  0%, 8%    { transform: scaleX(0); opacity: 1; background: var(--mark-bg-color); }
  42%       { transform: scaleX(1); background: var(--mark-bg-color); }
  50%       { background: var(--mark-bg-color); }
  56%       { background: var(--mark-bg-strong); } /* „Klick"-Feedback */
  84%       { transform: scaleX(1); opacity: 1; }
  92%, 100% { transform: scaleX(1); opacity: 0; }
}
@keyframes markPulse {
  0%, 46%   { opacity: 0; transform: scale(0.3); }
  51%       { opacity: 0.7; transform: scale(0.7); }
  62%       { opacity: 0; transform: scale(1.7); }
  100%      { opacity: 0; transform: scale(0.3); }
}
.hero-sub {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 36rem;
  margin: 0 auto 2.2rem;
  animation: fadeUp 0.6s var(--ease-out) 0.3s both;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  margin-bottom: 2.6rem;
  animation: fadeUp 0.6s var(--ease-out) 0.42s both;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  justify-content: center;
  list-style: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  animation: fadeUp 0.6s var(--ease-out) 0.54s both;
}
.hero-trust li::before { content: "✓ "; color: var(--blue); font-weight: 800; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

/* ===== Projekte ===== */
.project {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(2rem, 4vw, 3.5rem) 0;
}
.project + .project { border-top: 1px solid var(--line); }
.project:nth-child(odd) .project-media { order: 2; }

.project-media { position: relative; padding-bottom: 2.5rem; }

.browser {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(22, 24, 29, 0.12);
}
.browser-bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.browser-bar i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--dot-neutral);
}
.browser-bar i:first-child { background: var(--blue); opacity: 0.55; }

.phone {
  position: absolute;
  right: -0.6rem;
  bottom: 0;
  width: clamp(110px, 22%, 150px);
  aspect-ratio: 9 / 19;
  background: var(--phone-frame);
  border-radius: 22px;
  padding: 7px;
  box-shadow: 0 18px 40px rgba(22, 24, 29, 0.3);
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: var(--card);
  /* macht 100cqh in den Keyframes zur tatsächlichen Screen-Höhe */
  container-type: size;
}
.phone-screen img { width: 100%; }
/* Animation startet erst, wenn das Mockup sichtbar wird (JS setzt die Klasse) –
   so beginnt der Scroll für den Betrachter immer oben und läuft zuerst abwärts */
.phone-screen img.scrolling {
  animation: phoneScroll 16s ease-in-out infinite alternate;
}
/* Endposition: Bildunterkante = Screen-Unterkante, unabhängig von der Bildhöhe */
@keyframes phoneScroll {
  0%, 8% { transform: translateY(0); }
  92%, 100% { transform: translateY(calc(-100% + 100cqh)); }
}

.project-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  margin-bottom: 1rem;
}
.project-text h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 0.7rem; }
.project-text > p { color: var(--ink-soft); margin-bottom: 1.1rem; }
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin-bottom: 1.4rem;
}
.project-tags li {
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--blue-pale);
  color: var(--blue-deep);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
}
.project-link {
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  border-bottom: 2px solid var(--blue-pale);
  transition: border-color 0.2s ease;
}
.project-link:hover { border-color: var(--blue); }

/* ===== Leistungen ===== */
.services { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  margin-bottom: 2.5rem;
}
.service-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  transition: transform 0.25s var(--ease-out);
}
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  box-shadow: 0 16px 36px rgba(22, 24, 29, 0.1);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: -1;
}
@media (hover: hover) and (pointer: fine) {
  .service-card:hover { transform: translateY(-4px); }
  .service-card:hover::after { opacity: 1; }
}
.service-card h3 { font-size: 1.5rem; }
.service-for {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0.3rem 0 1rem;
}
.service-card > p:not(.service-for) { color: var(--ink-soft); margin-bottom: 1.1rem; }
.service-card ul { list-style: none; display: grid; gap: 0.5rem; }
.service-card li { padding-left: 1.6rem; position: relative; font-weight: 500; }
.service-card li::before { content: "→"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }

.included h3 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-bottom: 1.2rem;
}
.included-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.7rem 2rem;
  list-style: none;
}
.included-grid li { padding-left: 1.7rem; position: relative; font-weight: 500; }
.included-grid li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 800; }

/* ===== Ablauf ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.4rem;
  list-style: none;
  counter-reset: step;
}
.steps li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  position: relative;
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 2.3rem; height: 2.3rem;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
.steps h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.steps p { font-size: 0.94rem; color: var(--ink-soft); }

/* ===== Preise ===== */
.pricing { background: var(--card); border-top: 1px solid var(--line); }
.price-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  max-width: 52rem;
}
.price-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  background: var(--bg);
}
.price-card.featured { border: 2px solid var(--blue); background: var(--card); }
.price-card h3 { font-size: 1.3rem; margin-bottom: 0.3rem; }
.price {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 1.2rem;
}
.price-card ul { list-style: none; display: grid; gap: 0.5rem; }
.price-card li { padding-left: 1.6rem; position: relative; font-size: 0.95rem; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 800; }
.pricing-note {
  margin-top: 1.8rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  max-width: 44rem;
}

/* ===== Über mich ===== */
.about {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  max-width: 68rem;
}
.about-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(22, 24, 29, 0.14);
  background: var(--bg-soft);
  rotate: -1.5deg;
}
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-text h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 1rem; }
.about-text p { color: var(--ink-soft); margin-bottom: 1rem; max-width: 32rem; }
.about-points { list-style: none; display: grid; gap: 0.6rem; margin-top: 1.4rem; }
.about-points li { padding-left: 1.7rem; position: relative; font-weight: 600; }
.about-points li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 800; }

/* ===== Kontakt ===== */
.contact-panel {
  background: var(--panel-bg);
  color: var(--panel-text);
  border-radius: calc(var(--radius) * 1.6);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
  max-width: 56rem;
  margin: 0 auto;
}
.contact-panel h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 0.8rem; }
.contact-panel > p { color: var(--panel-sub); max-width: 30rem; margin: 0 auto 2.2rem; }
.contact-ways {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.contact-card {
  display: grid;
  gap: 0.2rem;
  min-width: 230px;
  background: var(--panel-card-bg);
  border: 1px solid var(--panel-card-border);
  border-radius: var(--radius);
  padding: 1.2rem 1.6rem;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.16s var(--ease-out);
}
.contact-card:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .contact-card:hover { background: rgba(37, 71, 232, 0.35); transform: translateY(-3px); }
}
/* WhatsApp-Button im Markengrün */
.contact-card.whatsapp {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-align: left;
  background: #25d366;
  border-color: #25d366;
}
.contact-card.whatsapp .wa-icon { width: 2.05rem; height: 2.05rem; flex-shrink: 0; fill: #fff; }
.contact-card.whatsapp .wa-text { display: grid; gap: 0.1rem; }
.contact-card.whatsapp .contact-label { color: rgba(255, 255, 255, 0.85); }
.contact-card.whatsapp .contact-value { color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .contact-card.whatsapp:hover { background: #20bd5a; transform: translateY(-3px); }
}
.contact-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--panel-label);
}
.contact-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  min-width: 0;
  overflow-wrap: anywhere;
}
/* lange E-Mail-Adresse: etwas kleiner, damit sie auch auf schmalen Handys in die Karte passt */
.contact-value.email { font-size: clamp(0.95rem, 4vw, 1.15rem); }

/* ===== Footer ===== */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1.8rem var(--pad);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.site-footer nav { display: flex; gap: 1.4rem; }
.site-footer a { text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: var(--blue); }

/* ===== Schwebender WhatsApp-Button ===== */
.wa-float {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 45;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  opacity: 0;
  transform: scale(0.6);
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), background 0.2s ease;
}
.wa-float.show { opacity: 1; transform: scale(1); pointer-events: auto; }
.wa-float svg { width: 1.9rem; height: 1.9rem; fill: #fff; }
.wa-float.show:active { transform: scale(0.92); }
@media (hover: hover) and (pointer: fine) {
  .wa-float.show:hover { background: #20bd5a; transform: scale(1.06); }
}

/* ===== Scroll-Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-kicker, .hero h1, .hero-sub, .hero-actions, .hero-trust { animation: none; }
  .phone-screen img { animation: none; }
  .mark-cursor, .mark-pulse { display: none; }
  .mark-bg { animation: none; transform: scaleX(1); }
  .wa-float { transform: none; transition: opacity 0.2s ease; }
  .wa-float.show { transform: none; }
  html { scroll-behavior: auto; }
}

/* ===== Responsive ===== */
@media (max-width: 920px) {
  .project { grid-template-columns: 1fr; }
  .project:nth-child(odd) .project-media { order: 0; }
  .service-cards, .price-cards { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about-photo { max-width: 20rem; }
}

@media (max-width: 760px) {
  /* backdrop-filter macht den Header zum Containing Block für das
     fixed positionierte Menü – auf Mobil deshalb solide Fläche statt Blur */
  .site-header {
    backdrop-filter: none;
    background: var(--bg);
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 60;
  }
  .nav-toggle span {
    width: 26px; height: 2.5px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .main-nav {
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    font-size: 1.25rem;
    transform: translateY(-100%);
    /* Schließen: schneller als Öffnen – beim Schließen will man weg */
    transition: transform 0.3s var(--ease-out);
    z-index: 55;
  }
  .main-nav.open {
    transform: translateY(0);
    transition: transform 0.4s var(--ease-drawer);
  }

  .phone { right: 0.4rem; bottom: -0.5rem; }
}
