/*
Theme Name:   Café Bistro Mirage (Kadence Child)
Description:  Café Bistro Bar Mirage, Bötzingen — nah an der Alt-Site: Anthrazit, Weiß, Palmgrün aus dem Logo. Parent: Kadence.
Author:       byrd GbR
Author URI:   https://byrd-software.de
Template:     kadence
Version:      0.2.0
Requires PHP: 8.1
Text Domain:  mirage-boetzingen-theme
*/

/* Fonts lokal (DSGVO) — Quelle: sites/apps/mirage-boetzingen/public/fonts */
@font-face { font-family: "Bricolage Grotesque"; font-weight: 600; font-display: swap; src: url("assets/fonts/bricolage-grotesque-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-display: swap; src: url("assets/fonts/bricolage-grotesque-latin-700-normal.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 (Alt-Site: Anthrazit #242427/#303033, Buttons im Palmgrün des Logos). Kadence-Palette:
   1 Palmgrün · 2 Palmgrün hell · 3 Footer · 4 Weiß · 5 Text · 6 gedämpft · 7 Linie · 8 Fläche · 9 Grund */
:root {
	--mb-gruen: var(--global-palette1, #08803a);
	--mb-gruen-hell: var(--global-palette2, #5ccf86);
	--mb-footer: var(--global-palette3, #1b1b1d);
	--mb-weiss: var(--global-palette4, #ffffff);
	--mb-text: var(--global-palette5, #ecebe8);
	--mb-gedaempft: var(--global-palette6, #aaa7a2);
	--mb-linie: var(--global-palette7, #3f3f43);
	--mb-flaeche: var(--global-palette8, #2e2e31);
	--mb-grund: var(--global-palette9, #242427);
	--mb-radius: 4px;
	--mb-font-display: "Bricolage Grotesque", "Arial Black", sans-serif;
	--mb-font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--mb-section-y: clamp(3.5rem, 2.5rem + 4vw, 6rem);
	--mb-container: 1100px;
	--mb-schmal: 40rem;
	--mb-pad: clamp(1.25rem, 0.5rem + 3vw, 2.5rem);
	color-scheme: dark;
}

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

/* Sections: abwechselnd Grund/Fläche wie auf der Alt-Site, Überschriften mittig */
.entry-content > .wp-block-group.alignfull, .entry-content > .wp-block-cover.alignfull { margin-top: 0; margin-bottom: 0; }
/* .entry-content davor: schlägt Kadence „.entry-content .alignfull { padding: 0 }“ (sonst mobil kein Rand) */
.entry-content .mb-section { padding-block: var(--mb-section-y); padding-inline: var(--mb-pad); }
.mb-section > *, .single-content .mb-section > * { max-width: var(--mb-container); margin-inline: auto; }
.mb-section.is-flaeche { background: var(--mb-flaeche); }
.single-content .mb-section > *:last-child { margin-bottom: 0; }
.mb-section > h2 { text-align: center; margin-top: 0; margin-bottom: 1.5rem; }
.mb-schmal { text-align: center; }
.mb-schmal > *, .single-content .mb-schmal > * { max-width: var(--mb-schmal); }
.mb-lead { font-size: 1.1875rem; }

/* Buttons: eckig-solide wie die Alt-Site, Palmgrün mit weißer Schrift (AA) */
.wp-block-button__link, .wp-element-button { background: var(--mb-gruen); color: #fff; border-radius: var(--mb-radius); padding: 0.85rem 1.75rem; font-weight: 500; letter-spacing: 0.01em; text-decoration: none; }
.wp-block-button__link:hover, .wp-element-button:hover { background: #0a9445; color: #fff; }
/* Shortcode liefert Link + „Stand“ ohne Hülle → Raster: je Spalte Knopf, darunter Stand */
.mb-knoepfe { display: grid; grid-template-rows: auto auto; grid-auto-flow: column; justify-content: center; justify-items: center; gap: 0.5rem 1.25rem; margin-top: 2rem; }
.mb-knoepfe > * { margin: 0 !important; }
.byrd-datei__stand { color: var(--mb-gedaempft); font-size: 0.85rem; }
@media (max-width: 420px) { .mb-knoepfe .wp-element-button { padding-inline: 1.1rem; } }
.mb-hero .byrd-datei__stand { display: none; }
.mb-hero .mb-knoepfe { grid-template-rows: auto; }

/* Hero: Gastraum unter Schleier, zentriert wie die Alt-Site */
/* volle Bildschirmhöhe abzüglich Kadence-Header */
.wp-block-cover.mb-hero { min-height: calc(100svh - var(--mb-header-h, 88px)) !important; padding: 6rem var(--mb-pad); text-align: center; }
@media (max-width: 1024px) { :root { --mb-header-h: 70px; } }
.mb-hero .wp-block-cover__background { opacity: 1 !important; background: rgba(20, 20, 22, 0.62) !important; }
.mb-hero .wp-block-cover__inner-container { max-width: 44rem; }
.mb-hero h1 { font-size: clamp(2.5rem, 1.6rem + 3.5vw, 4rem); margin: 0 0 1rem; }
.mb-hero .mb-lead { color: #e6e4df; margin-inline: auto; max-width: 34rem; }

/* Hinweis: schlichter Text, kein Kasten */
.byrd-hinweis:not(.byrd-hinweis--banner) { background: none !important; border: 0 !important; padding: 0 !important; color: var(--mb-text); }
.byrd-hinweis__inner > * + * { margin-top: 0.75rem; }
.byrd-hinweis--banner { background: var(--mb-gruen) !important; color: #fff !important; border-left: 0 !important; border-radius: 0; }
.byrd-hinweis--banner a { color: #fff; }

/* Wer sind wir */
.wp-block-media-text.mb-bildtext { gap: clamp(2rem, 6vw, 5rem); grid-template-columns: 5fr 6fr !important; }
.mb-bildtext .wp-block-media-text__content { padding: 0; }
.mb-bildtext h2 { margin-top: 0; }
.mb-bildtext img { border-radius: var(--mb-radius); aspect-ratio: 4 / 5; object-fit: cover; }
.mb-unterschrift { font-family: var(--mb-font-display); font-size: 1.25rem; color: var(--mb-weiss); margin-top: 1.5rem; }
@media (max-width: 781px) {
	.wp-block-media-text.mb-bildtext { grid-template-columns: 1fr !important; }
	.mb-bildtext .wp-block-media-text__media { grid-row: 1 !important; grid-column: 1 !important; }
	.mb-bildtext .wp-block-media-text__content { grid-row: 2 !important; grid-column: 1 !important; }
	.mb-bildtext img { aspect-ratio: 4 / 3; }
}

/* Galerie (gap nicht anfassen — Core rechnet die Spalten damit) */
.mb-galerie .wp-block-image img { border-radius: var(--mb-radius); aspect-ratio: 4 / 3; object-fit: cover; cursor: zoom-in; }
/* Lightbox (Core „Bei Klick vergrößern“) im Anthrazit der Seite */
.wp-lightbox-overlay .scrim { background-color: var(--mb-grund) !important; opacity: 0.96; }
.wp-lightbox-overlay .close-button { color: var(--mb-weiss); }

/* Öffnungszeiten: Tag links, Zeiten rechts, Fenster untereinander */
.byrd-zeiten { text-align: left; }
.byrd-zeiten__titel { display: none; }
.byrd-zeiten__zeile { padding: 0.8rem 0; border-color: var(--mb-linie); align-items: baseline; }
.byrd-zeiten__zeile dt { color: var(--mb-weiss); font-weight: 500; }
.byrd-zeiten__zeile dd { font-variant-numeric: tabular-nums; display: flex; flex-direction: column; }
.byrd-zeiten__zeit + .byrd-zeiten__zeit::before { content: none; }
.byrd-zeiten__notiz { color: var(--mb-gedaempft); text-align: center; margin-top: 1rem; }
.mb-partner { display: flex; flex-wrap: wrap; gap: 2.5rem; align-items: center; justify-content: center; margin-top: 3rem !important; }
.mb-partner img { height: 40px; width: auto; filter: grayscale(1) brightness(1.7); opacity: 0.7; }

/* Newsletter */
#newsletter .tnp-subscription { max-width: 30rem; margin: 1.5rem auto 0; text-align: left; }
.tnp-subscription label { color: var(--mb-text); }
.tnp-subscription input[type="email"], .tnp-subscription input[type="text"] { background: var(--mb-grund); color: var(--mb-text); border: 1px solid var(--mb-linie); border-radius: var(--mb-radius); }
.tnp .tnp-submit, .tnp-subscription .tnp-submit { background: var(--mb-gruen) !important; color: #fff !important; border-radius: var(--mb-radius); font-weight: 500; }

/* Kontakt */
.mb-kontakt .wp-block-columns { gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.mb-kontakt h2 { margin-top: 0; }
.mb-kontakt p { margin-bottom: 1rem; }

/* Kadence: Header/Footer dunkel */
.site-main-header-wrap .site-header-row-container-inner { background: var(--mb-grund); border-bottom: 1px solid var(--mb-linie); }
.main-navigation a { color: var(--mb-text); }
.site-footer .site-footer-row-container-inner { background: var(--mb-footer); color: var(--mb-gedaempft); }
.site-footer a { color: var(--mb-text); }
