/* Harb – Prototyp auf Bootstrap 5.3
   Farben und Schriften aus dem Designentwurf (design/). */

:root {
  --harb-ground: #F5F3EE;
  --harb-paper: #FFFFFF;
  --harb-ink: #1C2622;
  --harb-ink-2: #3E4944;
  --harb-muted: #56615C;
  --harb-line: #DDD8CE;
  --harb-line-soft: #ECE8E0;
  --harb-accent: #2E6A55;
  --harb-accent-dark: #1F4D3D;
  --harb-accent-soft: #E3EDE7;
  --harb-night: #1C2622;
  --harb-night-2: #151D1A;
  --harb-on-night: #D5DDD9;
  --harb-on-night-accent: #9CC9B4;
  --harb-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --harb-sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --harb-mono: "IBM Plex Mono", Consolas, monospace;

  --bs-body-bg: var(--harb-ground);
  --bs-body-color: var(--harb-ink);
  --bs-body-font-family: var(--harb-sans);
  --bs-body-font-size: 1.125rem;
  --bs-body-line-height: 1.6;
  --bs-border-color: var(--harb-line);
  --bs-link-color-rgb: 46, 106, 85;
  --bs-link-hover-color-rgb: 31, 77, 61;
  --bs-emphasis-color: var(--harb-ink);
}

body { background: var(--harb-ground); color: var(--harb-ink); overflow-x: clip; }
/* Seitenrand so breit wie der größte Zeilenabstand (g-5), sonst ragen Zeilen über den Rand */
.container-xl { --bs-gutter-x: 3rem; }

h1, h2, .h1, .h2, .serif {
  font-family: var(--harb-serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1, .h1 { font-size: clamp(2.6rem, 1.6rem + 3.6vw, 4.75rem); line-height: 1.04; }
h2, .h2 { font-size: clamp(2rem, 1.5rem + 1.6vw, 3rem); line-height: 1.1; }
h3, .h3 { font-size: 1.5rem; font-weight: 700; line-height: 1.25; }
.lead { font-size: clamp(1.15rem, 1rem + .4vw, 1.4rem); color: var(--harb-muted); }
.text-ink-2 { color: var(--harb-ink-2); }
.text-muted-harb { color: var(--harb-muted); }
.mono { font-family: var(--harb-mono); font-size: .9rem; }
.eyebrow {
  font-size: .875rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--harb-accent);
}
.measure { max-width: 42rem; }

/* Abschnitte */
.section { padding-block: clamp(3.5rem, 2rem + 5vw, 7rem); }
.section-paper { background: var(--harb-paper); border-block: 1px solid var(--harb-line); }
.section-accent { background: var(--harb-accent-soft); }
.section-accent .eyebrow { color: var(--harb-accent-dark); }

/* Kopfzeile */
.harb-nav { background: var(--harb-ground); border-bottom: 1px solid var(--harb-line); }
.harb-nav .navbar-brand { display: flex; align-items: baseline; gap: .4rem; color: var(--harb-ink); }
.brand-word { font-family: var(--harb-serif); font-size: 1.85rem; font-weight: 600; letter-spacing: -.02em; }
/* Wortzeichen F „Grundlinie" als SVG (assets/logo/) */
.brand-logo { display: block; height: 3rem; width: auto; max-width: 100%; }
.harb-footer .brand-logo { height: 2.75rem; }
.report-logo { height: 2.25rem; width: auto; }
.report-siegel { height: 2.25rem; width: 2.25rem; }
@media (max-width: 575.98px) { .brand-logo { height: 2.5rem; } }
.brand-tag { font-size: .8rem; font-weight: 700; letter-spacing: .14em; color: var(--harb-accent); }
.harb-nav .nav-link { color: var(--harb-ink); font-size: 1.05rem; padding-inline: .9rem !important; }
.harb-nav .nav-link:hover { color: var(--harb-accent); }
.harb-nav .nav-link.active { color: var(--harb-accent); font-weight: 700; text-decoration: underline; text-underline-offset: 6px; }
.harb-nav .navbar-toggler { border: 1.5px solid var(--harb-ink); border-radius: 10px; padding: .55rem .65rem; }
.harb-nav .navbar-toggler:focus { box-shadow: 0 0 0 3px var(--harb-accent-soft); }

/* Schaltflächen */
.btn { font-weight: 700; border-radius: 10px; padding: .85rem 1.5rem; font-size: 1.05rem; }
.btn-harb { --bs-btn-bg: var(--harb-accent); --bs-btn-border-color: var(--harb-accent); --bs-btn-color: #fff;
  --bs-btn-hover-bg: var(--harb-accent-dark); --bs-btn-hover-border-color: var(--harb-accent-dark); --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--harb-accent-dark); --bs-btn-focus-shadow-rgb: 46, 106, 85; }
