/*
Theme Name: Haudegen Theme Template
Theme URI: https://haudegen-webdesign.de
Author: Haudegen Webdesign
Author URI: https://haudegen-webdesign.de
Description: Schlankes, custom-codiertes Basis-Theme (kein Page Builder). Startpunkt fuer neue Kundenprojekte.
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: haudegen-theme
*/

/* ============================================================
   REIHENFOLGE DIESER DATEI - NEUE BLOECKE HIER EINSORTIEREN
   1  Tokens
   2  Fonts
   3  Reset / Basis
   4  Typografie (inkl. .eyebrow)
   5  Farb- und Hintergrundklassen
   6  Layout-Utilities (flex, grids, Container-Stufen)
   7  Abstaende
   8  Komponenten (button, card, section-head, faq, form, post)
   9  Header
   10 Footer
   10b Sektionen (hero, vorteile, ueber-mich, leistungen, betreuung, faq, kontakt)
   11 Einblenden beim Scrollen
   12 Swiper-Basis
   13 Responsive
   14 Barrierefreiheit (Fokus, reduced motion)
============================================================ */


/* ============================================================
   1  TOKENS
   Acht Werte, jeder mit genau EINER Bedeutung.
   --grey ist eine FLAECHE und nie Text. Leiser Text ist --text-grey.
   Projektspezifische Variablen erst bei Bedarf einzeln ergaenzen.
============================================================ */
:root {
    --black: #2a2b26;        /* Text auf hell, dunkle Flaeche */
    --white: #f8f6f1;        /* warmes Off-White: Seitenhintergrund, Header, Text auf dunkel */
    --grey: #f1efe8;         /* helle Flaeche fuer Sektionswechsel (Vorteilsleiste, Footer) - NIE Text */
    --text-grey: #5d5f57;    /* leiser Text auf heller Flaeche */
    --line: #e4e0d6;         /* dezente Trennlinie / Kartenrahmen */
    --accent: #396335;       /* Gruen: Buttons, Links, Nummern, Icons */
    --accent-hover: #2e522b; /* Abdunklung des Akzents fuer :hover */
    --contrast: #2f522c;     /* dunkelgruene Flaeche (Kontakt) */

    /* Projektspezifisch */
    --card: #ffffff;         /* Karten, Formularfelder, Badge */
    --text-soft: #45473f;    /* Absaetze und Beschreibungen */
    --line-dark: #d6d1c4;    /* FAQ-Linien, Formularfelder, Outline-Button */
    --sage: #eceee4;         /* Sektion "Unsere Leistungen" */
    --sage-line: #cfd3c3;    /* Trennlinien in "Unsere Leistungen" */
    --font-serif: 'Source Serif 4', Georgia, serif;
    --font-sans: 'Source Sans 3', system-ui, sans-serif;
}


/* ============================================================
   2  FONTS
   Immer self-hosted, nie Google Fonts (DSGVO).
   Variable Datei ist der Standard - vor dem Hochladen pruefen, dass
   die Datei wirklich variabel ist (fvar-Tabelle) und wirklich woff2
   (Signatur wOF2). Sonst sind fette Ueberschriften duenn.
============================================================ */
@font-face {
    font-family: 'Source Serif 4';
    src: url('fonts/source-serif-4-variable.woff2') format('woff2-variations'),
         url('fonts/source-serif-4-variable.woff2') format('woff2');
    font-weight: 200 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Source Serif 4';
    src: url('fonts/source-serif-4-italic-variable.woff2') format('woff2-variations'),
         url('fonts/source-serif-4-italic-variable.woff2') format('woff2');
    font-weight: 200 900;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Source Sans 3';
    src: url('fonts/source-sans-3-variable.woff2') format('woff2-variations'),
         url('fonts/source-sans-3-variable.woff2') format('woff2');
    font-weight: 200 900;
    font-style: normal;
    font-display: swap;
}


/* ============================================================
   3  RESET / BASIS
============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--black);
    background: var(--white);
    line-height: 1.65;
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
    /* clip statt hidden: hidden macht den Body zum Scroll-Container und
       bricht damit position:sticky im Header. */
    overflow-x: clip;
}

/* Scroll-Lock, wenn das Popup-Menue offen ist */
body.fixed {
    overflow: hidden;
}

