/*
Theme Name: Osteopathie Hankl
Theme URI: https://osteopathie-hankl.de/
Description: Child-Theme von Twenty Twenty-Five für die Osteopathie-Praxis Ahu Hankl in Bielefeld. Block-Theme: alles im Website-Editor bearbeitbar, Schriften lokal, keine Verbindung zu Drittservern.
Author: Walk3
Template: twentytwentyfive
Version: 1.0.15
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: osteopathie-hankl
*/

/* Farben, Schriften und Abstände kommen aus theme.json (Design → Stile).
   Hier stehen nur die Blockstile, die im Editor unter „Stile“ auswählbar sind,
   und ein paar Feinheiten, die theme.json nicht ausdrücken kann. */

:root {
  --hankl-radius: var(--wp--custom--radius, 18px);
  --hankl-shadow: var(--wp--custom--shadow, 0 12px 32px -12px rgba(20, 40, 34, .18));
}

body { -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { text-wrap: balance; margin-block-end: 0; }
img { height: auto; }
:focus-visible { outline: 2px solid var(--wp--preset--color--accent-strong); outline-offset: 3px; border-radius: 6px; }
html { scroll-padding-top: 90px; }

/* ---------- Kopfzeile ---------- */
.hankl-kopf {
  border-bottom: 1px solid var(--wp--preset--color--line);
  background: color-mix(in srgb, var(--wp--preset--color--base) 88%, transparent) !important;
  backdrop-filter: blur(12px);
  z-index: 30;
}
.hankl-logo { font-family: var(--wp--preset--font-family--display); font-size: clamp(1.5rem, 3vw, 1.9rem); line-height: 1; white-space: nowrap; margin: 0; }
.hankl-logo a { text-decoration: none; color: var(--wp--preset--color--contrast); }
.hankl-logo em { font-style: italic; color: var(--wp--preset--color--accent-strong); }
/* Kursiv in einer H1 wird zur Akzentfarbe („Ahu *Hankl*“), so wie im Logo. */
h1.wp-block-heading em { color: var(--wp--preset--color--accent-strong); }
.hankl-kopf .wp-block-navigation a { text-decoration: none; color: var(--wp--preset--color--muted); }
.hankl-kopf .wp-block-navigation a:hover { color: var(--wp--preset--color--contrast); }
.hankl-kopf-cta .wp-block-button__link { white-space: nowrap; }
@media (max-width: 600px) {
  /* Kein Blur in der Handy-Breite: backdrop-filter macht die klebende Kopfzeile zum Bezugsrahmen
     für das fest positionierte Menü-Overlay (dann nur 58 px hoch, Menü abgeschnitten) – Livegang 28.10.2026. */
  .hankl-kopf { backdrop-filter: none; }
  .hankl-kopf-cta .wp-block-button__link { font-size: .86rem; padding: .75em 1em; }
  .hankl-logo { font-size: 1.35rem; }
}

/* ---------- Vorzeile (Absatz-Stil) ---------- */
.is-style-vorzeile {
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--wp--preset--color--accent-strong); margin-bottom: .6rem;
}
.has-accent-strong-background-color .is-style-vorzeile { color: inherit; opacity: .75; }
.hankl-lead { max-width: 58ch; }
/* Vertikaler Rhythmus wie im Mockup: Vorzeile dicht an der Überschrift, Einleitung mit etwas Luft. */
.is-style-vorzeile + .wp-block-heading { margin-block-start: .5rem; }
.wp-block-heading + .hankl-lead { margin-block-start: .9rem; }
.hankl-abschnittkopf { margin-bottom: clamp(28px, 4vw, 48px) !important; }
.is-style-karte .is-style-vorzeile + .wp-block-heading { margin-block-start: .35rem; }
.is-style-karte .wp-block-heading + p { margin-block-start: .75rem; }