.btn-line { --bs-btn-color: var(--harb-ink); --bs-btn-border-color: var(--harb-ink); --bs-btn-border-width: 1.5px;
  --bs-btn-hover-bg: var(--harb-ink); --bs-btn-hover-color: var(--harb-ground); --bs-btn-hover-border-color: var(--harb-ink);
  --bs-btn-active-bg: var(--harb-ink); --bs-btn-active-color: var(--harb-ground); }
.btn-light-harb { --bs-btn-bg: var(--harb-ground); --bs-btn-color: var(--harb-ink); --bs-btn-border-color: var(--harb-ground);
  --bs-btn-hover-bg: #fff; --bs-btn-hover-color: var(--harb-ink); --bs-btn-hover-border-color: #fff; }
.btn-sm-nav { padding: .55rem 1.1rem; font-size: 1rem; }

/* Tastaturfokus: sichtbarer Rahmen überall, auf dunklen Flächen hell (WCAG 2.4.7) */
:focus-visible { outline: 3px solid var(--harb-accent); outline-offset: 2px; }
.btn:focus-visible, .navbar-toggler:focus-visible, .faq .accordion-button:focus-visible,
.form-control:focus-visible, .form-select:focus-visible {
  outline: 3px solid var(--harb-accent); outline-offset: 3px; box-shadow: none;
}
.tile-night :focus-visible, .band :focus-visible, .harb-footer :focus-visible { outline-color: var(--harb-on-night-accent); }

/* Telefon im Kopf */
.nav-phone { font-weight: 700; color: var(--harb-ink); text-decoration: none; white-space: nowrap; }
.nav-phone:hover { color: var(--harb-accent); }

/* Porträt (Foto folgt) */
.portrait { width: 100%; max-width: 22rem; aspect-ratio: 4 / 5; border-radius: 16px; background: var(--harb-accent-soft); color: var(--harb-accent-dark); display: flex; align-items: center; justify-content: center; text-align: center; padding: 1.5rem; font-weight: 600; }
.portrait-sm { max-width: 9rem; }

/* Hinweiszeile unter Preisen */
.note-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.5rem; border: 1px dashed var(--harb-line); border-radius: 14px; background: var(--harb-paper); }

/* Karten */
.tile { background: var(--harb-paper); border: 1px solid var(--harb-line); border-radius: 16px; padding: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); height: 100%; display: flex; flex-direction: column; gap: 1.1rem; }
.tile p { margin: 0; }
.tile .btn { align-self: flex-start; margin-top: auto; }
.tile-night { background: var(--harb-night); border-color: var(--harb-night); color: #F5F3EE; }
.tile-night p { color: var(--harb-on-night); }
.tile-night .eyebrow { color: var(--harb-on-night-accent); }
.tile-accent { background: var(--harb-accent-soft); border-color: var(--harb-accent-soft); }

.status-card { background: var(--harb-paper); border: 1px solid var(--harb-line); border-radius: 16px; box-shadow: 0 24px 48px rgba(28,38,34,.08); }
.status-card .head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--harb-line-soft); }
.status-card ul { list-style: none; margin: 0; padding: .25rem 1.5rem .75rem; }
.status-card li { display: flex; align-items: center; gap: .9rem; padding: .9rem 0; border-bottom: 1px solid var(--harb-line-soft); }
.status-card li:last-child { border-bottom: 0; }
.status-card li span:nth-child(2) { flex-grow: 1; }
.pill { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: 999px; background: var(--harb-accent-soft); color: var(--harb-accent-dark); font-size: .85rem; font-weight: 700; }
.check { flex-shrink: 0; color: var(--harb-accent); }

/* Monatsbericht */
.report { background: var(--harb-paper); border-radius: 12px; box-shadow: 0 24px 48px rgba(28,38,34,.12); padding: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); display: flex; flex-direction: column; gap: 1.5rem; }
.report-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; border-bottom: 2px solid var(--harb-ink); padding-bottom: 1rem; }
.report dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 2rem; margin: 0; }
.report dt { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--harb-muted); }
.report dd { margin: 0; font-size: 1.15rem; }
.report-ok { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; background: var(--harb-accent-soft); border-radius: 10px; color: var(--harb-accent-dark); }
.report-ok svg { flex-shrink: 0; }

