/* Beratung Norhausen – Stylesheet
   Ruhig, gut lesbar, ohne externe Ressourcen (keine Webfonts, kein Tracking). */

:root {
  /* Lila-Pastell + Saphirgrün */
  --bg: #f7f4fb;
  --surface: #ece6f6;
  --surface-2: #ffffff;
  --text: #2a2638;
  --muted: #5d586e;
  --primary: #0b6a6e;       /* Saphirgrün */
  --primary-ink: #ffffff;
  --accent: #7b64b5;        /* Lila (Text, Akzente) */
  --lilac: #b8a6e3;         /* Lila-Pastell (Logo, Flächen) */
  --border: #ddd5ea;
  --focus: #7b64b5;
  --radius: 14px;
  --maxw: 72rem;
  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-head: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17151f;
    --surface: #211e2c;
    --surface-2: #282437;
    --text: #ece8f4;
    --muted: #b1abc3;
    --primary: #6cc9c4;
    --primary-ink: #0a1f1f;
    --accent: #c4b5ef;
    --lilac: #9d8bd0;
    --border: #3a344d;
    --focus: #c4b5ef;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
}

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

a { color: var(--primary); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p, ul, ol { margin: 0 0 1em; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--primary); color: var(--primary-ink);
  padding: 0.6rem 1rem; border-radius: 8px; z-index: 100;
}
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }

.prose { max-width: 42rem; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky; top: 0; z-index: 50;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4.5rem;
}
.brand {
  display: flex; align-items: center; gap: 0.65rem;
  text-decoration: none; color: var(--text);
}
.brand-mark { position: relative; width: 2.6rem; height: 2.6rem; flex: none; }
.brand-mark svg { position: absolute; left: 0; bottom: 0; width: 2.2rem; height: 2.2rem; }
.swallow {
  display: block; background: var(--text);
  -webkit-mask: url("../img/schwalbe.png") center / contain no-repeat;
          mask: url("../img/schwalbe.png") center / contain no-repeat;
  aspect-ratio: 474 / 685;
}
.brand-mark .swallow { position: absolute; right: -0.35rem; top: -0.3rem; width: 1.35rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
.brand-sub { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.02em; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); font: inherit; font-size: 0.95rem;
  padding: 0.45rem 0.8rem; cursor: pointer;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; flex-wrap: wrap; }
.site-nav a {
  display: block; padding: 0.5rem 0.8rem; border-radius: 10px;
  text-decoration: none; color: var(--text); font-size: 0.98rem;
}
.site-nav a:hover { background: var(--surface); }
.site-nav a[aria-current="page"] { background: var(--surface); color: var(--primary); font-weight: 600; }

@media (max-width: 860px) {
  .js .nav-toggle { display: block; }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 0.5rem 1rem 1rem; }
  .js .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: 0.75rem 0.8rem; }
  .site-header .container { flex-wrap: wrap; }
}

/* ---------- Sections ---------- */
main { display: block; }
.section { padding: 3.5rem 0; }
@media (min-width: 860px) { .section { padding: 5rem 0; } }
.section-alt { background: var(--surface); }

.eyebrow {
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.6rem;
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40rem; }

.hero { padding: 3.5rem 0 3rem; }
@media (min-width: 860px) { .hero { padding: 6rem 0 5rem; } }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 860px) { .hero-grid { grid-template-columns: 1.3fr 1fr; } }
.hero-art { position: relative; max-width: 13rem; justify-self: center; width: 100%; }
.hero-art svg { width: 100%; }
.hero-art .swallow-wrap { position: absolute; width: 34%; right: 4%; top: -6%; aspect-ratio: 474 / 685; z-index: 2; }
.hero-art .swallow-wrap > span { position: absolute; inset: 0; width: 100%; }
/* gefüllte Silhouette: Linie und Kreis verschwinden hinter dem hellen Bauch der Schwalbe */
.swallow-fill { background: var(--bg); -webkit-mask: url("../img/schwalbe-fill.png") center / contain no-repeat; mask: url("../img/schwalbe-fill.png") center / contain no-repeat; }
@media (min-width: 860px) { .hero-art { max-width: 24rem; } }

.page-head { padding: 3rem 0 1rem; }
@media (min-width: 860px) { .page-head { padding: 4.5rem 0 1.5rem; } }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.btn {
  display: inline-block; padding: 0.8rem 1.3rem; border-radius: 999px;
  font-weight: 600; text-decoration: none; border: 2px solid var(--primary);
  font-size: 1rem; line-height: 1.3; cursor: pointer; font-family: inherit;
}
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-ghost:hover { background: var(--surface); }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.card {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  display: flex; flex-direction: column;
}
.card h3 { margin-bottom: 0.4em; }
.card p { color: var(--muted); }
.card .more { margin-top: auto; font-weight: 600; }
.card-icon { width: 2.5rem; height: 2.5rem; margin-bottom: 1rem; color: var(--primary); }