/* ---------- Listen-Stile ---------- */
.wp-block-list.is-style-pillen { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin-block-end: 0; }
.wp-block-list.is-style-pillen li {
  font-size: .86rem; font-weight: 500; background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--line); padding: .5em .9em; border-radius: 999px; margin: 0;
}
.wp-block-list.is-style-pillen li strong { color: var(--wp--preset--color--accent-strong); }
.has-accent-soft-background-color .wp-block-list.is-style-pillen li,
.is-style-karte .wp-block-list.is-style-pillen li { background: var(--wp--preset--color--accent-soft); border-color: transparent; font-size: .82rem; }

.wp-block-list.is-style-haken { list-style: none; padding: 0; margin-block-end: 0; display: grid; gap: 12px; }
.wp-block-list.is-style-haken li { position: relative; padding-left: 34px; margin: 0; }
.wp-block-list.is-style-haken li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--wp--preset--color--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D7560' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/13px no-repeat;
}

.wp-block-list.is-style-werdegang { list-style: none; padding: 0; margin-block-end: 0; border-left: 2px solid var(--wp--preset--color--line); }
.wp-block-list.is-style-werdegang li { position: relative; padding: 0 0 22px 24px; margin: 0; color: var(--wp--preset--color--muted); font-size: .95rem; }
.wp-block-list.is-style-werdegang li:last-child { padding-bottom: 0; }
.wp-block-list.is-style-werdegang li::before {
  content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--wp--preset--color--surface); border: 2px solid var(--wp--preset--color--accent-strong);
}
.wp-block-list.is-style-werdegang li:last-child::before { background: var(--wp--preset--color--accent-strong); }
.wp-block-list.is-style-werdegang li strong { color: var(--wp--preset--color--contrast); font-size: 1.0625rem; }

/* ---------- Karte (Gruppen-Stil) ---------- */
.wp-block-group.is-style-karte {
  border: 1px solid var(--wp--preset--color--line); border-radius: var(--hankl-radius); overflow: hidden;
}
.wp-block-group.is-style-karte > .wp-block-image { margin-top: 0; }
.wp-block-group.is-style-karte > .wp-block-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 0; }
.wp-block-group.is-style-karte > .wp-block-image figcaption { padding: 0 28px; }
.wp-block-group.is-style-karte .wp-block-heading { font-size: 1.45rem; }
.hankl-notiz { box-shadow: var(--hankl-shadow); position: relative; z-index: 1; }
.has-accent-strong-background-color .wp-block-group.is-style-karte { border-color: color-mix(in srgb, var(--wp--preset--color--on-accent) 30%, transparent); }

/* ---------- Schritte mit großer Nummer ---------- */
.hankl-schritt-nr {
  font-family: var(--wp--preset--font-family--display); font-size: 2.6rem; line-height: 1;
  color: var(--wp--preset--color--accent); margin: 0 0 .25rem;
}

/* ---------- Bilder ---------- */
.wp-block-image img { border-radius: var(--hankl-radius); }
/* Porträt rechtsbündig auf der Fluchtlinie des Rasters; die Notiz-Karte überlappt unten links. */
.wp-block-image.is-style-portraetbogen { position: relative; margin-inline: auto 0; max-width: 440px; }
.hankl-hero .hankl-notiz { width: 300px; max-width: 100%; margin-left: auto; margin-right: 140px; margin-top: -54px; }
.wp-block-image.is-style-portraetbogen img {
  border-radius: 220px 220px var(--hankl-radius) var(--hankl-radius); aspect-ratio: 4 / 5; object-fit: cover; object-position: 45% 18%; width: 100%;
}
.wp-block-image.is-style-portraetbogen::before {
  content: ""; position: absolute; inset: -18px 18px auto -18px; height: 100%;
  border-radius: 220px 220px var(--hankl-radius) var(--hankl-radius); background: var(--wp--preset--color--accent); opacity: .55; z-index: -1;
}
.wp-block-image.is-style-portraetbogen figcaption { text-align: left; }
.wp-block-image figcaption.wp-element-caption { font-size: .78rem; color: var(--wp--preset--color--muted); letter-spacing: .04em; text-transform: uppercase; margin-top: .5rem; }
.wp-block-image.is-style-rounded img { border-radius: 50%; }
/* KI-Kennzeichnung (EU AI Act Art. 50): Der Link „Mit KI erstellt“ in der Bildunterschrift wird als
   anklickbare Plakette oben links auf dem Bild gezeigt; im Titelbild (Cover) steht er als eigener Absatz. */
