/* ==========================================================================
   Haushaltshummel – Stylesheet (öffentliche Seiten)
   Aufbau: 0 Schriften · 1 Variablen · 2 Basis · 3 Sidebar/Layout · 4 Bausteine · 5 Seiten · 6 Formulare · 7 Mobil
   Farben/Abstände zentral in :root ändern.
   Gestaltung angelehnt an getartcraft.com: warmes Grau, eckige Flächen, 1-px-Linienraster,
   Mono-Labels mit Nummern („01 / …“), kursives Serif-Akzentwort. Markenfarbe bleibt Honiggelb.
   ========================================================================== */

/* 0 · Schriften (lokal, siehe assets/fonts/LIZENZ.txt) */
@font-face { font-family: "Inter"; src: url(../fonts/inter-var.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(../fonts/instrument-serif-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(../fonts/jetbrains-mono-500.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

/* 1 · Variablen */
:root {
  --ink: #17171a;
  --muted: #5c5c63;
  --paper: #f2f0ea;        /* Seitenhintergrund (warmes Grau) */
  --raised: #faf9f6;       /* Karten, Sidebar */
  --white: #fff;
  --honey: #f6c945;
  --honey-deep: #b8860b;   /* Akzent für Text/Nummern (ausreichender Kontrast) */
  --honey-soft: #fbefc4;
  --line: rgba(23, 23, 26, .14);
  --line-strong: rgba(23, 23, 26, .38);
  --radius: 0;
  --side: 288px;
  --content: 1080px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}

/* 2 · Basis */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.035em; font-weight: 600; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
.icon { width: 1.5em; height: 1.5em; flex: none; }
:focus-visible { outline: 3px solid var(--honey-deep); outline-offset: 2px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }
.muted { color: var(--muted); font-size: .95rem; }

/* 3 · Sidebar & Layout */
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--side); background: var(--raised); border-right: 1px solid var(--line);
  padding: 28px 0 22px; display: flex; flex-direction: column; overflow-y: auto; z-index: 40; }
.brand img { height: auto; }
.brand-side { display: block; margin: 0 auto 28px; width: 150px; }
.nav-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.nav-list li { border-bottom: 1px solid var(--line); }
.nav-list a { display: flex; align-items: center; gap: 12px; padding: 13px 24px; text-decoration: none; font-weight: 550; color: #34343a; transition: background .15s; }
.nav-list a:hover { background: var(--paper); }
.nav-list a.active { background: var(--ink); color: #fff; }
.nav-list a.active::before { content: ""; width: 8px; height: 8px; background: var(--honey); flex: none; }
.sidebar-bottom { margin-top: auto; padding: 24px 22px 0; }
.side-links { text-align: center; font-size: .85rem; color: var(--muted); margin: 14px 0 0; }
.side-links a { text-decoration: none; }
.side-links a:hover { text-decoration: underline; }
.topbar { display: none; }
.nav-backdrop { display: none; }

.main { margin-left: var(--side); padding: 56px clamp(20px, 5vw, 72px) 0; min-height: 100vh; display: flex; flex-direction: column; }
.main { padding-top: 0; }   /* alle Seiten beginnen mit einem Abschnitts-Rahmen (Abschnitt 8) */
.main > * { width: 100%; max-width: var(--content); margin-left: auto; margin-right: auto; }
.main > .footer { margin-top: auto; }

/* 4 · Bausteine */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; border-radius: 0;
  font-family: var(--mono); font-weight: 500; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: opacity .15s, background .15s, color .15s; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { opacity: .82; }
.btn-light { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-light:hover { background: var(--ink); color: #fff; }
.btn-honey { background: var(--honey); color: var(--ink); }
.btn-honey:hover { background: #f1bd24; }
.btn-block { display: flex; width: 100%; }
.kicker { font-family: var(--mono); text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 500; color: var(--muted); margin-bottom: .9em; }
.section { padding: 72px 0; }
.band { background: var(--raised); border: 1px solid var(--line); padding: 56px clamp(20px, 4vw, 56px); margin: 24px auto; width: 100%; }
.section-intro { font-size: 1.15rem; color: var(--muted); max-width: 46rem; }
.more { margin-top: 28px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; }
.link-arrow .icon { width: 1.1em; height: 1.1em; transition: transform .15s; }
.link-arrow:hover .icon { transform: translateX(4px); }
.page-head { padding-bottom: 36px; }
.page-head h1 { max-width: 20ch; }
/* Kartenraster: 1-px-Linien zwischen den Zellen (Hintergrund scheint durch die Lücke) */
.cards { display: grid; gap: 1px; margin-top: 36px; background: var(--line); border: 1px solid var(--line); }
.cards-5 { grid-template-columns: repeat(5, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--raised); padding: 28px 24px; display: flex; flex-direction: column; text-decoration: none; }
.band .card { background: var(--white); }
.card h3 { margin: 22px 0 8px; }
.card p { color: var(--muted); font-size: .97rem; }
.card-link { transition: background .15s; }
.card-link:hover { background: var(--white); }
.card-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line); background: var(--honey-soft); color: #6b4e00; }
.card-icon .icon { width: 24px; height: 24px; }
.card .link-arrow { margin-top: auto; align-self: flex-start; }
.prose p, .prose li { color: #3f3f46; font-size: 1.05rem; }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose.wide { max-width: 46rem; }
.prose ul { padding-left: 1.2em; }
.prose a { text-decoration-color: var(--honey-deep); text-underline-offset: 3px; }
.checks ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; background: var(--honey); display: grid; place-items: center; font-size: .78rem; font-weight: 800; }
.h-sub { margin-top: 1.2em; font-size: 1.6rem; }
.callout { margin: 56px auto 40px; padding: 32px; background: var(--honey-soft); border: 1px solid #ecd68a; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.callout p { margin: 0; font-size: 1.15rem; font-weight: 600; }
.notice { padding: 14px 18px; margin-bottom: 20px; border: 1px solid var(--line); }
.notice ul { margin: 0; padding-left: 1.1em; }
.notice-success { background: #e8f6ec; color: #14532d; }
.notice-error { background: #fdecec; color: #7f1d1d; }
.notice-info { background: var(--honey-soft); border-color: #ecd68a; display: flex; align-items: center; gap: 10px; font-weight: 600; max-width: 46rem; }
.empty { padding: 40px; background: var(--raised); border: 1px solid var(--line); }

/* 5 · Seiten */
.hero .shell-body { padding-top: 64px; padding-bottom: 72px; }
.eyebrow { display: inline-block; font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; font-size: .76rem; color: var(--muted);
  border: 1px solid var(--line-strong); padding: 8px 14px; }
.eyebrow a { text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--honey-deep); }
.hero h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); line-height: .98; letter-spacing: -.045em; margin: 28px 0 24px; }
/* zweite Zeile („Mehr Zuhause.“) als kursives Serif-Akzentwort */
.hero h1 span { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; color: var(--ink); }
.hero h1 span::after { content: ""; display: inline-block; width: .32em; height: .32em; margin-left: .12em; background: var(--honey); vertical-align: baseline; }
.lead { font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--muted); max-width: 40rem; line-height: 1.45; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.media { margin: 0; overflow: hidden; background: var(--honey-soft); border: 1px solid var(--line); }
.media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 8 / 7; }
.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .check { flex: none; width: 24px; height: 24px; background: var(--honey); display: grid; place-items: center; }
.checklist .check .icon { width: 14px; height: 14px; }
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.step { background: var(--raised); padding: 28px; }
.band .step { background: var(--white); }
.step-no { font-family: var(--mono); font-weight: 500; color: var(--honey-deep); font-size: .85rem; letter-spacing: .1em; }
.step-no::before { content: "Schritt "; color: var(--muted); text-transform: uppercase; }
.step h3 { margin: 28px 0 8px; font-size: 1.4rem; }
.step p { color: var(--muted); margin: 0; }
.service-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service { display: grid; grid-template-columns: auto 1fr; gap: 24px; padding: 32px; background: var(--raised); }
.service h2 { font-size: 1.7rem; }
.pills { list-style: none; padding: 0; margin: 20px 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.pill { background: var(--raised); border: 1px solid var(--line-strong); padding: 10px 18px; }
.pill-request { background: var(--honey-soft); border-color: #ecd68a; border-style: dashed; }
.pill-request span { color: var(--muted); margin-left: 6px; font-size: .9rem; }
.post-card img { margin-bottom: 14px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; border: 1px solid var(--line); }
.article h1 { max-width: 22ch; }
.article-img { margin: 24px 0 32px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); }
.faq { display: grid; gap: 1px; max-width: 48rem; background: var(--line); border: 1px solid var(--line); }
.faq-item { padding: 4px 24px; background: var(--raised); }
.faq-item summary { cursor: pointer; font-weight: 600; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--mono); font-size: 1.3rem; line-height: 1; color: var(--honey-deep); }
.faq-item[open] summary::after { content: "–"; }
.faq-item .prose { padding-bottom: 14px; }
.legal h2 { font-size: 1.4rem; }
.outlook .shell-body { outline: 2px dashed var(--honey-deep); outline-offset: -12px; }
.footer { padding: 28px 0 32px; margin-top: 48px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  color: var(--muted); font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-links { display: flex; gap: 18px; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* 6 · Kontakt & Formulare */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 1px; align-items: stretch; background: var(--line); border: 1px solid var(--line); }
.contact-card { background: var(--ink); color: #fff; padding: 40px; }
.contact-card .kicker { color: #a2a2aa; }
.contact-card p { color: #cfcfd5; }
.contact-regions { list-style: none; padding: 0; margin: 24px 0 0; display: grid; }
.contact-regions li { display: flex; align-items: center; gap: 10px; padding: 14px 0; border-top: 1px solid #34343a; }
.contact-regions a { text-decoration: none; }
.contact-form { background: var(--raised); padding: 32px; }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-weight: 600; font-size: .92rem; padding: 0; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], select, textarea {
  width: 100%; border: 1px solid var(--line-strong); border-radius: 0; padding: 13px 15px; font: inherit; background: #fff; color: inherit; }
textarea { resize: vertical; min-height: 130px; }
.choice { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.choice legend { width: 100%; margin-bottom: 6px; }
.choice label { font-weight: 500; display: inline-flex; gap: 8px; align-items: center; }
/* Einwilligung mit i-Symbol: Langtext erscheint beim Überfahren, bei Tastaturfokus oder per Antippen (.open, main.js) */
.field.consent { display: flex; align-items: flex-start; gap: 10px; }
.field.consent label { font-weight: 400; display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.field.consent input { margin-top: 4px; flex: none; }
.field.consent a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--honey-deep); }
.info { position: relative; flex: none; }
.info-btn { width: 24px; height: 24px; padding: 0; border: 1px solid var(--line-strong); background: var(--white); color: var(--ink);
  font-family: var(--serif); font-style: italic; font-size: 1rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.info-btn:hover, .info.open .info-btn { background: var(--ink); color: #fff; }
.info-pop { position: absolute; right: 0; bottom: calc(100% + 8px); width: min(320px, 78vw); z-index: 40; padding: 14px 16px;
  background: var(--ink); color: #e9e9ee; font-size: .85rem; line-height: 1.5; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .4);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; }
.field.consent .info-pop a { color: #fff; text-decoration-color: var(--honey); }
.info:hover .info-pop, .info:focus-within .info-pop, .info.open .info-pop { opacity: 1; visibility: visible; transform: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 8 · Abschnitts-Rahmen (Startseite, shell_open() in helpers.php)
   Linie oben + Eck-Kreuze, Label-Leiste klebt beim Scrollen oben, bis der Abschnitt endet. */
.shell { position: relative; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.shell:last-of-type { border-bottom: 1px solid var(--line); }
.shell-rule { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-strong); transform-origin: left; }
.tick { position: absolute; top: -5px; width: 11px; height: 11px; z-index: 31; pointer-events: none; }
.tick::before, .tick::after { content: ""; position: absolute; background: var(--ink); }
.tick::before { width: 1px; top: 5px; bottom: 0; left: 5px; }   /* nur nach unten: „halbes“ Kreuz wie in der Referenz */
.tick::after { height: 1px; top: 5px; left: 0; right: 0; }
.tick-l { left: -6px; }
.tick-r { right: -6px; }
.shell-bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px clamp(20px, 4vw, 48px); border-bottom: 1px solid var(--line); background: rgba(242, 240, 234, .72);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.shell-bar p { margin: 0; font-family: var(--mono); text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; color: var(--muted); }
.shell-no { color: var(--honey-deep); }
.shell-sep { margin: 0 .6em; opacity: .6; }
.shell-note a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--honey-deep); }
.shell-body { padding: 56px clamp(20px, 4vw, 48px) 64px; }
.shell-band .shell-body { background: var(--raised); }
.shell-band .card, .shell-band .step { background: var(--white); }
.shell .cards-flush { margin-top: 0; }
.shell .callout { margin: 0; }
.shell-flush .shell-body { padding: 0; }
.shell-flush .contact-grid, .shell-flush .service-list, .shell-flush .faq, .shell-flush > .shell-body > .cards { border: 0; margin: 0; max-width: none; }
/* Seitenkopf der Unterseiten (erster Rahmen, ohne Nummer) */
.page-hero .shell-body { padding-top: 56px; padding-bottom: 56px; }
.page-hero h1 { max-width: 22ch; }
.page-hero .section-intro { margin-bottom: 0; }
.page-hero .notice-info { margin: 24px 0 0; }
.page-hero .shell-label a { color: var(--ink); text-decoration: none; }

/* Bewegung: nur wenn assets/js/motion.js die Klasse „motion“ gesetzt hat (und keine reduzierte Bewegung gewünscht ist).
   Ohne JavaScript bleibt alles sichtbar. Ablauf wie in der Referenz: Linie zeichnet sich → Leiste gleitet unscharf ein → Kreuze erscheinen. */
.motion [data-draw-rule] { transform: scaleX(0); transition: transform .7s cubic-bezier(.33, 1, .68, 1); }
.motion [data-draw-tick] { transform: scale(0); opacity: 0; transition: transform .35s cubic-bezier(.215, .61, .355, 1) .35s, opacity .35s .35s; }
.motion [data-draw-tick].tick-r { transition-delay: .41s; }
.motion [data-draw-eyebrow],
.motion [data-reveal] { opacity: 0; transform: translateY(28px); filter: blur(8px);
  transition: opacity .9s cubic-bezier(.215, .61, .355, 1), transform .9s cubic-bezier(.215, .61, .355, 1), filter .9s cubic-bezier(.215, .61, .355, 1);
  transition-delay: var(--d, 0s); }
.motion [data-draw-eyebrow] { --d: .15s; }
.motion .is-in > [data-draw-rule],
.motion .is-in > [data-draw-tick] { transform: none; opacity: 1; }
.motion .is-in > [data-draw-eyebrow],
.motion [data-reveal].is-in { opacity: 1; transform: none; filter: none; }

/* 7 · Tablet & Smartphone */
@media (max-width: 1180px) {
  .cards-5 { grid-template-columns: repeat(3, 1fr); }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .topbar { display: flex; position: fixed; inset: 0 0 auto 0; height: 64px; background: rgba(250, 249, 246, .95); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line); align-items: center; justify-content: space-between; padding: 0 16px; z-index: 50; }
  .topbar .brand img { width: 64px; height: auto; }
  .nav-toggle { background: none; border: 1px solid var(--line-strong); padding: 8px; cursor: pointer; color: var(--ink); }
  .sidebar { transform: translateX(-100%); transition: transform .25s; padding-top: 84px; }
  .sidebar .brand-side { display: none; }
  body.nav-open .sidebar { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .2); }
  body.nav-open .nav-backdrop { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 30; }
  .main { margin-left: 0; padding-top: 96px; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .cards-3, .cards-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .contact-card { padding: 28px; }
  .main { padding-top: 64px; }
  .shell-bar { top: 64px; }   /* unter der festen Kopfleiste */
}
@media (max-width: 600px) {
  .cards-5, .cards-4 { grid-template-columns: 1fr; }
  .service { grid-template-columns: 1fr; padding: 24px; }
  .contact-form { padding: 22px; }
  .btn { width: 100%; }
  .shell-note { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