/* height:auto ist PFLICHT. wp_get_attachment_image() liefert width- und
   height-Attribute; ohne diese Regel erzwingt das height-Attribut die
   Hoehe und staucht jedes Bild. */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
    text-align: inherit;
}


/* ============================================================
   4  TYPOGRAFIE
============================================================ */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    line-height: 1.15;
    font-weight: 500;
    text-wrap: balance;
}

h1 { font-size: clamp(38px, 5vw, 58px); line-height: 1.1; letter-spacing: -0.015em; }
h2 { font-size: clamp(32px, 3.6vw, 44px); letter-spacing: -0.01em; }
h3 { font-size: 24px; font-weight: 600; line-height: 1.3; }
h4 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

/* Absatzabstand kommt aus gap im Flex-Container bzw. aus .entry-content */
p { margin: 0; text-wrap: pretty; }

.text-small { font-size: 15.5px; }
.text-lead { font-size: 20px; }

/* Typo-Utilities: als ZUSAETZLICHE Klasse ans Element haengen
   (class="label uppercase bold accent"). In Komponenten-CSS wird
   Fettung, Versalien und Unterstreichung nie nochmals gesetzt. */
.bold { font-weight: 600; }
.uppercase { text-transform: uppercase; }
.underline {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.serif { font-family: var(--font-serif); }

/* Kleines Label (z.B. Kartenueberschrift "Morgens") */
.label {
    display: block;
    font-size: 14.5px;
    letter-spacing: .06em;
}

/* Hinweis: Das Design verzichtet auf Eyebrows ueber Section-Ueberschriften.
   Die Klasse bleibt fuer Unterseiten (Fehler 404, Seitenkopf). */
.eyebrow {
    display: block;
    font-size: .75rem;
    letter-spacing: .18em;
    line-height: 1.3;
    color: var(--accent);
    margin-bottom: 12px;
}


/* ============================================================
   5  FARB- UND HINTERGRUNDKLASSEN
============================================================ */
.black { color: var(--black); }
.white { color: var(--white); }
.accent { color: var(--accent); }
.text-grey { color: var(--text-grey); }
.text-soft { color: var(--text-soft); }
.contrast { color: var(--contrast); }

.black-bg { background: var(--black); color: var(--white); }
.white-bg { background: var(--white); color: var(--black); }
.grey-bg { background: var(--grey); color: var(--black); }
.sage-bg { background: var(--sage); color: var(--black); }
.contrast-bg { background: var(--contrast); color: var(--white); }
.accent-bg { background: var(--accent); color: var(--white); }

/* Leiser Text auf dunkler Flaeche - --text-grey waere dort zu dunkel */
.black-bg .text-grey { color: rgba(255, 255, 255, .7); }
.contrast-bg .text-grey { color: #e3e9de; }

/* Links in Akzentfarbe */
a.accent:hover { color: var(--accent-hover); }

/* Pusteblume ist ein JPG mit weissem Hintergrund. Notloesung, bis ein
   freigestelltes PNG/SVG vorliegt. */
.blend { mix-blend-mode: multiply; }


/* ============================================================
   6  LAYOUT-UTILITIES
   Layout wird im Markup zusammengesetzt, nicht pro Seite neu in CSS.
============================================================ */
.flex {
    display: flex;
    flex-direction: column;
}
.flex-horizontal {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
.flex-start { align-items: flex-start; }
.flex-end { align-items: flex-end; }
.flex-center { align-items: center; }
.flex-between { justify-content: space-between; }

.gap-5 { gap: 5px; }
.gap-10 { gap: 10px; }
.gap-20 { gap: 20px; }
.gap-40 { gap: 40px; }

.section-padding {
    padding: clamp(64px, 9vw, 112px) 28px;
}

/* Sticky-Header beim Anspringen von Ankern beruecksichtigen */
section[id] {
    scroll-margin-top: 90px;
}

.double-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
/* Bild links, Text rechts - ohne die Reihenfolge im Markup zu drehen
   (die DOM-Reihenfolge bleibt so auch mobil korrekt) */
.double-grid.reverse > *:first-child { order: 2; }

.triple-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: stretch;
}

/* Container-Stufen.
   Das nackte ".max-width" gibt es NICHT mehr: es bedeutete in einem
   Projekt 700px (Textspalte) und im naechsten 1600px (Seitenbreite).
   Jede Stufe traegt jetzt ihre Breite im Namen.
   Standard-Seitencontainer = .max-width-1600 */
.max-width-700,
.max-width-1100,
.max-width-1180,
.max-width-1400,
.max-width-1600 {
    margin-inline: auto;
    width: 100%;
}
.max-width-700  { max-width: 700px; }   /* schmale Textspalte, Rechtstexte */
.max-width-1100 { max-width: 1100px; }  /* Beitrag, Formular */
.max-width-1180 { max-width: 1180px; }  /* Standard-Seitencontainer dieses Projekts */
.max-width-1400 { max-width: 1400px; }  /* engerer Inhaltscontainer */
.max-width-1600 { max-width: 1600px; }  /* Standard-Seitencontainer */


/* ============================================================
   7  ABSTAENDE
============================================================ */
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }


/* ============================================================
   8  KOMPONENTEN
============================================================ */

/* --- Button -------------------------------------------------
   Varianten als zweite Klasse: class="button outline"
   (nicht .button-outline - der Modifier-Stil ist der gelebte) */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    align-self: flex-start;
    padding: 15px 28px;
    background: var(--accent);
    color: var(--card);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;
    border-radius: 999px;
    transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.button:hover {
    background: var(--accent-hover);
}
.button.outline {
    background: transparent;
    border: 1.5px solid var(--line-dark);
    color: var(--black);
    padding: 14px 24px;
}
.button.outline:hover {
    background: transparent;
    border-color: var(--accent);
    color: var(--accent);
}
.button.dark {
    background: var(--black);
    color: var(--white);
}
.button.dark:hover {
    background: var(--contrast);
}
/* Auf dunkler Flaeche braucht outline eine helle Linie */
.black-bg .button.outline,
.contrast-bg .button.outline {
    border-color: var(--white);
    color: var(--white);
}
.black-bg .button.outline:hover,
.contrast-bg .button.outline:hover {
    background: var(--white);
    color: var(--black);
}

/* --- Karte --------------------------------------------------
   Ein Baustein fuer alle Kartenmuster (Leistung, Rezension,
   Partner, Formular). Nicht pro Sektion neu definieren. */
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 30px 28px;
}
.black-bg .card,
.contrast-bg .card {
    background: rgba(255, 255, 255, .05);
    border-color: rgba(255, 255, 255, .15);
}
/* Nur bei klickbaren Karten */
a.card:hover,
.card.klickbar:hover {
    border-color: var(--accent);
}