.wp-block-image.hankl-ki { position: relative; }
a.hankl-ki-link {
  position: absolute; top: 12px; left: 12px; z-index: 2; display: inline-block; padding: .4em .8em;
  border-radius: 999px; background: rgba(255,255,255,.92); color: var(--wp--preset--color--contrast);
  font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1.2;
  text-decoration: none; box-shadow: 0 1px 4px rgba(0,0,0,.18);
}
a.hankl-ki-link:hover, a.hankl-ki-link:focus-visible { background: #fff; text-decoration: underline; }
.wp-block-cover.hankl-ki .hankl-ki-absatz { margin: 0 0 .75rem; }
.wp-block-cover.hankl-ki .hankl-ki-absatz a.hankl-ki-link { position: static; }
/* Foto neben der Kontaktkarte: gleiche Höhe wie die Karte statt Hochformat in voller Länge. */
#kontakt .wp-block-columns .wp-block-image img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.wp-block-cover { border-radius: 0; }
.wp-block-cover .wp-block-cover__image-background { border-radius: 0; }
/* Text im Fotoband auf der 1180-px-Fluchtlinie, Lesebreite wie im Mockup */
.wp-block-cover > .wp-block-cover__inner-container { width: 100% !important; max-width: 1180px; margin: 0 auto !important; }
.wp-block-cover .wp-block-cover__inner-container > .hankl-fotoband-text.hankl-fotoband-text { margin-left: 0 !important; max-width: 1180px !important; }
.hankl-fotoband-text > * { max-width: 560px !important; margin-left: 0 !important; }

/* ---------- Schaltflächen ---------- */
.wp-element-button, .wp-block-button__link { transition: filter .2s, transform .15s; }
.wp-element-button:hover, .wp-block-button__link:hover { filter: brightness(1.08); }
.wp-element-button:active { transform: scale(.98); }
.wp-block-button.is-style-outline .wp-block-button__link {
  background: var(--wp--preset--color--surface); color: var(--wp--preset--color--contrast);
  border: 1.5px solid var(--wp--preset--color--line);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover { border-color: var(--wp--preset--color--accent-strong); filter: none; }
.wp-block-button.is-style-hell .wp-block-button__link { background: var(--wp--preset--color--on-accent); color: var(--wp--preset--color--accent-strong); }
.wp-block-button.is-style-hell .wp-block-button__link:hover { filter: brightness(.96); }

/* ---------- Farbige Bänder ---------- */
.has-accent-strong-background-color a:not(.wp-block-button__link) { color: inherit; }
.has-accent-strong-background-color .has-muted-color { color: inherit !important; opacity: .85; }
.hankl-cta { border-radius: var(--hankl-radius); }
.hankl-cta .wp-block-heading { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.hankl-teaser { border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--on-accent) 30%, transparent); padding-top: 32px; }

/* ---------- Häufige Fragen ---------- */
.hankl-faq { display: grid; gap: 10px; }
.hankl-faq .wp-block-details { margin: 0; }
.wp-block-details summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--wp--preset--color--accent-strong); transition: transform .2s; }
.wp-block-details[open] summary::after { transform: rotate(45deg); }
.wp-block-details > :not(summary) { color: var(--wp--preset--color--muted); max-width: 70ch; margin-top: 0; padding-bottom: 16px; }

