/* ==========================================================================
   webdesign-koral.de — persönliche Geschäfts-Website von Koral Calisir
   Charakter: ruhig, klar, modern, vertrauenswürdig. Einzelperson, kein
   Agentur-Glanz. Bodensee als stille Referenz (Horizontlinien-Motiv).
   Farbwelt: Nachtblau #15304B · Papierweiß #F8F5EF · Bernstein #C88A2E ·
             Blaugrau #5E7287 · Dunkel #1C2530
   Schriften: Space Grotesk (Display) + Source Sans 3 (Text), lokal gehostet
   ========================================================================== */

/* ---------- Schriften (lokal, DSGVO-konform) ---------- */
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

/* ---------- Designsystem ---------- */
:root {
  --night: #15304b;        /* tiefes Nachtblau — Headlines, dunkle Flächen */
  --night-soft: #1d3d5e;   /* hellere Fläche auf Nachtblau */
  --paper: #f8f5ef;        /* warmes Papierweiß — Seitenhintergrund */
  --card: #ffffff;         /* Karten auf Papiergrund */
  --amber: #c88a2e;        /* gedämpftes Bernstein — Akzent, sparsam */
  --amber-ink: #8a5a14;    /* dunkles Bernstein — Linkfarbe (AA auf Papier) */
  --slate: #54687d;        /* Blaugrau — Sekundärtext */
  --ink: #1c2530;          /* Fließtext */
  --line: #e3ddd2;         /* feine Linien auf Papier */
  --line-night: rgba(248, 245, 239, 0.18);

  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;

  --container: 1100px;
  --pad: clamp(1.25rem, 4vw, 2.25rem);
  --radius: 10px;

  --ease: cubic-bezier(0.25, 0.9, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem; /* Anker landen nicht unter dem sticky Header */
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--amber-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

::selection { background: var(--night); color: var(--paper); }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- Typografie ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--night);
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 4.8vw, 3.2rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.3rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.75rem;
}

.lead {
  font-size: clamp(1.1rem, 1.8vw, 1.25rem);
  color: var(--ink);
  max-width: 38em;
}

.muted { color: var(--slate); }

/* Horizontlinie — wiederkehrendes See-Motiv unter Abschnittsköpfen */
.horizon {
  width: 88px;
  height: 14px;
  color: var(--amber);
  margin-top: 0.9rem;
}
.horizon--center { margin-inline: auto; }

/* ---------- Header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 245, 239, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.25rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  color: var(--night);
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand .brand__dot { color: var(--amber); }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.5rem);
}
.nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--night);
}
.nav a:hover { color: var(--amber-ink); text-decoration: none; }

.nav__cta {
  background: var(--night);
  color: var(--paper) !important;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
}
.nav__cta:hover { background: var(--night-soft); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--night);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.9rem;
}

.hero__local {
  margin-top: 1.4rem;
  font-size: 0.95rem;
  color: var(--slate);
}

/* Porträtfoto */
.portrait {
  justify-self: center;
  width: clamp(220px, 28vw, 320px);
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  object-position: top;
  border-radius: 18px;
  border-bottom: 4px solid var(--amber);
  display: block;
  box-shadow: 0 18px 44px rgba(21, 48, 75, 0.22);
}

/* dezente Horizontlinien im Hero-Hintergrund */
.hero__lines {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 90px;
  color: var(--night);
  opacity: 0.08;
  pointer-events: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  border: 1.5px solid var(--night);
  color: var(--night);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:hover { background: var(--night); color: var(--paper); text-decoration: none; }

.btn--solid {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--night);
  font-weight: 700;
}
.btn--solid:hover { background: var(--night); border-color: var(--night); color: var(--paper); }

.btn--light {
  border-color: var(--paper);
  color: var(--paper);
}
.btn--light:hover { background: var(--paper); color: var(--night); }

/* ---------- Hinweis-Band für Demo-Empfänger ---------- */
.notice-band {
  background: var(--night);
  color: var(--paper);
  padding-block: 1.4rem;
}
.notice-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}
.notice-band p {
  font-size: 1.05rem;
  margin: 0;
}
.notice-band strong { font-weight: 600; }
.notice-band a {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--amber);
  white-space: nowrap;
}

/* ---------- Sektionen ---------- */
.section { padding-block: clamp(3.25rem, 7vw, 5.5rem); }

.section--line { border-top: 1px solid var(--line); }