/* --- Sektionskopf -------------------------------------------
   Eyebrow + Headline links, Zusatztext rechts. Bei genug Platz
   nebeneinander, sonst untereinander. */
.section-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 50px;
}
.section-head > *:first-child { flex: 1 1 460px; }
.section-head > *:last-child  { flex: 0 1 380px; }
.section-head > *:only-child  { flex: 1 1 100%; }

/* --- FAQ ----------------------------------------------------
   .faq-question ist ein <button>, kein <div onclick>. */
.faq-item {
    border-top: 1px solid var(--line-dark);
    padding: 4px 0;
}
.faq-item:last-child {
    border-bottom: 1px solid var(--line-dark);
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    width: 100%;
    padding: 20px 0;
    font-size: 21px;
    font-weight: 500;
    line-height: 1.35;
}
.faq-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1.5px solid var(--accent);
    border-radius: 50%;
    font-family: var(--font-sans);
    font-size: 22px;
    line-height: 1;
    color: var(--accent);
    transition: transform .2s ease;
}
.faq-icon.aktiv {
    transform: rotate(45deg);
}
/* max-height reicht fuer ca. 15 Zeilen Antwort. Bei laengeren
   Antworten den Wert erhoehen - eine Hoehe von "auto" laesst sich
   nicht animieren. */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}
.faq-answer.aktiv {
    max-height: 1500px;
}
.faq-answer-inner {
    padding-bottom: 22px;
    max-width: 38em;
    color: var(--text-soft);
}
.faq-answer-inner p + p {
    margin-top: 1rem;
}

/* --- Formular (CF7) -----------------------------------------
   Die Plugin-Styles sind in functions.php abgeschaltet, deshalb
   steht das komplette Formular-CSS hier. */
