/*
Theme Name:   MallorcaZeit
Theme URI:    https://mallorcazeit.de/
Description:  Schlankes Block-Theme für MallorcaZeit (Child von Twenty Twenty-Five), Basis Kanarenzeit-Theme. Mittelmeer-Blau, Sonnengelb, Sandstein, Oliv. Barlow Semi Condensed + Nunito Sans (lokal). Monatsleiste, Wetter-Kacheln, Hotel-Karten, Karte nach Klick, Teilen ohne Fremdskripte.
Author:       MallorcaZeit
Template:     twentytwentyfive
Version:      1.0.3
Requires at least: 6.6
Requires PHP: 7.4
License:      GPL-2.0-or-later
Text Domain:  mallorcazeit
*/

/* ==========================================================================
   Grundlagen (Farben aus theme.json, Werte wie Stil-Konzept.md)
   ========================================================================== */
:root {
	--mz-weiss: var(--wp--preset--color--base);
	--mz-sand: var(--wp--preset--color--sand);
	--mz-linie: var(--wp--preset--color--linie);
	--mz-lava: var(--wp--preset--color--contrast);
	--mz-leise: var(--wp--preset--color--leise);
	--mz-atlantik: var(--wp--preset--color--atlantik);
	--mz-atlantik-dunkel: var(--wp--preset--color--atlantik-dunkel);
	--mz-atlantik-hell: var(--wp--preset--color--atlantik-hell);
	--mz-knopf: var(--wp--preset--color--terrakotta);
	--mz-knopf-hover: var(--wp--preset--color--terrakotta-dunkel);
	--mz-sonne-hell: var(--wp--preset--color--sonne-hell);
	--mz-oliv: var(--wp--preset--color--oliv);
	--mz-oliv-dunkel: var(--wp--preset--color--oliv-dunkel);
	--mz-oliv-hell: var(--wp--preset--color--oliv-hell);
	--mz-titel: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
	--mz-rund: 14px;
	--mz-schatten: 0 1px 3px rgba(18, 63, 107, .08);
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
iframe, video, embed { max-width: 100%; }
/* lange Adressen als Linktext umbrechen, sonst ragt die Seite auf dem Handy über den Rand */
.wp-block-post-content { overflow-wrap: break-word; }
:where(h1, h2, h3, h4) { scroll-margin-top: 20px; }

/* Abstände zwischen Kopf, Inhalt und Fuß (Twenty Twenty-Five setzt sonst blockGap) */
.wp-site-blocks > * { margin-block-start: 0; }

.mz-wrap { max-width: 1160px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; box-sizing: content-box; }
.mz-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mz-leise { color: var(--mz-leise); font-size: .95rem; }
.mz-vorspann { color: var(--mz-leise); max-width: 640px; }
.mz-einleitung { font-size: 1.15rem; }
.mz-mehr a { font-weight: 700; }

/* Kleine Zeile mit Farbpunkt („Teneriffa · Strände“) */
.mz-marke { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--mz-leise); margin: 0 0 6px; }
.mz-marke i { width: 9px; height: 9px; border-radius: 50%; background: var(--farbe, var(--mz-atlantik)); flex: 0 0 auto; }