/* ---------- Preisliste (Tabellen-Stil) ---------- */
.wp-block-table.is-style-preisliste table { table-layout: auto; width: 100%; border-collapse: collapse; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: var(--hankl-radius); overflow: hidden; }
.wp-block-table.is-style-preisliste td { border: 0; border-bottom: 1px solid var(--wp--preset--color--line); padding: 18px 24px; vertical-align: middle; }
.wp-block-table.is-style-preisliste tr:last-child td { border-bottom: 0; }
.wp-block-table.is-style-preisliste td:last-child { font-family: var(--wp--preset--font-family--display); font-size: 1.7rem; white-space: nowrap; text-align: right; width: 1%; }
.wp-block-table.is-style-preisliste td:first-child { color: var(--wp--preset--color--muted); font-size: .9rem; }
.wp-block-table.is-style-preisliste td strong { display: block; color: var(--wp--preset--color--contrast); font-size: 1.05rem; }
.wp-block-table.is-style-preisliste td:last-child { color: var(--wp--preset--color--contrast); }
@media (max-width: 600px) {
  .wp-block-table.is-style-preisliste td { padding: 14px 12px; }
  .wp-block-table.is-style-preisliste td:last-child { font-size: 1.3rem; padding-left: 4px; }
  .wp-block-table.is-style-preisliste td strong { font-size: 1rem; }
  .wp-block-table.is-style-preisliste td:first-child { font-size: .82rem; }
}

/* ---------- Zyklus-Leiste ---------- */
.hankl-zyklus .wp-block-columns { gap: 0; border-radius: 8px; overflow: hidden; }
.hankl-zyklus .wp-block-column p { font-size: .72rem; font-weight: 600; text-align: center; white-space: nowrap; overflow: hidden; margin: 0; padding: 9px 4px; }

/* ---------- Offene Angaben (Platzhalter) ---------- */
mark.has-inline-color { padding: 0 .15em; border-radius: 3px; border-bottom: 1.5px dashed var(--wp--preset--color--accent-strong); color: inherit; }
.hankl-hinweis { border-radius: 10px; font-size: .92rem; }

/* ---------- Fußzeile ---------- */
.hankl-fuss { border-top: 1px solid var(--wp--preset--color--line); font-size: .9rem; color: var(--wp--preset--color--muted); }
.hankl-fuss .wp-block-navigation a { text-decoration: none; color: var(--wp--preset--color--muted); }
.hankl-fuss .wp-block-navigation a:hover { color: var(--wp--preset--color--contrast); }
.hankl-fuss .hankl-logo { font-size: 1.6rem; }

/* ---------- Kleine Bildschirme ---------- */
/* Raster mit fester Spaltenzahl (Karten, Schritte) werden auf dem Handy untereinander gestellt. */
@media (max-width: 781px) {
  .wp-block-group.is-layout-grid { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (max-width: 781px) {
  .wp-block-image.is-style-portraetbogen { max-width: min(420px, 88%); margin-inline: auto; margin-top: 18px; }
  .hankl-hero .hankl-notiz { margin-inline: auto; margin-top: -40px; width: min(300px, 80%); }
  /* Auf dem Handy steht das Porträt vor dem Text, wie im Mockup. */
  .hankl-hero > .wp-block-column:last-child { order: -1; }
}

/* ---------- Rechtstexte (Impressum, Datenschutz) ---------- */
/* Klare Gliederung: Abschnitte mit Luft, Überschrift dicht am folgenden Text. */
.hankl-recht h2.wp-block-heading { margin-block-start: 3rem; }
.hankl-recht h3.wp-block-heading { margin-block-start: 2rem; }
.hankl-recht h4.wp-block-heading { margin-block-start: 1.5rem; }
.hankl-recht h1.wp-block-heading + * { margin-block-start: 1.5rem; }
.hankl-recht .wp-block-heading + p,
.hankl-recht .wp-block-heading + .wp-block-list { margin-block-start: .6rem; }
.hankl-recht .wp-block-list li { color: var(--wp--preset--color--muted); }
.hankl-recht a { overflow-wrap: anywhere; }

/* ---------- Borlabs Cookie: Reste der Standardfarbe (Fokus-Ring, Kontrollkästchen) ---------- */
/* Farben und Knöpfe selbst stehen in Borlabs → Dialog & Widget → Erscheinungsbild. */
[class*="brlbs-cmpnt"] { --brlbs-tw-ring-color: var(--wp--preset--color--accent-strong); }
[class*="brlbs-cmpnt"] input[type="checkbox"] { accent-color: var(--wp--preset--color--accent-strong); color: var(--wp--preset--color--accent-strong); }