.form-card {
    background: var(--white);
    color: var(--black);
    border-radius: 24px;
    padding: clamp(24px, 3vw, 36px);
}
.form-card form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.form-card label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 16px;
    font-weight: 500;
}
/* Name + Telefon nebeneinander, sobald Platz ist */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 18px;
}
.form-hinweis {
    font-size: 15px;
    font-weight: 400;
    color: var(--text-grey);
}
.form-card input[type="text"],
.form-card input[type="email"],
.form-card input[type="tel"],
.form-card textarea,
.form-card select {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--line-dark);
    border-radius: 12px;
    background: var(--card);
    font: inherit;
    font-size: 17px;
    font-weight: 400;
    color: var(--black);
}
.form-card textarea {
    min-height: 120px;
    resize: vertical;
}
/* Kein outline:none - der Fokusring aus dem Barrierefreiheits-Block bleibt sichtbar */
.form-card input:focus,
.form-card textarea:focus,
.form-card select:focus {
    border-color: var(--accent);
}
.form-card input[type="submit"] {
    display: inline-block;
    padding: 15px 30px;
    background: var(--accent);
    color: var(--card);
    font-family: inherit;
    font-size: 18px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transition: background .25s ease;
}
.form-card input[type="submit"]:hover {
    background: var(--accent-hover);
}
/* Consent-Checkbox */
.form-card .wpcf7-acceptance .wpcf7-list-item {
    margin: 0;
}
.form-card .wpcf7-acceptance label {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400;
    font-size: 15px;
    color: var(--text-grey);
    line-height: 1.5;
}
.form-card .wpcf7-acceptance input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--accent);
}
/* Pflichtfeld-Markierung und Meldungen */
.form-card .pflicht {
    color: var(--accent);
}
.wpcf7-not-valid-tip {
    display: block;
    margin-top: 6px;
    font-size: .85rem;
    color: #c00;
}
.wpcf7-response-output {
    margin-top: 20px !important;
    padding: 14px 18px !important;
    border: 1px solid var(--line) !important;
    border-radius: 4px;
    font-size: .95rem;
}
.wpcf7 form.sent .wpcf7-response-output {
    border-color: var(--accent) !important;
    color: var(--accent);
    background: transparent;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
    border-color: #c00 !important;
    background: #fdeeee;
}
.wpcf7-spinner {
    display: none;
}
/* Honeypot- / Hidden-Felder */
.hidden-fields-container {
    visibility: hidden !important;
    position: absolute;
    left: -9999px;
}

/* --- Beitrag / Seite ----------------------------------------
   entry-content: hier stehen die Styles fuer vom Editor
   ausgegebenes HTML, das wir nicht mit Klassen versehen koennen. */
.entry-content p { margin-bottom: 1rem; }
.entry-content p:last-child { margin-bottom: 0; }
.entry-content h2,
.entry-content h3 { margin: 40px 0 15px; }
.entry-content ul,
.entry-content ol { margin: 0 0 20px 20px; }
.entry-content li { margin-bottom: 8px; }
.entry-content img { margin: 30px 0; }
.entry-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}
.entry-content th,
.entry-content td {
    border: 1px solid var(--line);
    padding: 10px 14px;
    text-align: left;
}

.post-meta {
    display: block;
    color: var(--accent);
    font-size: .8rem;
    letter-spacing: .12em;
}

/* Beitragsraster (index, archive, search) */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.post-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
}
.post-card img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 5px;
}
.post-card h3 {
    font-size: 1.3rem;
    transition: color .25s ease;
}
.post-card:hover h3 {
    color: var(--accent);
}

/* Pagination */
.pagination {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 60px;
    flex-wrap: wrap;
}
.pagination .page-numbers {
    padding: 10px 16px;
    background: var(--grey);
    border-radius: 2px;
}
.pagination .page-numbers.current {
    background: var(--accent);
    color: var(--white);
}


/* ============================================================
   9  HEADER
   Nicht standardmäßig sticky, weil wir nicht bei kleinen / einfachen Seiten brauchen dass der Header standardmäßig mitläuft
============================================================ */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background: rgba(248, 246, 241, .94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    padding: 14px 28px;
}
.header-inner {
    max-width: 1180px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
header .logo img {
    width: 46px;
    height: 46px;
}
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.logo-name {
    font-size: 25px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--accent);
}
.logo-sub {
    font-size: 13.5px;
    letter-spacing: .02em;
    color: var(--text-grey);
}