/* Buttons außerhalb von Blöcken (Startbild, Suche) */
.mz-knopf { display: inline-block; background: var(--mz-knopf); color: var(--mz-atlantik); font: inherit; font-weight: 800; text-decoration: none; padding: 12px 22px; border-radius: 12px; border: 0; cursor: pointer; line-height: 1.3; }
.mz-knopf:hover, .mz-knopf:focus { background: var(--mz-knopf-hover); color: var(--mz-atlantik); }
.mz-knopf--zweit { background: transparent; color: var(--mz-atlantik); box-shadow: inset 0 0 0 2px var(--mz-atlantik); }
.mz-knopf--zweit:hover, .mz-knopf--zweit:focus { background: var(--mz-atlantik); color: #fff; }
.mz-held .mz-knopf--zweit { color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.mz-held .mz-knopf--zweit:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.mz-knoepfe { display: flex; gap: 12px; flex-wrap: wrap; }

/* Block-Button „Nur Rahmen“ */
.wp-block-button.is-style-zweit .wp-block-button__link { background: transparent; color: var(--mz-atlantik); box-shadow: inset 0 0 0 2px var(--mz-atlantik); }
.wp-block-button.is-style-zweit .wp-block-button__link:hover { background: var(--mz-atlantik); color: #fff; }

/* ==========================================================================
   Kopf und Menü
   ========================================================================== */
.mz-kopf { background: var(--mz-atlantik); color: #fff; position: relative; z-index: 30; }
.mz-kopf__innen { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.mz-logo { display: block; flex: 0 0 auto; }
.mz-logo img { display: block; width: 190px; height: auto; }
.mz-menue { display: flex; align-items: center; gap: 4px; margin-left: auto; font-weight: 700; font-size: .95rem; }
.mz-menue > ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.mz-menue > ul > li { position: relative; }
.mz-menue a, .mz-menue summary { color: #fff; text-decoration: none; display: flex; align-items: center; gap: 7px; padding: 10px; border-radius: 10px; cursor: pointer; }
.mz-menue a:hover, .mz-menue summary:hover, .mz-menue details[open] > summary { background: rgba(255, 255, 255, .1); color: #fff; }
.mz-menue summary { list-style: none; }
.mz-menue summary::-webkit-details-marker { display: none; }
.mz-menue .mz-auf:not(.mz-suche) > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: -4px 0 0 3px; }
.mz-auf { position: relative; }
.mz-aufklapp { position: absolute; right: 0; top: calc(100% + 8px); background: var(--mz-weiss); color: var(--mz-lava); border-radius: var(--mz-rund); box-shadow: 0 12px 34px rgba(10, 40, 50, .22); padding: 18px; width: min(680px, 92vw); display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 18px; }
.mz-menue .mz-aufklapp a { color: var(--mz-lava); padding: 9px 10px; align-items: flex-start; }
.mz-menue .mz-aufklapp a:hover { background: var(--mz-sand); color: var(--mz-lava); }
.mz-aufklapp a span { display: block; }
.mz-aufklapp a small { display: block; color: var(--mz-leise); font-weight: 500; font-size: .85rem; line-height: 1.35; }
.mz-suche { margin-left: 6px; }
.mz-suche > summary { border: 1px solid rgba(255, 255, 255, .35); }
.mz-suche svg, .mz-themen svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.mz-aufklapp--suche { width: min(420px, 92vw); grid-template-columns: 1fr; }
.mz-suchfeld { display: flex; gap: 8px; }
.mz-suchfeld input { flex: 1 1 auto; min-width: 0; font: inherit; padding: 11px 14px; border: 1px solid var(--mz-linie); border-radius: 12px; }
.mz-burger { display: none; }

/* Inselleiste unter dem Kopf: alle 7 Inseln immer sichtbar */
.mz-inselleiste { background: var(--mz-atlantik); border-top: 1px solid rgba(255, 255, 255, .08); }
.mz-inselleiste ul { display: flex; justify-content: space-between; gap: 4px; list-style: none; margin: 0 auto; padding: 0 20px; max-width: 1160px; overflow-x: auto; scrollbar-width: none; }
.mz-inselleiste a { display: flex; align-items: center; gap: 7px; color: #fff; text-decoration: none; font-weight: 700; font-size: .92rem; padding: 11px 8px; white-space: nowrap; border-bottom: 3px solid transparent; }
.mz-inselleiste a:hover, .mz-inselleiste a[aria-current] { border-bottom-color: var(--farbe); color: #fff; }
.mz-inselleiste i, .mz-burger-flaeche i, .mz-fuss i, .mz-leiste-inseln i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--farbe); flex: 0 0 auto; }

@media (max-width: 900px) {
	.mz-kopf__innen { min-height: 64px; }
	.mz-logo img { width: 150px; }
	.mz-menue { display: none; }
	.mz-burger { display: block; margin-left: auto; }
	.mz-burger > summary { list-style: none; cursor: pointer; color: #fff; display: flex; align-items: center; gap: 8px; font-weight: 700; padding: 9px 12px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 10px; }
	.mz-burger > summary::-webkit-details-marker { display: none; }
	.mz-burger > summary b { display: block; width: 20px; height: 2px; background: #fff; box-shadow: 0 6px 0 #fff, 0 -6px 0 #fff; }
	.mz-burger[open] > summary b { box-shadow: none; background: transparent; position: relative; }
	.mz-burger[open] > summary b::before, .mz-burger[open] > summary b::after { content: ""; position: absolute; left: 0; top: 0; width: 20px; height: 2px; background: #fff; transform: rotate(45deg); }
	.mz-burger[open] > summary b::after { transform: rotate(-45deg); }
	.mz-burger-flaeche { position: absolute; left: 0; right: 0; top: 100%; background: var(--mz-weiss); color: var(--mz-lava); padding: 16px 20px 22px; box-shadow: 0 14px 30px rgba(10, 40, 50, .25); max-height: calc(100vh - 64px); overflow: auto; }
	.mz-burger-flaeche p { margin: 14px 0 4px; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--mz-leise); }
	.mz-burger-flaeche ul { list-style: none; margin: 0; padding: 0; }
	.mz-burger-flaeche a { display: flex; align-items: center; gap: 10px; padding: 11px 4px; color: var(--mz-lava); text-decoration: none; font-weight: 700; border-bottom: 1px solid var(--mz-linie); }
	.mz-inselleiste ul { justify-content: flex-start; }
}

/* ==========================================================================
   Startbild (Startseite und Inselseite)
   ========================================================================== */
.mz-held { position: relative; min-height: min(70vh, 560px); display: flex; align-items: flex-end; color: #fff; background: var(--mz-atlantik-dunkel); overflow: hidden; }
.mz-held__bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mz-held::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 32, 56, 0) 25%, rgba(10, 32, 56, .8) 100%); }
.mz-held .mz-wrap { position: relative; z-index: 1; padding-top: 60px; padding-bottom: 44px; width: 100%; }
.mz-held h1, .mz-held h2 { color: #fff; max-width: 760px; margin: 0 0 .3em; font-size: var(--wp--preset--font-size--xx-large); }
.mz-held p { font-size: 1.2rem; max-width: 580px; margin: 0 0 22px; }
.mz-held .mz-marke { color: #fff; font-size: .85rem; }
.mz-held--klein { min-height: 380px; }
.mz-held--klein .mz-wrap { padding-bottom: 64px; }
/* Startbild im Seiteninhalt (Shortcode) über die ganze Breite, wie „volle Breite“ */
.is-layout-constrained > .mz-held { max-width: none !important; margin-left: calc(var(--wp--style--root--padding-left, 20px) * -1) !important; margin-right: calc(var(--wp--style--root--padding-right, 20px) * -1) !important; }
.mz-volle-breite > .wp-block-post-content > .mz-held:first-child { margin-top: 0; }

/* ==========================================================================
   Abschnitte (Startseite, Inselseite)
   ========================================================================== */
.mz-abschnitt { padding-top: 56px; padding-bottom: 56px; }
.mz-abschnitt.alignwide { padding-top: 40px; padding-bottom: 40px; }
.mz-weiss { background: var(--mz-weiss); }
.mz-abschnitt h2:first-child { margin-top: 0; }
.wp-block-post-content > .mz-abschnitt { margin-block-start: 0; }
.mz-volle-breite, .mz-inselseite { padding-bottom: 20px; }

/* ==========================================================================
   Karten
   ========================================================================== */
.mz-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; margin-top: 26px; padding: 0; list-style: none; }
.mz-raster--drei { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.mz-raster--vier { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.mz-karte { background: var(--mz-weiss); border-radius: var(--mz-rund); overflow: hidden; box-shadow: var(--mz-schatten); text-decoration: none; color: inherit; display: flex; flex-direction: column; border-top: 5px solid var(--farbe, var(--mz-atlantik)); transition: transform .15s, box-shadow .15s; }
a.mz-karte:hover, .mz-karte--block:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(31, 42, 48, .12); color: inherit; }
.mz-karte img, .mz-karte__leer { width: 100%; aspect-ratio: 3/2; object-fit: cover; display: block; }
.mz-karte__leer { background: var(--mz-atlantik-hell); }
.mz-raster--4-3 .mz-karte img, .mz-raster--4-3 .mz-karte__leer { aspect-ratio: 4/3; }
.mz-karte > div, .mz-karte__text { padding: 14px 18px 18px; }
.mz-karte h3, .mz-karte .wp-block-post-title { margin: 0 0 4px; font-size: 1.15rem; }
.mz-karte p { margin: 0; color: var(--mz-leise); font-size: .95rem; }
.mz-karte--ohne-linie { border-top: 0; }
.mz-raster--4-3 .mz-karte h3 { font-size: 1.05rem; }
/* Karten aus der Abfrage (Magazin, Suche) */
.mz-karte--block { margin: 0; gap: 0; }
.mz-karte--block .wp-block-post-featured-image { margin: 0; }
.mz-karte--block .wp-block-post-title a { color: inherit; text-decoration: none; }
.mz-karte--block .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; }
.mz-karte--block { position: relative; }
.mz-karte--block .wp-block-post-excerpt { margin-top: 4px; }
.mz-karte--block .wp-block-post-excerpt__more-text { display: none; }

/* Themen-Kacheln (klein, ohne Bild) */
.mz-themen { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-top: 22px; }
.mz-themen a { min-width: 0; hyphens: auto; overflow-wrap: break-word; background: var(--mz-weiss); border: 1px solid var(--mz-linie); border-radius: 12px; padding: 14px 16px; text-decoration: none; color: var(--mz-lava); font-weight: 700; display: flex; align-items: center; gap: 10px; }
.mz-themen a:hover { border-color: var(--mz-atlantik); color: var(--mz-atlantik); }
.mz-themen svg { width: 22px; height: 22px; stroke: var(--mz-atlantik); stroke-width: 1.8; }

/* Tabelle „Welche Insel passt zu dir?“ (Zeilen in der Reihenfolge der Inselleiste) */
.wp-block-table.is-style-inselwahl table { width: 100%; border-collapse: collapse; background: var(--mz-weiss); border-radius: var(--mz-rund); overflow: hidden; font-size: .97rem; }
.wp-block-table.is-style-inselwahl :is(th, td) { text-align: left; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--mz-linie); vertical-align: top; }
.wp-block-table.is-style-inselwahl thead { border: 0; }
.wp-block-table.is-style-inselwahl th { background: var(--mz-atlantik-hell); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.wp-block-table.is-style-inselwahl td:first-child { font-weight: 800; white-space: nowrap; }
.wp-block-table.is-style-inselwahl td:first-child::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--farbe, var(--mz-atlantik)); margin-right: 8px; }
.is-style-inselwahl tbody tr:nth-child(1) { --farbe: var(--wp--preset--color--teneriffa); }
.is-style-inselwahl tbody tr:nth-child(2) { --farbe: var(--wp--preset--color--gran-canaria); }
.is-style-inselwahl tbody tr:nth-child(3) { --farbe: var(--wp--preset--color--lanzarote); }
.is-style-inselwahl tbody tr:nth-child(4) { --farbe: var(--wp--preset--color--fuerteventura); }
.is-style-inselwahl tbody tr:nth-child(5) { --farbe: var(--wp--preset--color--la-palma); }
.is-style-inselwahl tbody tr:nth-child(6) { --farbe: var(--wp--preset--color--la-gomera); }
.is-style-inselwahl tbody tr:nth-child(7) { --farbe: var(--wp--preset--color--el-hierro); }
.wp-block-table.is-style-inselwahl { overflow-x: auto; }

/* Tabelle „Fakten“ (Auf einen Blick): Karte mit Kacheln, 2 Spalten, am Handy untereinander (1.0.17) */
.wp-block-table.is-style-fakten { margin: 22px 0 28px; }
.wp-block-table.is-style-fakten table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--mz-weiss); border-radius: var(--mz-rund); box-shadow: var(--mz-schatten); border: 1px solid var(--mz-linie); overflow: hidden; table-layout: auto; }
.wp-block-table.is-style-fakten tbody { display: grid; grid-template-columns: 1fr 1fr; }
.wp-block-table.is-style-fakten tr { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border-bottom: 1px solid var(--mz-linie); min-width: 0; }
.wp-block-table.is-style-fakten tr:nth-child(odd) { border-right: 1px solid var(--mz-linie); }
.wp-block-table.is-style-fakten tr:nth-last-child(-n+2):nth-child(odd), .wp-block-table.is-style-fakten tr:last-child { border-bottom: 0; }
.wp-block-table.is-style-fakten tr:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }
.wp-block-table.is-style-fakten :is(td, th) { border: 0; padding: 0; text-align: left; }
.wp-block-table.is-style-fakten td:first-child { font-size: 16px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--mz-atlantik); }
.wp-block-table.is-style-fakten td:last-child { font-weight: 600; line-height: 1.45; }

/* Tabelle „Preise“: Kopf Atlantik, Zeilen gestreift, Preise fett rechts (1.0.17) */
.wp-block-table.is-style-preise { margin: 22px 0 18px; overflow-x: auto; }
.wp-block-table.is-style-preise table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--mz-weiss); border: 1px solid var(--mz-linie); border-radius: var(--mz-rund); overflow: hidden; box-shadow: var(--mz-schatten); table-layout: auto; }
.wp-block-table.is-style-preise thead { border: 0; }
.wp-block-table.is-style-preise :is(th, td) { border: 0; padding: 12px 16px; text-align: left; vertical-align: middle; }
.wp-block-table.is-style-preise thead th { background: var(--mz-atlantik); color: #fff; font-weight: 700; font-size: 16px; line-height: 1.3; }
.wp-block-table.is-style-preise tbody tr:nth-child(even) { background: var(--mz-sand); }
.wp-block-table.is-style-preise tbody td { border-top: 1px solid var(--mz-linie); }
.wp-block-table.is-style-preise :is(th, td):not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.wp-block-table.is-style-preise td:not(:first-child) { white-space: nowrap; }
.wp-block-table.is-style-preise th { hyphens: auto; overflow-wrap: break-word; }
.wp-block-table.is-style-preise tbody td:not(:first-child) { font-weight: 800; color: var(--mz-atlantik-dunkel); }
@media (max-width: 600px) {
	.wp-block-table.is-style-fakten tbody { grid-template-columns: 1fr; }
	.wp-block-table.is-style-fakten tr, .wp-block-table.is-style-fakten tr:nth-child(odd) { border-right: 0; border-bottom: 1px solid var(--mz-linie); }
	.wp-block-table.is-style-fakten tr:last-child { border-bottom: 0; }
	.wp-block-table.is-style-preise :is(th, td) { padding: 10px 12px; }
}

/* TablePress: breite Tabellen (z. B. Klima je Monat) seitlich schieben */
.mz-tabelle-scroll { overflow-x: auto; margin-bottom: 1.5em; }
.mz-tabelle-scroll .tablepress { margin-bottom: 0; }

/* ==========================================================================
   Inhaltsseite (Seite und Beitrag): Inhalt 720 px + Seitenleiste 300 px ab 1100 px
   ========================================================================== */
.mz-seite { padding-bottom: 40px; }
.mz-brotkrumen { font-size: .88rem; color: var(--mz-leise); margin: 22px 0 14px; }
.mz-brotkrumen a { color: var(--mz-leise); }
.mz-artikel-raster { display: grid; grid-template-columns: minmax(0, 720px) 300px; gap: 56px; justify-content: center; }
.mz-artikel-raster > * { margin-block-start: 0; }
.mz-artikel-raster:not(:has(.mz-seitenleiste)) { grid-template-columns: minmax(0, 860px); } /* Startseite, schlichte Seiten */
.mz-artikel { min-width: 0; }
.mz-artikel .wp-block-post-title { margin: 0 0 .3em; }
.mz-titelbild { margin: 22px 0 6px; }
.mz-titelbild img { border-radius: var(--mz-rund); }
.mz-inhalt-text figure.wp-block-image { margin-top: 22px; margin-bottom: 22px; }
.mz-inhalt-text .wp-block-image img { border-radius: 12px; }
.mz-inhalt-text > h2 { margin-top: 1.6em; }

/* Seitenleiste: nur am großen Bildschirm. Mediavine setzt die klebende Anzeige in .mz-leiste-anzeige */
.mz-seitenleiste { position: relative; min-width: 0; }
.mz-leiste-anzeige { position: sticky; top: 20px; }
.mz-leiste-box { background: var(--mz-weiss); border: 1px solid var(--mz-linie); border-radius: var(--mz-rund); padding: 18px; margin: 42px 0 22px; font-size: .95rem; }
.mz-leiste-box__titel { margin: 0 0 8px; font-size: 1rem; font-weight: 800; }
.mz-leiste-box ul { list-style: none; margin: 0; padding: 0; }
.mz-leiste-box li a { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--mz-linie); text-decoration: none; font-weight: 600; }
.mz-leiste-box li:last-child a { border-bottom: 0; }
@media (max-width: 1100px) {
	.mz-artikel-raster { grid-template-columns: minmax(0, 720px); }
	.mz-seitenleiste { display: none; }
}