.section__head { max-width: 44em; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head p { margin-top: 0.9rem; color: var(--ink); }

.section--night {
  background: var(--night);
  color: var(--paper);
}
.section--night h2, .section--night h3 { color: var(--paper); }
.section--night .eyebrow { color: #9fb3c6; }
.section--night .section__head p { color: rgba(248, 245, 239, 0.85); }

/* ---------- Ablauf (Schritte) ---------- */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  list-style: none;
  padding-left: 0;
}
.step {
  counter-increment: step;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--amber);
  margin-bottom: 0.6rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.step p { font-size: 0.95rem; color: var(--slate); line-height: 1.55; }

.assurance {
  margin-top: 1.75rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  max-width: 56em;
}
.assurance strong { color: var(--night); }

/* ---------- Über mich ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.about__text p + p { margin-top: 1rem; }

.facts {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  list-style: none;
}
.facts li {
  padding-block: 0.7rem;
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
}
.facts li + li { border-top: 1px solid var(--line); }
.facts li::before {
  content: "";
  flex: none;
  width: 14px;
  height: 2px;
  background: var(--amber);
  transform: translateY(-0.2em);
}

/* ---------- Leistungen ---------- */
.quality {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.quality__item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.3rem;
}
.quality__item svg {
  width: 26px;
  height: 26px;
  color: var(--amber);
  margin-bottom: 0.8rem;
}
.quality__item h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.quality__item p { font-size: 0.95rem; color: var(--slate); line-height: 1.55; }

/* ---------- Preise ---------- */
.pricing {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}
.price-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.9rem;
}
.price-card--main { border-top: 4px solid var(--amber); }
.price-card .price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.7rem);
  color: var(--night);
  line-height: 1.1;
  margin-block: 0.5rem 0.25rem;
}
.price-card .price small {
  display: block;
  font-size: 0.42em;
  font-weight: 500;
  color: var(--slate);
  margin-top: 0.35rem;
}
.price-card ul {
  list-style: none;
  margin-top: 1.1rem;
}
.price-card li {
  padding-block: 0.45rem;
  padding-left: 1.5rem;
  position: relative;
}
.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 14px;
  height: 2px;
  background: var(--amber);
}
.price-card__note { margin-top: 1rem; font-size: 0.95rem; color: var(--slate); }

/* ---------- Automatisierung (dunkle Sektion) ---------- */
.auto-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.auto-card {
  background: var(--night-soft);
  border: 1px solid var(--line-night);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
}
.auto-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; color: var(--paper); }
.auto-card p { font-size: 0.95rem; color: rgba(248, 245, 239, 0.8); line-height: 1.6; }

/* ---------- FAQ ---------- */
.faq { max-width: 50em; }
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 0.8rem;
}
.faq summary {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--night);
  padding: 1rem 3rem 1rem 1.4rem;
  cursor: pointer;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.3rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--amber);
  transition: transform 0.2s var(--ease);
}
.faq details[open] summary::after { content: "+"; transform: translateY(-50%) rotate(45deg); }
.faq details p {
  padding: 0 1.4rem 1.2rem;
  color: var(--ink);
}
.faq details p + p { padding-top: 0; margin-top: -0.4rem; }

/* ---------- Kontakt ---------- */
.contact { text-align: center; }
.contact .mail {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 3vw, 1.6rem);
  color: var(--night);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.85rem 2rem;
  margin-block: 1.4rem 1rem;
  overflow-wrap: anywhere;
}
.contact .mail:hover { background: var(--night); color: var(--paper); text-decoration: none; }
.contact__hint { color: var(--ink); max-width: 34em; margin-inline: auto; }
.contact__place { margin-top: 1.2rem; color: var(--slate); font-size: 0.95rem; }

/* ---------- Footer ---------- */
.site-foot {
  background: var(--night);
  color: rgba(248, 245, 239, 0.85);
  padding-block: 2.25rem;
}
.site-foot a { color: var(--paper); font-weight: 600; }
.site-foot .foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}
.site-foot .brand { color: var(--paper); font-size: 1.05rem; }
.foot-meta { font-size: 0.95rem; }

/* ---------- Rechtsseiten ---------- */
.legal { max-width: 46em; }
.legal h1 { margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.25rem; margin: 2rem 0 0.6rem; }
.legal p + p { margin-top: 0.8rem; }
.legal address { font-style: normal; }

/* ---------- Reveal-Animationen ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
  }
  .reveal.is-visible { opacity: 1; transform: none; }
  .reveal[data-delay="1"] { transition-delay: 0.1s; }
  .reveal[data-delay="2"] { transition-delay: 0.2s; }
  .reveal[data-delay="3"] { transition-delay: 0.3s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .quality { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem var(--pad) 1.25rem;
    gap: 0;
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: 0.8rem 0.25rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }
  .nav__cta {
    margin-top: 0.9rem;
    text-align: center;
    border-bottom: none;
    border-radius: 999px;
  }

  .hero__grid { grid-template-columns: 1fr; }
  .portrait { order: -1; }

  .about__grid { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .auto-cards { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .steps { grid-template-columns: 1fr; }
  .quality { grid-template-columns: 1fr; }
  .notice-band__inner { flex-direction: column; align-items: flex-start; }
}