.two-col { display: grid; gap: 2.5rem; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 1.8rem; position: relative; margin-bottom: 0.55rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0.2rem; top: 0.62em;
  width: 0.7rem; height: 0.7rem; border-radius: 50%;
  background: var(--accent); opacity: 0.85;
}

/* ---------- Angebot-Abschnitte ---------- */
.topic { padding: 2.5rem 0; border-top: 1px solid var(--border); scroll-margin-top: 5.5rem; }
.topic:first-of-type { border-top: 0; }
.topic-grid { display: grid; gap: 1.5rem; }
@media (min-width: 860px) { .topic-grid { grid-template-columns: 16rem 1fr; gap: 3rem; } }
.topic-grid .eyebrow { margin-top: 0.4rem; }

.toc { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.toc a {
  display: inline-block; padding: 0.4rem 0.9rem; border: 1px solid var(--border);
  border-radius: 999px; text-decoration: none; color: var(--text); font-size: 0.95rem;
  background: var(--surface-2);
}
.toc a:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- Ablauf ---------- */
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 1.25rem; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li {
  counter-increment: step; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.4rem;
}
.steps li::before {
  content: counter(step); display: grid; place-items: center;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--primary); color: var(--primary-ink);
  font-weight: 700; margin-bottom: 0.8rem;
}
.steps h3 { font-size: 1.1rem; }
.steps p { color: var(--muted); margin: 0; }

.price-table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; }
.price-table th, .price-table td { text-align: left; padding: 0.85rem 0.5rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.price-table td:last-child { text-align: right; white-space: nowrap; font-weight: 600; }
.price-table th { font-weight: 600; }
.price-table .sub { display: block; color: var(--muted); font-size: 0.92rem; font-weight: 400; }

.faq details {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface-2); margin-bottom: 0.75rem;
}
.faq summary {
  cursor: pointer; padding: 1rem 1.25rem; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 1.25rem 1rem; color: var(--muted); }

