/*
Theme Name: Ostseeliebe
Description: Theme für die Ferienwohnung Ostseeliebe in Kölpinsee (Usedom). Mobil zuerst, ohne externe Dienste, passend zum Plugin „Ostseeliebe Kalender“.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.1
Author: Ferienwohnung Ostseeliebe
License: GPL-2.0-or-later
Text Domain: ostseeliebe
*/

/* ---------- Schrift (lokal, keine Verbindung zu Google) ---------- */
@font-face { font-family: "Carlito"; src: url("assets/fonts/carlito-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Carlito"; src: url("assets/fonts/carlito-italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Carlito"; src: url("assets/fonts/carlito-bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
	--navy: #14324A;
	--navy-dark: #0F2738;
	--sea: #2F6E86;
	--sea-light: #9CC3CF;
	--mist: #F3F6F6;
	--sand: #E9E1D3;
	--line: #DDE5E7;
	--text: #1D2B33;
	--text-soft: #3B4D57;
	--muted: #50636D;
	--cta: #B9531A;
	--cta-hover: #9C4414;
	--radius: 20px;
	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 24px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--mist); color: var(--text); font-family: Carlito, Calibri, "Segoe UI", system-ui, sans-serif; font-size: 18px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--sea); }
:focus-visible { outline: 3px solid var(--sea); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: inherit; color: var(--navy); line-height: 1.1; letter-spacing: -0.005em; margin: 0 0 .5em; }
h1 { font-size: clamp(36px, 6vw, 62px); }
h2 { font-size: clamp(30px, 4.2vw, 44px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed; left: 12px; top: 12px; width: auto; height: auto; clip: auto; z-index: 100; background: #fff; padding: 10px 14px; border-radius: 10px; }

/* ---------- Kopfbereich ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; position: relative; } }
.header-inner { max-width: var(--wrap); margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand svg { flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 700; font-size: 24px; }
.brand-sub { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.nav-main ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px 22px; flex-wrap: wrap; }
.nav-main a { text-decoration: none; font-weight: 700; font-size: 16px; padding: 10px 0; display: inline-block; }
.nav-main .current-menu-item > a, .nav-main .current_page_item > a { color: var(--sea); box-shadow: inset 0 -2px 0 var(--sea); }
.btn, .wp-block-button__link, .wp-element-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--cta); color: #fff !important; font-weight: 700; text-decoration: none; border: 0; font-size: 16px; line-height: 1.2; }
.btn:hover, .wp-block-button__link:hover { background: var(--cta-hover); }
.is-style-outline .wp-block-button__link { background: transparent; color: var(--navy) !important; box-shadow: inset 0 0 0 2px var(--navy); }
.header-cta { white-space: nowrap; }
.nav-toggle { display: none; }

@media (max-width: 1020px) {
	.header-cta { display: none; }
}
@media (max-width: 860px) {
	.nav-main { display: none; }
	.nav-toggle { display: block; position: relative; }
	.nav-toggle summary { list-style: none; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
	.nav-toggle summary::-webkit-details-marker { display: none; }
	.nav-toggle[open] .nav-panel { display: block; }
	.nav-panel { display: none; position: absolute; right: 0; top: 56px; width: min(86vw, 320px); background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 10px; box-shadow: 0 18px 40px rgba(20,50,74,.18); }
	.nav-panel ul { list-style: none; margin: 0; padding: 0; }
	.nav-panel a { display: block; padding: 12px 14px; border-radius: 10px; text-decoration: none; font-weight: 700; }
	.nav-panel a:hover { background: var(--mist); }
	.nav-panel .btn { margin-top: 8px; width: 100%; }
}

/* ---------- Inhalt ---------- */
.site-main { min-height: 50vh; }
.entry { padding-bottom: 72px; }
.entry > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.entry > .alignfull, .entry > .ol-band, .entry > .ol-hero { max-width: none; padding-left: 0; padding-right: 0; }
.entry > p, .entry > ul, .entry > ol, .entry > h2, .entry > h3, .entry > .wp-block-list { padding-right: max(var(--gutter), min(380px, calc(100vw - 840px))); }
.entry > h2 { margin-top: 56px; }
.page-head { max-width: var(--wrap); margin: 0 auto; padding: 56px var(--gutter) 16px; }
.page-head h1 { margin: 0; }
.page-head .lead { max-width: 760px; font-size: 20px; color: var(--text-soft); margin-top: 14px; }
.entry ul, .entry ol { padding-left: calc(var(--gutter) + 20px); }
.entry li { margin-bottom: .35em; }

/* Bänder (volle Breite, Inhalt zentriert) */
.ol-band { padding: 72px 0; }
.ol-band > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.ol-band--white { background: #fff; }
.ol-band--sand { background: var(--sand); }
.ol-band--navy { background: var(--navy); color: #fff; }
.ol-band--navy h2, .ol-band--navy h3, .ol-band--navy a { color: #fff; }
.ol-band--navy .ol-rev-card a { color: var(--navy); }
.ol-kicker { font-size: 14px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--sea); margin-bottom: 8px; }
.ol-band--navy .ol-kicker { color: var(--sea-light); }
.ol-band--sand .ol-kicker { color: #6A5A3E; }
.ol-lead { font-size: 20px; color: var(--text-soft); }

/* Startbild */
.ol-hero { position: relative; min-height: min(78vh, 680px); display: flex; align-items: flex-end; overflow: hidden; color: #fff; }
.ol-hero > .wp-block-image, .ol-hero > figure { position: absolute; inset: 0; margin: 0; max-width: none; padding: 0; }
.ol-hero > figure img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.ol-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,50,74,0) 30%, rgba(20,50,74,.82) 100%); }
.ol-hero-text { position: relative; z-index: 1; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter) 48px; }
.ol-hero-text h1 { color: #fff; max-width: 780px; }
.ol-hero-text p { color: #fff; font-size: clamp(17px, 2.2vw, 20px); max-width: 640px; }
.ol-hero-text .ol-kicker { color: #fff; }
.ol-hero-text .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.ol-hero-text .is-style-outline .wp-block-button__link { color: #fff !important; box-shadow: inset 0 0 0 2px #fff; }

/* Fakten */
.ol-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 18px; list-style: none; margin: 0 auto !important; padding-top: 28px !important; padding-bottom: 28px !important; }
.ol-facts li { display: flex; gap: 12px; align-items: center; margin: 0; }
.ol-facts svg { flex: none; }
.ol-facts strong { display: block; font-size: 17px; line-height: 1.2; }
.ol-facts span { font-size: 15px; color: var(--muted); line-height: 1.3; }

/* Bildraster */
.ol-gallery { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 220px; gap: 12px; margin-top: 28px; margin-bottom: 28px; }
.ol-gallery > figure { margin: 0; }
.ol-gallery > figure img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.ol-gallery > figure:first-child { grid-column: span 2; grid-row: span 2; }
.ol-gallery--even > figure:first-child { grid-column: auto; grid-row: auto; }
.ol-gallery--even { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 260px; }
@media (max-width: 760px) {
	.ol-gallery, .ol-gallery--even { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 8px; }
}

/* Spalten & Karten */
.wp-block-columns { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.wp-block-column { flex: 1 1 360px; min-width: 0; }
.wp-block-column figure { margin: 0; }
.wp-block-column img { border-radius: 24px; width: 100%; object-fit: cover; }
.ol-cards { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 24px; }
.ol-cards > .wp-block-group { background: #fff; border-radius: var(--radius); padding: 24px; }
.ol-band--white .ol-cards > .wp-block-group { background: #fff; }
.ol-cards h3 { font-size: 20px; margin-bottom: 6px; }
.ol-cards p { margin: 0; font-size: 17px; color: var(--text-soft); }
.ol-box { background: #fff; border-radius: 28px; padding: clamp(22px, 4vw, 40px) !important; display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; justify-content: space-between; margin-top: 64px; }
.ol-box > div:first-child { flex: 1 1 480px; }
.ol-box h2 { font-size: clamp(26px, 3vw, 32px); }
.ol-tips { list-style: none; padding: 0 var(--gutter) !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.ol-tips li { background: #fff; border-radius: 18px; padding: 20px; margin: 0; }
.ol-tips strong { display: block; color: var(--navy); font-size: 19px; }
.ol-legal h2 { font-size: 26px; margin-top: 40px; }
.ol-legal h3 { font-size: 20px; margin-top: 24px; }
.ol-note { background: #fff; border-left: 0; border-radius: 14px; padding: 16px 20px !important; font-size: 16px; color: var(--text-soft); }
.ol-placeholder { background: #FCF0D9; color: #7a4b00; padding: 0 4px; border-radius: 4px; }

/* Kontakt */
.ol-contact { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.ol-contact > .wp-block-group { background: #fff; border-radius: var(--radius); padding: 22px; }
.ol-contact p { margin: 0; }

/* ---------- Fußbereich ---------- */
.site-footer { background: var(--navy-dark); color: #DDE5E7; font-size: 16px; }
.footer-inner { max-width: var(--wrap); margin: 0 auto; padding: 56px var(--gutter) 28px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 28px; line-height: 1.7; }
.footer-grid strong { color: #fff; display: block; margin-bottom: 4px; }
.site-footer a { color: #DDE5E7; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.footer-bottom { border-top: 1px solid #2A4558; margin-top: 32px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }

/* Kalender-Plugin im Band */
.ol-band .ol-booking, .entry .ol-booking { margin-top: 24px; }
.ol-band--navy .ol-reviews { color: #fff; }
.ol-band--navy .ol-rev-link { color: #fff; font-weight: 700; }
.ol-band--navy .ol-rev-attr { color: #C9DCE2; }
.ol-band--navy .ol-rev-card .ol-rev-attr { color: var(--muted); }

/* WordPress-Grundklassen */
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-block-image figcaption { font-size: 14px; color: var(--muted); }
.has-text-align-center { text-align: center; }

@media (max-width: 600px) {
	.ol-hero { min-height: 92vh; }
	.ol-hero-text { padding-bottom: 32px; }
	.ol-hero-text p { font-size: 16px; }
	.ol-band { padding: 52px 0; }
}
