/*
Theme Name:   Praxis Dr. Ambs (Kadence Child)
Description:  Hausarztpraxis Dr. med. Manuela Ambs, Ihringen — ruhig, gut lesbar, ohne Schnickschnack. Parent: Kadence.
Author:       byrd GbR
Author URI:   https://byrd-software.de
Template:     kadence
Version:      0.2.0
Requires PHP: 8.1
Text Domain:  dr-ambs-theme
*/

/* Fonts lokal (DSGVO) — Quelle: sites/apps/dr-ambs/public/fonts */
@font-face { font-family: "Fraunces"; font-weight: 600; font-style: normal; font-display: swap; src: url("assets/fonts/fraunces-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 400; font-style: italic; font-display: swap; src: url("assets/fonts/fraunces-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url("assets/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }

/* Tokens (aus dem Payload-Entwurf, oklch → hex). Kadence-Palette:
   1 Petrol · 2 Petrol dunkel · 3 Tiefblau · 4 Text stark · 5 Text · 6 gedämpft · 7 Linie · 8 Tönung · 9 Grund */
:root {
	--da-petrol: var(--global-palette1, #095d6c);
	--da-petrol-dunkel: var(--global-palette2, #074a57);
	--da-tief: var(--global-palette3, #0f3544);
	--da-text-stark: var(--global-palette4, #18313f);
	--da-text: var(--global-palette5, #2a3f4b);
	--da-gedaempft: var(--global-palette6, #4b5e69);
	--da-linie: var(--global-palette7, #d5e1e1);
	--da-toenung: var(--global-palette8, #e7f4f5);
	--da-grund: var(--global-palette9, #fcfbf8);
	--da-sand: #a97c46;
	--da-notiz: #fbf3e1;
	--da-auf-tief: #e4edee;
	--da-auf-tief-gedaempft: #a6bcc0;
	--da-radius: 0.75rem;
	--da-font-display: "Fraunces", Georgia, serif;
	--da-font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--da-section-y: clamp(3rem, 2rem + 4vw, 5rem);
	--da-container: 1040px;
	--da-pad: clamp(1.25rem, 0.5rem + 3vw, 2.5rem);
	/* Äskulapstab — Listenzeichen wie auf der Alt-Site */
	--da-stab: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cline x1='12' y1='3' x2='12' y2='21'/%3E%3Cpath d='M17 8c0 3-10 3-10 6s10 3 10 6'/%3E%3Ccircle cx='17' cy='5.5' r='1.8'/%3E%3C/svg%3E");
}

body { background: var(--da-grund); color: var(--da-text); font-family: var(--da-font); font-size: 1.0625rem; line-height: 1.65; }
h1, h2, h3 { font-family: var(--da-font-display); font-weight: 600; color: var(--da-text-stark); letter-spacing: -0.01em; line-height: 1.15; text-wrap: balance; }
a { color: var(--da-petrol); text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--da-petrol); outline-offset: 2px; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Sections (Gruppe, volle Breite, Klasse da-section) — gegen Kadence-.single-content-Margins */
.entry-content > .wp-block-group.alignfull { margin-top: 0; margin-bottom: 0; }
/* .entry-content davor: schlägt Kadence „.entry-content .alignfull { padding: 0 }“ (sonst mobil kein Rand) */
.entry-content .da-section { padding-block: var(--da-section-y); padding-inline: var(--da-pad); }
.da-section > *, .single-content .da-section > * { max-width: var(--da-container); margin-inline: auto; }
.da-section.is-tint { background: var(--da-toenung); }
.single-content .da-section > *:last-child { margin-bottom: 0; }
.da-lead { font-size: 1.1875rem; color: var(--da-gedaempft); max-width: 38rem; }
.da-klein { font-size: 0.9rem; color: var(--da-gedaempft); }

/* Überschriften mit kurzem Strich darunter (Motiv der Alt-Site) */
.da-section h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); margin: 0 0 1.75rem; }
.da-section h2::after { content: ""; display: block; width: 2.5rem; height: 2px; margin-top: 0.6rem; background: var(--da-sand); }
.da-mitte { text-align: center; }
.da-mitte > *, .single-content .da-mitte > * { max-width: 42rem; }
.da-mitte h2::after { margin-inline: auto; }

/* Listen mit Äskulapstab */
.entry-content .da-liste { list-style: none; padding: 0; margin-block: 0; }
.da-liste li { position: relative; padding-left: 1.6rem; }
.da-liste li + li { margin-top: 0.45rem; }
.da-liste li::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 1em; height: 1em; background: var(--da-sand); -webkit-mask: var(--da-stab) center / contain no-repeat; mask: var(--da-stab) center / contain no-repeat; }
.da-spalten { gap: clamp(2rem, 6vw, 5rem) !important; }

/* Buttons */
.wp-block-button__link, .wp-element-button { background: var(--da-petrol); color: #fff; border-radius: 999px; padding: 0.75rem 1.4rem; font-weight: 500; }
.wp-block-button__link:hover { background: var(--da-petrol-dunkel); color: #fff; }
.da-btn-hell .wp-block-button__link { background: transparent; color: var(--da-petrol); box-shadow: inset 0 0 0 1.5px var(--da-petrol); }
.da-btn-hell .wp-block-button__link:hover { background: var(--da-toenung); color: var(--da-petrol-dunkel); }

/* Hero: ruhig, Äskulapstab als Signatur rechts */
.entry-content .da-hero { padding-block: clamp(3.5rem, 2rem + 6vw, 7rem); border-bottom: 1px solid var(--da-linie); }
.da-hero .wp-block-columns { gap: clamp(2rem, 6vw, 5rem); }
.da-hero h1 { font-size: clamp(2.4rem, 1.6rem + 3vw, 3.6rem); margin: 0 0 0.75rem; }
.da-hero .da-lead { font-size: 1.3rem; color: var(--da-text); margin-bottom: 1.25rem; }
.da-hero .wp-block-buttons { margin-top: 2rem; }
.da-zeichen { color: var(--da-petrol); opacity: 0.35; }
.da-zeichen svg { display: block; height: 15rem; width: auto; margin-inline: auto; }
@media (max-width: 781px) { .da-zeichen { display: none; } }

/* Aktuelles: Hinweis aus „Website-Infos“ als Listenpunkt */
.da-aktuelles .byrd-hinweis { background: var(--da-notiz); border: 0; border-left: 3px solid var(--da-sand); border-radius: 0 var(--da-radius) var(--da-radius) 0; color: var(--da-text-stark); padding: 1rem 1.25rem; margin-bottom: 1.25rem; }
.byrd-hinweis--banner { background: var(--da-tief) !important; color: var(--da-auf-tief) !important; }
.byrd-hinweis--banner a { color: #fff; }

/* Zeiten: zwei Tafeln wie auf der Alt-Site — Tag | vormittags | nachmittags */
.da-zeiten { gap: 1.5rem !important; }
.da-tafel { background: #fff; border-radius: var(--da-radius); padding: clamp(1.5rem, 3vw, 2.25rem); height: 100%; box-shadow: 0 1px 2px rgba(15, 53, 68, 0.06), 0 8px 24px -12px rgba(15, 53, 68, 0.18); }
.da-tafel h2 { font-size: 1.5rem; margin-bottom: 1.25rem; }
.byrd-zeiten__titel { display: none; }
.byrd-zeiten__zeile { display: grid; grid-template-columns: 4.25rem 1fr 1fr; gap: 0.5rem; padding: 0.6rem 0; border-color: var(--da-linie); font-variant-numeric: tabular-nums; }
.byrd-zeiten__zeile dt { color: var(--da-text-stark); font-weight: 600; }
.byrd-zeiten__zeile dd { display: contents; }
.byrd-zeiten__zeit + .byrd-zeiten__zeit::before { content: none; }
.byrd-zeiten__notiz { color: var(--da-gedaempft); margin-top: 1rem; opacity: 1; }

/* Notfall: dunkles Band, ohne Kästen */
.da-notfall { background: var(--da-tief); color: var(--da-auf-tief); }
.da-notfall h2, .da-notfall h3 { color: #fff; }
.da-notfall h3 { font-size: 1.3rem; margin: 0 0 0.75rem; }
.da-notfall .da-lead { color: var(--da-auf-tief); margin-bottom: 2.5rem; }
.da-notfall a { color: #fff; }
.da-notfall .da-liste li::before { background: var(--da-auf-tief-gedaempft); }

/* Kontakt */
.da-kontakt .wp-block-columns { gap: clamp(2rem, 6vw, 5rem); }
.da-kontakt p { margin-bottom: 0.75rem; }
@media (max-width: 781px) { .da-kontakt .wp-block-column:first-child { order: 2; } }

/* Kadence: Header/Footer */
.site-branding .site-title { font-family: var(--da-font-display); font-weight: 600; }
.site-main-header-wrap .site-header-row-container-inner { background: var(--da-grund); border-bottom: 1px solid var(--da-linie); }
.site-footer .site-footer-row-container-inner { background: var(--da-tief); color: var(--da-auf-tief-gedaempft); }
.site-footer a { color: var(--da-auf-tief); }

/* Mobil-Menü (Drawer auf Tiefblau): Fokus hell statt Petrol */
#mobile-drawer :focus-visible { outline-color: var(--da-auf-tief); }