/* ---------- Hinweisboxen ---------- */
.note {
  border-left: 4px solid var(--accent); background: var(--surface);
  padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0;
}
.note p:last-child { margin-bottom: 0; }
.placeholder { background: color-mix(in srgb, var(--accent) 22%, transparent); padding: 0 0.25em; border-radius: 4px; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.contact-card { text-align: left; }
.contact-card .big { font-size: 1.15rem; font-weight: 600; word-break: break-word; }

form .field { margin-bottom: 1.1rem; }
label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.hint { font-weight: 400; color: var(--muted); font-size: 0.92rem; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 10px; padding: 0.7rem 0.85rem;
}
textarea { min-height: 9rem; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 0.35rem; width: 1.1rem; height: 1.1rem; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.crisis {
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 1.5rem 0; font-size: 0.95rem;
}
.crisis strong { color: var(--accent); }
.site-footer { padding: 2.5rem 0 3rem; font-size: 0.95rem; color: var(--muted); }
.footer-grid { display: grid; gap: 1.5rem; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.35rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--primary); }
.footer-title { font-weight: 600; color: var(--text); margin-bottom: 0.5rem; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---------- Startbereich: Riso-Körnung, Rasterpunkte, Schwalben-Flugbahn ---------- */
.hero-riso { position: relative; overflow: hidden; isolation: isolate; }
.hero-riso > .container { position: relative; z-index: 1; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

/* Körnung wie beim Risograph-Druck */
.hero-riso::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.16 0 0 0 0 0.13 0 0 0 0 0.26 2.2 0 0 0 -0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23n%29'/%3E%3C/svg%3E");
  opacity: 0.55;
}
/* Fotokopie-Sprenkel in Lila und Saphirgrün, leicht versetzt wie ein schlecht registrierter Riso-Druck */
.hero-riso::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='3' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.48 0 0 0 0 0.39 0 0 0 0 0.71 1.7 0 0 0 -0.55'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='0 0 0 0 1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23n%29'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.04 0 0 0 0 0.42 0 0 0 0 0.43 1.7 0 0 0 -0.6'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='0 0 0 0 1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23n%29'/%3E%3C/svg%3E");
  background-position: 0 0, 3px 2px;
  opacity: 0.45;
}

/* Rasterpunkte, zum Rand hin auslaufend */
.dots { position: absolute; display: block; }
.dots-lilac {
  top: -15%; right: -8%; width: 62%; height: 95%;
  background-image: radial-gradient(var(--lilac) 1.6px, transparent 2px);
  background-size: 11px 11px;
  -webkit-mask-image: radial-gradient(closest-side, #000 15%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 15%, transparent 100%);
  opacity: 0.9;
}
.dots-green {
  bottom: -20%; left: -10%; width: 45%; height: 70%;
  background-image: radial-gradient(var(--primary) 1.3px, transparent 1.7px);
  background-size: 9px 9px;
  -webkit-mask-image: radial-gradient(closest-side, #000 10%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 10%, transparent 100%);
  opacity: 0.3;
}

/* Flugbahn und kleine Schwalben */
.flight { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.9; }

@media (max-width: 859px) {
  .flight { display: none; }
  .dots-lilac { width: 90%; height: 45%; }
}

@media (prefers-color-scheme: dark) {
  .hero-riso::before { opacity: 0.6; filter: invert(1); mix-blend-mode: screen; }
  .hero-riso::after { opacity: 0.4; }
  .dots-lilac { opacity: 0.35; }
  .dots-green { opacity: 0.25; }
}

/* ---------- Punk-Details: Fehldruck-Überschrift und abgerissene Kante ---------- */
.hero-riso h1 {
  text-shadow: 0.07em 0.06em 0 var(--lilac);
}
.hero-riso { padding-bottom: 4.5rem; }
@media (min-width: 860px) { .hero-riso { padding-bottom: 6.5rem; } }
.tear {
  position: absolute; left: 0; right: 0; bottom: -1px; z-index: 2;
  width: 100%; height: 26px; display: block;
}



/* ---------- Wellen ---------- */
.waves { position: absolute; left: 0; right: 0; bottom: 14px; height: 46px; z-index: 1; pointer-events: none; }
.wave { position: absolute; left: 0; right: 0; height: 40px; background-repeat: repeat-x; }
.wave-1 { bottom: 6px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='40' viewBox='0 0 240 40'%3E%3Cpath d='M0 20 Q 30 6 60 20 T 120 20 T 180 20 T 240 20' fill='none' stroke='%23b8a6e3' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E"); background-size: 240px 40px; opacity: .55; }
.wave-2 { bottom: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='40' viewBox='0 0 320 40'%3E%3Cpath d='M0 22 Q 40 10 80 22 T 160 22 T 240 22 T 320 22' fill='none' stroke='%230b6a6e' stroke-width='1.8' stroke-linecap='round' stroke-dasharray='2 7'/%3E%3C/svg%3E"); background-size: 320px 40px; opacity: .45; }


/* ---------- Animationen: langsam und ruhig ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-art .swallow-wrap { animation: glide 9s ease-in-out infinite; transform-origin: 30% 60%; }
  .flight path { animation: wind 5s linear infinite; }
  .wave-1 { animation: waves 14s linear infinite; }
  .wave-2 { animation: waves-2 22s linear infinite; }
}

@keyframes glide {
  0%   { transform: translate(0, 0) rotate(0deg); }
  25%  { transform: translate(-14px, -18px) rotate(-6deg); }
  50%  { transform: translate(-4px, -26px) rotate(-2deg) scale(1.03); }
  75%  { transform: translate(10px, -10px) rotate(4deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}
@keyframes wind    { to { stroke-dashoffset: -90; } }
@keyframes waves   { to { background-position-x: 240px; } }
@keyframes waves-2 { to { background-position-x: -320px; } }

@media (prefers-color-scheme: dark) {
  .wave-1 { opacity: .45; } .wave-2 { opacity: .6; filter: brightness(2.2); }
}

/* ---------- Orange Edding-Linie ---------- */
:root { --orange: #f0652f; }
@media (prefers-color-scheme: dark) { :root { --orange: #ff8a5c; } }
.squiggle { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.squiggle path {
  fill: none; stroke: var(--orange); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round;
  opacity: .9;
}
.squiggle-m path { stroke-width: 4; }
@media (prefers-reduced-motion: no-preference) {
  .squiggle path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 3.2s .4s ease-in-out forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.squiggle-m { display: none; }
.hero-art .squiggle-m { inset: auto; left: calc(50% - 50vw); width: 100vw; max-width: none; height: 16rem; top: -6%; z-index: -1; }

/* Klebestreifen hinter der Überschrift im Kopfbereich */
.hero-riso .eyebrow {
  display: inline-block; color: #2a2638;
  padding: 0.55em 2.1em 0.5em 1.3em; margin-left: -0.6em;
  background: url("../img/tape-lila.webp") center / 100% 100% no-repeat;
  transform: rotate(-1.6deg);
}
@media (max-width: 859px) { .squiggle-d { display: none; } .squiggle-m { display: block; } }