/* Grosse Navigation ab 1200px */
#navi-big {
    display: none;
}
#navi-big ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 26px;
    list-style: none;
    font-size: 16.5px;
}
#navi-big .button {
    padding: 9px 18px;
    font-size: inherit;
}
#navi-big .button:hover {
    color: var(--card);
}
#navi-big a:hover,
#navi-big .current-menu-item > a {
    color: var(--accent);
}

/* Burger (mobil) */
.burger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    margin-right: -10px;
}
.burger span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--black);
    transition: transform .3s ease, opacity .3s ease;
}

/* Popup-Menue (mobil) */
#navi-small {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    width: 340px;
    max-width: 85vw;
    background: var(--black);
    color: var(--white);
    z-index: 200;
    transform: translateX(100%);
    transition: transform .35s ease;
    padding: 100px 40px 40px;
    overflow-y: auto;
    visibility: hidden;
}
#navi-small.aktiv {
    transform: translateX(0);
    visibility: visible;
}
#navi-small ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
#navi-small a {
    font-size: 1.35rem;
    font-weight: 700;
}
#navi-small a:hover {
    color: var(--accent);
}
#navi-small .close {
    position: absolute;
    top: 25px;
    right: 30px;
    font-size: 2.2rem;
    line-height: 1;
    padding: 5px;
}

/* Overlay hinter dem Popup */
.body-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease;
}
.body-overlay.aktiv {
    opacity: 1;
    visibility: visible;
}


/* ============================================================
   10  FOOTER
============================================================ */
footer {
    background: var(--grey);
    color: var(--text-grey);
    border-top: 1px solid var(--line);
    padding: 32px 28px;
    font-size: 15.5px;
}
.footer-inner {
    max-width: 1180px;
    margin-inline: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px 32px;
}
footer img {
    width: 30px;
    height: 30px;
}
.footer-name {
    font-size: 18px;
    color: var(--accent);
}
footer a:hover {
    color: var(--accent);
}


/* ============================================================
   10b  SEKTIONEN (Leben Zuhause)
   Fluide Raster mit auto-fit, keine festen Breakpoints.
============================================================ */

/* --- Hero --- */
.hero {
    padding-top: clamp(48px, 7vw, 96px);
    padding-bottom: clamp(56px, 7vw, 88px);
}
.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
    gap: clamp(36px, 5vw, 72px);
    align-items: center;
}
.hero-text {
    gap: 26px;
}
.hero-text .text-lead {
    max-width: 34em;
}
.hero-buttons {
    gap: 14px;
    align-items: center;
}
.hero-bild {
    position: relative;
}
.hero-bild > img {
    width: 100%;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    object-position: 62% center;
    border-radius: 28px;
}
.hero-badge {
    position: absolute;
    left: -18px;
    bottom: -24px;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 300px;
    padding: 16px 20px;
    background: var(--card);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(42, 43, 38, .08);
    font-size: 15.5px;
    line-height: 1.4;
    color: var(--text-soft);
}
.hero-badge img,
.avatar {
    flex: none;
    border-radius: 50%;
    object-fit: cover;
}
.hero-badge img {
    width: 52px;
    height: 52px;
}
.hero-badge .bold {
    color: var(--black);
}

/* --- Vorteilsleiste --- */
.vorteile {
    padding: 28px;
    border-block: 1px solid var(--line);
}
.vorteile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 20px 40px;
}
.vorteil {
    display: flex;
    gap: 14px;
    align-items: baseline;
}
.punkt {
    flex: none;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    transform: translateY(-2px);
}

/* --- Ueber mich --- */
.ueber-mich-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
    gap: clamp(36px, 6vw, 88px);
    align-items: center;
}
.portrait-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 1 / 1;
    justify-self: center;
}
.portrait-box .pusteblume {
    position: absolute;
    left: -18%;
    top: -20%;
    width: 85%;
    height: 85%;
    object-fit: contain;
    opacity: .18;
}
.portrait-box .portrait {
    position: relative;
    width: min(300px, 62%);
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 14px 36px rgba(42, 43, 38, .12);
}
.ueber-mich-text {
    gap: 22px;
    max-width: 36em;
}
.signatur {
    font-size: 28px;
}