/* Inhaltsverzeichnis */
.mz-inhalt { background: var(--mz-weiss); border: 1px solid var(--mz-linie); border-radius: var(--mz-rund); padding: 6px 20px; margin: 26px 0; }
.mz-inhalt summary { font-weight: 800; cursor: pointer; padding: 10px 0; }
.mz-inhalt ol { margin: 0 0 14px; padding-left: 22px; columns: 2; column-gap: 30px; }
.mz-inhalt li { break-inside: avoid; padding: 2px 0; }
@media (max-width: 600px) { .mz-inhalt ol { columns: 1; } }

/* Kästen „Unser Tipp“ und „Gut zu wissen“ */
.wp-block-group.is-style-tipp, .wp-block-group.is-style-wissen { background: var(--mz-oliv-hell); border-left: 5px solid var(--mz-oliv); border-radius: 10px; padding: 16px 20px; margin-top: 24px; margin-bottom: 24px; }
.wp-block-group.is-style-tipp { background: var(--mz-sonne-hell); border-color: var(--mz-knopf); }
:is(.is-style-tipp, .is-style-wissen) > * { margin-top: 0; margin-bottom: 0; }
:is(.is-style-tipp, .is-style-wissen) > * + * { margin-top: 4px; }
.wp-block-group.is-style-karte { background: var(--mz-weiss); border-radius: var(--mz-rund); box-shadow: var(--mz-schatten); padding: 22px; }