/* Listen mit Linie oben */
.ruled { border-top: 2px solid var(--harb-ink); padding-top: 1.1rem; }
.ruled p { margin: 0; color: var(--harb-ink-2); }

/* Schritte (echte Reihenfolge) */
.step-no { display: inline-flex; align-items: center; justify-content: center; width: 3.25rem; height: 3.25rem; border-radius: 999px; background: var(--harb-ink); color: var(--harb-ground); font-family: var(--harb-serif); font-size: 1.5rem; font-weight: 600; flex-shrink: 0; }
.step-no.is-last { background: var(--harb-accent); color: #fff; }

/* Preistabelle */
.price-table { background: var(--harb-paper); border: 1px solid var(--harb-line); border-radius: 16px; overflow: hidden; }
.price-table table { margin: 0; --bs-table-bg: transparent; font-size: 1.05rem; }
.price-table th, .price-table td { padding: 1rem 1.5rem; border-color: var(--harb-line-soft); vertical-align: top; }
.price-table thead th { vertical-align: bottom; border-bottom: 1px solid var(--harb-line); }
.price-table .col-main { background: #F3F6F4; }
.price-table thead .col-main { background: var(--harb-night); color: #F5F3EE; }
.price-table thead .col-main .text-muted-harb { color: var(--harb-on-night); }
.price { font-family: var(--harb-serif); font-size: 3.25rem; font-weight: 600; line-height: 1; }
.plan-name { font-family: var(--harb-serif); font-size: 1.85rem; font-weight: 600; }

/* Handy: Preiskarten statt Tabelle */
.plan-card { border-radius: 14px; overflow: hidden; }
.plan-card .rows div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-top: 1px solid var(--harb-line-soft); font-size: 1rem; }
.plan-card .rows div span:last-child { font-weight: 700; text-align: right; }
.plan-card.tile-night .rows div { border-top-color: #34413C; }
.plan-card.tile-night .rows div span:first-child { color: var(--harb-on-night); }

/* Häufige Fragen (Akkordeon) */
.faq .accordion-item { background: transparent; border: 0; border-bottom: 1px solid var(--harb-line); border-radius: 0; }
.faq .accordion-button { background: transparent; font-weight: 700; font-size: 1.2rem; color: var(--harb-ink); padding: 1.25rem 0; box-shadow: none; }
.faq .accordion-button:not(.collapsed) { color: var(--harb-accent-dark); }
.faq .accordion-body { padding: 0 0 1.25rem; color: var(--harb-ink-2); }

/* Banner Bestandskunden */
.band { background: var(--harb-night); color: #F5F3EE; border-radius: 20px; padding: clamp(1.75rem, 1rem + 3vw, 3.5rem); }
.band p { color: var(--harb-on-night); margin: 0; }
.band strong { color: #fff; }

/* Formular */
.form-control, .form-select { border-radius: 10px; border-color: var(--harb-line); padding: .8rem 1rem; font-size: 1.05rem; background-color: var(--harb-paper); }
.form-control:focus, .form-select:focus { border-color: var(--harb-accent); box-shadow: 0 0 0 3px var(--harb-accent-soft); }
.form-label { font-weight: 600; }

/* Fuß */
.harb-footer { background: var(--harb-night-2); color: #C9D2CE; padding-block: 4rem; font-size: 1.02rem; }
.harb-footer a { color: #C9D2CE; text-decoration: none; }
.harb-footer a:hover { color: #fff; text-decoration: underline; }
.harb-footer .ft-head { color: #F5F3EE; font-weight: 700; margin-bottom: .75rem; }
.harb-footer .brand-word { color: #F5F3EE; }
.harb-footer .brand-tag { color: var(--harb-on-night-accent); }
.harb-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }

.placeholder-text { background: #FFF4D6; color: #6B5314; padding: 0 .25rem; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Texte aus dem Editor (Rechtstexte, Projekte) */
.entry-content { font-size: 1.1rem; }
.entry-content > * + * { margin-top: 1rem; }
.entry-content h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); margin-top: 2.5rem; }
.entry-content h3 { margin-top: 2rem; }
.entry-content p, .entry-content li { color: var(--harb-ink-2); }
.entry-content a { color: var(--harb-accent); }
.entry-content img { max-width: 100%; height: auto; border-radius: 12px; }

/* WordPress-Adminleiste nicht über der Navigation */
.admin-bar .harb-nav.sticky-top { top: 32px; }