/* --- Leistungen --- */
.leistungen-inner {
    gap: 48px;
}
.leistungen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
    gap: 0 64px;
}
.leistung {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 4px 16px;
    padding: 28px 0;
    border-top: 1px solid var(--sage-line);
}
.leistung-nummer {
    font-size: 22px;
    color: var(--accent);
}

/* --- Umfang der Betreuung --- */
.betreuung-inner {
    gap: 52px;
}
.betreuung-kopf {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    gap: 24px 64px;
    align-items: end;
}
.betreuung-kopf p {
    max-width: 30em;
}
.betreuung-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 20px;
}
.betreuung-grid .card h3 {
    font-size: 23px;
}
.betreuung-grid .card p {
    font-size: 17px;
}
.betreuung-hinweis {
    display: flex;
    gap: 10px;
    align-items: baseline;
    font-size: 16.5px;
    color: var(--text-grey);
}

/* --- FAQ --- */
#fragen {
    border-top: 1px solid var(--line);
}
.faq-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 40px 72px;
    align-items: flex-start;
}
.faq-intro {
    flex: 1 1 300px;
    gap: 18px;
}
.faq-liste {
    flex: 2 1 520px;
    min-width: 0;
}

/* --- Kontakt --- */
#kontakt h2 {
    font-size: clamp(32px, 3.8vw, 46px);
}
.kontakt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
    gap: 48px 80px;
    align-items: start;
}
.kontakt-text {
    gap: 22px;
}
.kontakt-text > p {
    max-width: 30em;
}
.kontakt-person {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 10px;
}
.kontakt-person .avatar {
    width: 72px;
    height: 72px;
    border: 3px solid #4a6e46;
}
.kontakt-name {
    font-size: 21px;
}
.kontakt-tel {
    font-size: 20px;
    color: var(--white);
}


/* ============================================================
   11  EINBLENDEN BEIM SCROLLEN
   Element bekommt class="content transform transform-small".
   Der Observer in script.js setzt .aktiv, sobald es sichtbar wird.
   Namen sind fest: content / aktiv - nicht umbenennen.
============================================================ */
.content {
    opacity: 0;
    transition: opacity .8s ease, transform .8s ease;
}
.transform.transform-small  { transform: translateY(30px); }
.transform.transform-middle { transform: translateY(60px); }
.transform.transform-big    { transform: translateY(120px); }
.transform.transform-tilt   { transform: translateY(40px) rotate(-2deg); }
/* MUSS hinter den transform-Klassen stehen - gleiche Spezifitaet,
   sonst bleibt der Versatz nach dem Einblenden dauerhaft stehen. */
.content.aktiv {
    opacity: 1;
    transform: none;
}

/* Ohne JavaScript bleibt sonst die halbe Seite unsichtbar */
.no-js .content {
    opacity: 1;
    transform: none;
}


/* ============================================================
   12  SWIPER-BASIS
   Slider-spezifisches CSS und die Initialisierung kommen INLINE
   ins jeweilige Slider-Template - jeder Slider hat eigene
   breakpoints, slidesPerView, loop, autoplay.
============================================================ */
.swiper {
    width: 100%;
    overflow: hidden;
}
.swiper-pagination-bullet {
    background: var(--accent);
    opacity: .35;
}
.swiper-pagination-bullet-active {
    opacity: 1;
}
.swiper-button-next,
.swiper-button-prev {
    color: var(--accent);
}


/* ============================================================
   13  RESPONSIVE
============================================================ */
@media (min-width: 1200px) {
    #navi-big { display: block; }
    .burger   { display: none; }
}

@media (max-width: 1100px) {
    .triple-grid { grid-template-columns: repeat(2, 1fr); }
    .post-grid   { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .double-grid,
    .triple-grid,
    .post-grid {
        grid-template-columns: 1fr;
    }
    /* Ohne zwei Spalten braucht auch die Umkehrung nicht mehr zu greifen */
    .double-grid.reverse > *:first-child { order: 0; }
}



/* ============================================================
   14  BARRIEREFREIHEIT
============================================================ */
/* Sichtbarer Fokus - nie wegstylen */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 2px;
}

/* Sprunglink zum Inhalt - erst beim Tabben sichtbar */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
}
.skip-link:focus {
    left: 28px;
    top: 10px;
    z-index: 300;
    background: var(--black);
    color: var(--white);
    padding: 12px 20px;
}

/* Nur fuer Screenreader */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
    .content {
        opacity: 1;
        transform: none;
    }
}