/* Steckbrief je Ort (Pillen) */
.wp-block-list.is-style-steckbrief { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; padding: 0; list-style: none; }
.wp-block-list.is-style-steckbrief li { background: var(--mz-sand); border: 1px solid var(--mz-linie); border-radius: 999px; padding: 3px 12px; font-size: .88rem; font-weight: 600; margin: 0; }
.mz-inhalt-text .wp-block-list.is-style-steckbrief li { background: var(--mz-weiss); }

/* Linkliste in Spalten (Inselseite „Reise planen“) */
.wp-block-list.is-style-linkliste { columns: 3 220px; column-gap: 28px; margin: 18px 0 0; padding: 0; list-style: none; }
.wp-block-list.is-style-linkliste li { break-inside: avoid; }
.wp-block-list.is-style-linkliste a { display: block; padding: 7px 0; border-bottom: 1px solid var(--mz-linie); text-decoration: none; font-weight: 600; }
.wp-block-list.is-style-linkliste a::before { content: "›"; color: var(--mz-oliv); font-weight: 800; margin-right: 8px; }

/* Liste mit Haken */
.wp-block-list.is-style-haken { list-style: none; padding-left: 0; }
.wp-block-list.is-style-haken li { position: relative; padding-left: 28px; }
.wp-block-list.is-style-haken li::before { content: "✓"; position: absolute; left: 4px; color: var(--mz-atlantik); font-weight: 800; }

/* Angebot / Partner-Kasten */
.wp-block-group.is-style-angebot { display: grid; grid-template-columns: 120px 1fr auto; gap: 16px; align-items: center; background: var(--mz-weiss); border: 1px solid var(--mz-linie); border-radius: var(--mz-rund); padding: 14px; margin-top: 26px; margin-bottom: 26px; }
.is-style-angebot > * { margin: 0 !important; }
.is-style-angebot .wp-block-image img { width: 120px; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; }
.mz-angebot__text > * { margin: 0; }
.mz-angebot__text h4 { font-size: 1.05rem; margin: 2px 0; }
.mz-angebot__text p { font-size: .92rem; color: var(--mz-leise); }
.mz-angebot__marke { font-size: .78rem !important; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.mz-angebot__hinweis { font-size: .75rem !important; margin-top: 4px !important; }
@media (max-width: 600px) {
	.wp-block-group.is-style-angebot { grid-template-columns: 80px 1fr; }
	.is-style-angebot .wp-block-image img { width: 80px; }
	.is-style-angebot .wp-block-buttons { grid-column: 1 / -1; }
	.is-style-angebot .wp-block-button, .is-style-angebot .wp-block-button__link { width: 100%; text-align: center; }
}

/* Teilen (ohne Fremdskripte) */
.mz-teilen { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0; }
.mz-teilen a, .mz-teilen button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; color: #fff; text-decoration: none; font: inherit; font-weight: 700; font-size: .92rem; border: 0; cursor: pointer; line-height: 1.3; }
.mz-teilen svg { width: 18px; height: 18px; fill: currentColor; }
.mz-teilen__fb { background: #1877f2; }
.mz-teilen__pin { background: #e60023; }
.mz-teilen__wa { background: #1fa855; }
.mz-teilen__mail { background: var(--mz-leise); }
.mz-teilen__kopie { background: var(--mz-atlantik); }
.mz-teilen a:hover, .mz-teilen button:hover { color: #fff; filter: brightness(.92); }
.mz-teilen--klein a { background: var(--mz-weiss); color: var(--mz-lava); box-shadow: inset 0 0 0 1px var(--mz-linie); }
.mz-teilen--klein a:hover { color: var(--mz-lava); filter: none; box-shadow: inset 0 0 0 1px var(--mz-leise); }
.mz-teilen--klein .mz-teilen__fb svg { fill: #1877f2; }
.mz-teilen--klein .mz-teilen__pin svg { fill: #e60023; }

/* Video erst nach Klick ([mz_video]) */
.mz-video { margin: 26px 0; }
.mz-video__start { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--mz-atlantik-dunkel); border-radius: var(--mz-rund); overflow: hidden; }
.mz-video__start img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mz-video__knopf { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: var(--mz-knopf); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); transition: transform .15s; }
.mz-video__knopf svg { width: 34px; height: 34px; fill: var(--mz-atlantik); margin-left: 4px; }
.mz-video__start:hover .mz-video__knopf, .mz-video__start:focus .mz-video__knopf { transform: scale(1.08); background: var(--mz-knopf-hover); }
.mz-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--mz-rund); }
.mz-video figcaption { color: var(--mz-leise); font-size: .9rem; margin-top: 8px; }

/* Ypsilon-Buchungsfenster: Ladebild, bis das Formular da ist (früher Post Snippets) */
#ypsnet-ibe iframe { width: 100%; background: url("https://cdn.mallorcazeit.de/wp-content/uploads/20180205234933/preloader1.gif") no-repeat center top; }

/* Das könnte dich auch interessieren */
.mz-weiter { margin-top: 30px; }
.mz-weiter h2 { margin-top: 0; }

/* Mehr zu <Ort> (Textende, Orts-Unterseiten) */
.mz-ort { margin: 36px 0 8px; padding: 18px 20px; background: var(--mz-weiss); border: 1px solid var(--mz-linie); border-top: 4px solid var(--farbe, var(--mz-atlantik)); border-radius: var(--mz-rund); }
.mz-ort h2 { margin: 0 0 4px; font-size: 1.25rem; }
.mz-ort .mz-sprung span { display: inline-block; border: 1px solid var(--farbe, var(--mz-atlantik)); background: var(--mz-sand); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: .9rem; }

/* ==========================================================================
   Inselseite
   ========================================================================== */
.mz-fakten { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: -36px 0 0; position: relative; z-index: 2; }
.mz-fakten > div, .mz-fakten > a { background: var(--mz-weiss); border-radius: 12px; padding: 14px 16px; box-shadow: 0 2px 8px rgba(18, 63, 107, .08); border-top: 4px solid var(--farbe); }
.mz-fakten small { display: block; color: var(--mz-leise); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.mz-fakten b { font-size: 1.05rem; line-height: 1.35; display: block; }
.mz-fakten .mz-wetter { display: block; background: var(--mz-atlantik-hell); text-decoration: none; color: var(--mz-lava); }
.mz-fakten a.mz-wetter:hover { box-shadow: 0 6px 16px rgba(31, 42, 48, .14); color: var(--mz-lava); }
.mz-wetter b { display: flex; align-items: center; gap: 6px; }
.mz-wetter svg { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: var(--mz-knopf); stroke-width: 2; stroke-linecap: round; }
.mz-wetter span { display: block; font-size: .82rem; color: var(--mz-leise); margin-top: 2px; }
.mz-insel-text { padding-top: 28px; }
/* Fließtext auf 720 px, aber linksbündig mit den breiten Abschnitten */
.mz-insel-text > p, .mz-insel-text > ul:not(.is-style-linkliste) { max-width: 720px; margin-left: max(0px, calc((100% - 1160px) / 2)) !important; }

/* Sprungleiste und „Die anderen Inseln“ (Pillen) */
.mz-sprung { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 0; }
.mz-sprung p { margin: 0; }
.mz-sprung a { display: inline-block; background: var(--mz-weiss); border: 1px solid var(--mz-linie); border-radius: 999px; padding: 6px 14px; text-decoration: none; font-weight: 700; font-size: .9rem; color: var(--mz-lava); }
.mz-sprung a:hover { border-color: var(--farbe, var(--mz-atlantik)); box-shadow: inset 0 -3px 0 var(--farbe, var(--mz-atlantik)); color: var(--mz-lava); }

/* ==========================================================================
   Listen (Magazin, Suche, 404)
   ========================================================================== */
.mz-liste { padding-top: 34px; padding-bottom: 50px; }
.mz-liste .wp-block-query-pagination { margin-top: 30px; font-weight: 700; }
.mz-suche-seite { max-width: 560px; }
.mz-suche-seite .wp-block-search__input { border: 1px solid var(--mz-linie); border-radius: 12px; padding: 11px 14px; background: var(--mz-weiss); }
.mz-suche-seite .wp-block-search__button { margin-left: 8px; }

/* ==========================================================================
   Fuß
   ========================================================================== */
.mz-fuss { background: var(--mz-atlantik-dunkel); color: #dbe6f0; padding: 48px 0 30px; font-size: .95rem; }
.mz-fuss a { color: #fff; text-decoration: none; }
.mz-fuss a:hover { text-decoration: underline; color: #fff; }
.mz-fuss-raster { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.mz-fuss-raster h2 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .07em; margin: 0 0 10px; }
.mz-fuss-raster ul { list-style: none; margin: 0; padding: 0; }
.mz-fuss-raster li { padding: 3px 0; }
.mz-fuss-raster li a { display: inline-flex; align-items: center; gap: 8px; }
.mz-fuss-raster p { margin: 0; }
.mz-fuss .mz-logo img { width: 170px; margin-bottom: 12px; }
.mz-sozial { display: flex; gap: 10px; margin-top: 14px; }
.mz-sozial a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .12); display: grid; place-items: center; }
.mz-sozial a:hover { background: rgba(255, 255, 255, .22); }
.mz-sozial svg { width: 18px; height: 18px; fill: #fff; }
.mz-fuss-unten { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 30px; padding-top: 18px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .88rem; }
@media (max-width: 860px) { .mz-fuss-raster { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .mz-fuss-raster { grid-template-columns: 1fr; } }

/* ==========================================================================
   Handy: Grundschrift 18 px, keine Schrift unter 16 px (Wunsch Nutzerin)
   ========================================================================== */
@media (max-width: 700px) {
	body { font-size: 1.125rem; }
	.mz-einleitung, .mz-held p { font-size: 1.2rem; }
	.mz-karte h3, .mz-raster--4-3 .mz-karte h3 { font-size: 1.2rem; }
	.mz-fakten b { font-size: 1.12rem; }
	.mz-leise, .mz-karte p, .mz-leiste-box, .mz-leiste-box__titel, .mz-angebot__text p, .mz-angebot__text h4, .mz-fuss, .mz-fuss-unten, .mz-fuss-raster h2,
	.mz-marke, .mz-held .mz-marke, .mz-fakten small, .mz-wetter span, .mz-brotkrumen,
	.wp-block-table.is-style-inselwahl table, .wp-block-table.is-style-inselwahl th,
	.mz-sprung a, .mz-sprung span, .mz-teilen a, .mz-teilen button, .mz-menue, .mz-inselleiste a, .mz-aufklapp a small, .mz-burger-flaeche p,
	.wp-block-list.is-style-steckbrief li, .has-small-font-size, .wp-element-caption, figcaption, small { font-size: 1rem; }
	.mz-angebot__marke, .mz-angebot__hinweis { font-size: 1rem !important; }
}

/* ==========================================================================
   Editor: Shortcode-Blöcke zeigen nur den Shortcode, etwas Luft
   ========================================================================== */
.editor-styles-wrapper .wp-block-shortcode { font-size: .9rem; }


/* ==========================================================================
   MallorcaZeit (1.0.0): Logo, Datum, Reisezeit, Hotel-Karte, Karte nach Klick
   ========================================================================== */
.mz-logo__marke { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.mz-logo__marke img { width: 44px; height: auto; display: block; }
.mz-logo__marke span { font-family: var(--mz-titel); font-weight: 300; font-size: 30px; line-height: 1; letter-spacing: .01em; }
.mz-logo__marke b { font-weight: 700; }
.mz-logo__marke--dunkel { color: var(--mz-atlantik); }
.mz-menue a[aria-current] { color: var(--mz-knopf); }
.mz-fuss .mz-logo { margin-bottom: 12px; }
:where(.wp-block-post-title, .mz-held h1, .mz-held h2) { font-family: var(--mz-titel); }
.mz-marke i { background: var(--mz-oliv); }
.mz-marke { color: var(--mz-oliv-dunkel); }
.mz-datum { color: var(--mz-leise); font-size: .95rem; margin: -6px 0 18px; }

/* Monatsleiste (Monatsseiten, Klima) */
.mz-monate { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 10px; margin: 0 0 18px; scrollbar-width: thin; }
.mz-monate a { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--mz-weiss); border: 1px solid var(--mz-linie); color: var(--mz-atlantik); font-weight: 700; text-decoration: none; }
.mz-monate a:hover { border-color: var(--mz-atlantik); }
.mz-monate a[aria-current] { background: var(--mz-atlantik); border-color: var(--mz-atlantik); color: #fff; }

/* Wetter-Kacheln eines Monats */
.mz-monatswetter { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 22px 0 26px; }
.mz-monatswetter__kachel { background: var(--mz-weiss); border-radius: 14px; padding: 14px 16px; box-shadow: var(--mz-schatten); display: flex; flex-direction: column; gap: 2px; }
.mz-monatswetter__kachel span { color: var(--mz-leise); font-size: 1rem; }
.mz-monatswetter__kachel b { font-family: var(--mz-titel); font-size: 2rem; line-height: 1.1; color: var(--mz-atlantik); }

/* 12 Monatskacheln (Startseite, Klima) */
.mz-monatskacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin: 18px 0; }
.mz-monatskachel { display: flex; flex-direction: column; gap: 2px; padding: 14px 12px; border-radius: 12px; background: var(--mz-weiss); border: 1px solid var(--mz-linie); color: var(--mz-lava); text-decoration: none; }
.mz-monatskachel b { font-family: var(--mz-titel); font-size: 1.25rem; color: var(--mz-atlantik); }
.mz-monatskachel__luft { font-size: 1.6rem; font-weight: 800; color: var(--mz-atlantik); }
a.mz-monatskachel:hover { border-color: var(--mz-atlantik); }
.mz-blau .mz-monatskachel { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: #dbe6f0; }
.mz-blau .mz-monatskachel b, .mz-blau .mz-monatskachel__luft { color: #fff; }
.mz-blau .mz-monatskachel__luft { color: var(--mz-knopf); }

.mz-monat-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 34px 0 8px; }
.mz-monat-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--mz-weiss); border: 1px solid var(--mz-linie); color: var(--mz-atlantik); font-weight: 700; text-decoration: none; }

/* Blaue Fläche (Abschnitt in der Startseite) */
.mz-blau { background: var(--mz-atlantik); color: #fff; }
.mz-blau h2, .mz-blau p { color: #fff; }

/* Google-Karte erst nach Klick */
.mz-karte-klick { background: var(--mz-atlantik-hell); border-radius: 14px; min-height: 240px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 24px; margin: 20px 0; }
.mz-karte-klick p { margin: 0; }
.mz-karte-klick svg { width: 40px; height: 40px; fill: none; stroke: var(--mz-atlantik); stroke-width: 2; }
.mz-karte-klick__hinweis { color: var(--mz-leise); font-size: 1rem; }
.mz-karte-klick iframe, iframe.mz-karte-frame { width: 100%; height: 420px; border: 0; border-radius: 14px; }

/* Hotel-Karte [mz_hotel] */
.mz-hotel { background: var(--mz-weiss); border-radius: 14px; overflow: hidden; box-shadow: 0 2px 10px rgba(18, 63, 107, .10); margin: 18px 0 26px; }
.mz-hotel__bild { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0 !important; }
.mz-hotel__text { padding: 18px 22px 22px; }
.mz-hotel__label { margin: 0 0 4px; font-size: .85rem; font-weight: 800; letter-spacing: .07em; color: var(--mz-oliv-dunkel); text-transform: uppercase; }
.mz-hotel__kopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; margin: 0 0 10px; }
.mz-hotel__kopf b { font-family: var(--mz-titel); font-size: 1.8rem; line-height: 1.1; color: var(--mz-atlantik); }
.mz-hotel__kopf span { color: var(--mz-leise); font-weight: 700; font-size: 1rem; }
.mz-hotel__merkmale { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 12px; }
.mz-hotel__merkmale li { background: var(--mz-oliv-hell); color: var(--mz-oliv-dunkel); border-radius: 999px; padding: 4px 12px; font-size: 1rem; font-weight: 700; }
.mz-hotel__merkmale li::before { content: "✓ "; }
.mz-hotel__text p { margin: 0 0 14px; }
.mz-hotel .mz-knopf { min-height: 48px; display: inline-flex; align-items: center; }

/* Themen-Kacheln mit Unterzeile */
.mz-themen a span { display: flex; flex-direction: column; }
.mz-themen a b { font-family: var(--mz-titel); font-size: 1.35rem; color: var(--mz-atlantik); }
.mz-themen a small { font-weight: 400; color: var(--mz-leise); font-size: 1rem; }
.mz-themen svg { stroke: var(--mz-oliv); fill: none; }

/* 1.0.1: Top-Hotels nebeneinander (Startseite), alte graue Kästen („Auf die Schnelle“) im Sonnen-Look */
.mz-hotel-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; margin-top: 18px; }
.mz-hotel-raster > .wp-block-shortcode, .mz-hotel-raster > * { margin: 0 !important; }
.mz-hotel-raster .mz-hotel { margin: 0; height: 100%; display: flex; flex-direction: column; }
.mz-hotel-raster .mz-hotel__bild { aspect-ratio: 3 / 2; }
.mz-hotel-raster .mz-hotel__text { display: flex; flex-direction: column; flex: 1; }
.mz-hotel-raster .mz-hotel__text p:last-of-type { flex: 1; }
.mz-hotel-raster .mz-hotel__kopf b { font-size: 1.45rem; }
.wp-block-post-content .wp-block-column.has-background { background: var(--mz-sonne-hell) !important; border-left: 5px solid var(--mz-knopf); border-radius: 10px; }
/* 1.0.3: Hotel-Kasten in der Seitenleiste (ersetzt das alte Banner „Die besten Hotels“) */
.mz-leiste-hotel { background: var(--mz-sonne-hell); border-color: var(--mz-knopf); }
.mz-leiste-hotel p:not(.mz-leiste-box__titel) { margin: 0 0 12px; font-size: 1rem; }
.mz-leiste-hotel .mz-knopf { display: block; text-align: center; }
