/* Ferienwohnung Thomée – nordisch: Birkenweiß, Nebelgrau, Fjordblau, ein Hauch Sanddorn */
@font-face { font-family: "Literata"; src: url("../fonts/literata-latin-wght-normal.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url("../fonts/literata-latin-wght-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --paper: #f2f3f0;
  --surface: #fbfcfa;
  --tint: #e3e8e6;
  --ink: #18252d;
  --muted: #57666e;
  --line: #d3dad7;
  --fjord: #2d4a5b;
  --fjord-dark: #1f3644;
  --sage: #7f9182;
  --sand: #d9822b;
  --busy: #b9705a;
  --free: #dbe7e1;
  --radius: 14px;
  --wrap: 1160px;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 1px 2px rgba(29,40,48,.06), 0 8px 24px rgba(29,40,48,.06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--fjord); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--fjord-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 380; text-wrap: balance; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--fjord); outline-offset: 3px; border-radius: 4px; }
.kicker { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sand); font-weight: 600; margin-bottom: .9em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; background: var(--fjord); color: #fff; border: 1px solid var(--fjord); padding: .8em 1.4em; border-radius: 999px; font: 500 .98rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--fjord-dark); border-color: var(--fjord-dark); color: #fff; }
.btn-small { padding: .6em 1.1em; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--fjord); }
.btn-ghost:hover { background: var(--fjord); color: #fff; }
.btn-ghost-light { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.7); color: #fff; backdrop-filter: blur(4px); }
.btn-ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.link-btn { background: none; border: 0; padding: 0; color: var(--fjord); font: 500 1rem var(--sans); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(242,243,240,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid rgba(211,218,215,.8); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 34px; height: 34px; color: var(--fjord); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-small { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.brand-name { font-family: var(--serif); font-size: 1.45rem; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.main-nav a:not(.btn) { display: block; padding: .5em .85em; text-decoration: none; color: var(--ink); border-radius: 999px; font-size: .97rem; }
.main-nav a:not(.btn):hover { background: var(--tint); }
.main-nav a[aria-current="page"]:not(.btn) { color: var(--fjord); box-shadow: inset 0 -2px 0 var(--sand); border-radius: 0; }
.main-nav li:last-child { margin-left: 10px; }
.main-nav .btn[aria-current="page"] { background: var(--fjord-dark); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle { display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; }
  .nav-toggle span:not(.sr) { width: 22px; height: 2px; background: var(--ink); transition: transform .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
  .main-nav { position: absolute; top: 72px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 16px 20px; display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav a:not(.btn) { padding: .85em .4em; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.05rem; }
  .main-nav a[aria-current="page"]:not(.btn) { box-shadow: none; font-weight: 600; }
  .main-nav li:last-child { margin: 14px 0 0; }
  .main-nav .btn { width: 100%; justify-content: center; padding: .9em; }
}

/* Sections */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-tint { background: var(--tint); }
.page-head { padding-top: clamp(40px, 6vw, 72px); }
.two-col { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.row-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.row-head h2 { margin: 0; }
.prose h2 { font-size: 1.35rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }

/* Hero */
.hero { position: relative; min-height: min(80svh, 720px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,30,38,.08) 25%, rgba(20,30,38,.66) 100%), linear-gradient(90deg, rgba(20,30,38,.35), transparent 65%); }
.hero-content { text-shadow: 0 1px 12px rgba(10,16,20,.35); }
.hero-content { position: relative; padding: 0 0 clamp(40px, 7vw, 80px); }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6.5vw, 4.8rem); max-width: 12ch; margin-bottom: .3em; }
.hero .kicker { color: #f3c28e; }
.hero-text { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 46ch; color: rgba(255,255,255,.92); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* Facts */
.facts { background: var(--surface); border-bottom: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 26px 8px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact-value { font-family: var(--serif); font-size: 1.7rem; color: var(--fjord); }
.fact-label { font-size: .88rem; color: var(--muted); }
@media (max-width: 640px) { .facts-grid { grid-template-columns: repeat(2, 1fr); } .fact:nth-child(3) { border-left: 0; } .fact:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* Intro + tiles */
.intro-split { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 5vw, 72px); margin-bottom: clamp(32px, 5vw, 56px); align-items: start; }
.intro-split h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin: 0; }
.intro-split .lead { margin: 0; }
@media (max-width: 760px) { .intro-split { grid-template-columns: 1fr; } }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 760px) { .tiles { grid-template-columns: 1fr; } }
.tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: #fff; aspect-ratio: 4 / 3.1; background: var(--tint); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(20,30,38,.7)); }
.tile:hover img { transform: scale(1.04); }
.tile-body { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; display: flex; flex-direction: column; gap: 4px; }
.tile-title { font-family: var(--serif); font-size: 1.45rem; }
.tile-text { font-size: .93rem; opacity: .9; }
@media (max-width: 760px) { .tile { aspect-ratio: 16 / 9; } }

/* Review */
.review-wrap { text-align: center; max-width: 820px; }
.review { margin: 0; }
.review blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.35rem, 2.6vw, 1.9rem); line-height: 1.4; color: var(--ink); }
.review figcaption { margin-top: 14px; color: var(--muted); font-size: .95rem; }
.review-author { font-weight: 600; color: var(--ink); }
.review-text { transition: opacity .3s; }
.review-dots { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.review-dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 1px solid var(--fjord); background: transparent; cursor: pointer; }
.review-dots button[aria-selected="true"] { background: var(--fjord); }

/* Chips & lists */
.chips { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px; align-content: start; }
.chips li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .4em .95em; font-size: .93rem; }
.checklist { list-style: none; padding: 0; margin: 0 0 1.4em; }
.checklist li { position: relative; padding: .38em 0 .38em 1.7em; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: .95em; width: 10px; height: 6px; border-left: 2px solid var(--sage); border-bottom: 2px solid var(--sage); transform: rotate(-45deg); }
.plain { list-style: none; padding: 0; margin: 0 0 1em; }

/* Tabs */
.tablist { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.tablist [role="tab"] { background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: .7em 1em; font: 500 1rem var(--sans); color: var(--muted); cursor: pointer; }
.tablist [role="tab"]:hover { color: var(--ink); }
.tablist [role="tab"][aria-selected="true"] { color: var(--fjord); border-bottom-color: var(--fjord); }
.tablist .count { font-size: .78rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0 .5em; margin-left: 4px; }
@media (max-width: 640px) { .tablist { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .tablist [role="tab"] { white-space: nowrap; padding: .7em .8em; } }
.tabpanel { animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.room { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.room img { border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
@media (max-width: 760px) { .room { grid-template-columns: 1fr; } }

/* Gallery */
.gallery-strip { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 12px; height: clamp(300px, 38vw, 460px); }
.gallery-thumb { padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: zoom-in; background: var(--tint); }
.gallery-thumb.big { grid-row: span 2; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-thumb:hover img { transform: scale(1.04); }
@media (max-width: 640px) { .gallery-strip { grid-template-columns: 1fr 1fr; grid-template-rows: auto; height: auto; } .gallery-thumb { aspect-ratio: 4 / 3; } .gallery-thumb.big { grid-column: span 2; grid-row: auto; aspect-ratio: 3 / 2; } .gallery-thumb:nth-child(n+4) { display: none; } }
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(15,22,28,.92); }
.lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 64px; gap: 12px; }
.lightbox img { max-height: calc(100vh - 140px); max-width: 100%; object-fit: contain; border-radius: 6px; }
.lightbox figcaption { color: #e3e8e6; font-size: .95rem; }
.lightbox button { position: fixed; background: rgba(255,255,255,.1); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.22); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lightbox figure { padding: 64px 8px; } .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; } }

/* Prices */
.price-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 32px; }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.price-card h2 { font-size: 1.4rem; margin-bottom: .2em; }
.price { margin: 18px 0 2px; }
.price-num { font-family: var(--serif); font-size: 2.6rem; color: var(--fjord); }
.price-week { color: var(--muted); }
.note { display: inline-block; font-size: .85rem; background: var(--tint); border-radius: 999px; padding: .25em .8em; margin: 0; }
.extras { margin: 0; }
.extras div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.extras dt { display: flex; flex-direction: column; }
.extras dt .muted { font-size: .88rem; }
.extras dd { margin: 0; font-family: var(--serif); font-size: 1.2rem; color: var(--fjord); white-space: nowrap; }

/* Cards (Umgebung) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; }
.card p { color: var(--muted); font-size: .97rem; flex: 1; }
.card-top { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.card h2 { font-size: 1.2rem; margin-bottom: .45em; }
.badge { font-size: .78rem; white-space: nowrap; background: var(--tint); color: var(--muted); padding: .2em .7em; border-radius: 999px; }
.card-link { font-size: .92rem; font-weight: 500; text-decoration: none; }
.card-link:hover { text-decoration: underline; }

/* Anreise */
.info-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; margin-top: 28px; }
.info h2 { font-size: 1.1rem; font-family: var(--sans); font-weight: 600; margin-bottom: .4em; }
.info p { margin-bottom: .6em; }
@media (max-width: 520px) { .info-blocks { grid-template-columns: 1fr; } }
.map { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--tint); box-shadow: var(--shadow); }
.map img, .map iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.map-consent { position: absolute; left: 16px; right: 16px; bottom: 16px; background: rgba(251,250,246,.95); border-radius: 12px; padding: 16px; font-size: .9rem; }
.map-consent p { margin-bottom: .7em; }
@media (max-width: 860px) { .map { aspect-ratio: 4 / 3; } }

/* Anfrage */
.inquiry { display: grid; grid-template-columns: 1.25fr .9fr; gap: 28px; margin-top: 28px; align-items: start; }
@media (max-width: 900px) { .inquiry { grid-template-columns: 1fr; } }
.form-card, .calendar, .contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.side { display: grid; gap: 20px; }
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 500; }
.form .opt { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea { width: 100%; font: 400 1rem var(--sans); color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .7em .8em; min-height: 46px; }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--fjord); outline-offset: 0; border-color: var(--fjord); }
.form .check { display: flex; gap: 10px; align-items: start; font-weight: 400; color: var(--muted); }
.form .check input { width: 20px; min-height: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--fjord); }
.form .btn { justify-self: start; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 520px) { .grid-2 { grid-template-columns: 1fr; } }
.notice { border-radius: 10px; padding: 14px 18px; margin-bottom: 18px; }
.notice ul { margin: 0; padding-left: 1.1em; }
.notice.error { background: #f6e3dc; color: #7a2e1c; }
.notice.ok { background: var(--free); }
.calendar h2, .contact-card h2 { font-size: 1.3rem; }
.cal-head { display: flex; justify-content: space-between; align-items: baseline; }
.cal-nav { display: flex; gap: 6px; }
.cal-nav a, .cal-nav span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); text-decoration: none; font-size: 1.2rem; }
.cal-nav span { opacity: .35; }
.months { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 1100px) and (min-width: 901px), (max-width: 420px) { .months { grid-template-columns: 1fr; } }
.month h3 { font-family: var(--sans); font-size: .95rem; font-weight: 600; margin: .4em 0 .6em; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; font-size: .82rem; }
.cal-grid span { color: var(--muted); font-size: .72rem; padding-bottom: 2px; }
.cal-grid b { font-weight: 500; padding: .38em 0; border-radius: 6px; }
.cal-grid .free { background: var(--free); }
.cal-grid .busy { background: var(--busy); color: #fff; text-decoration: line-through; }
.cal-grid .past { color: #b4b0a6; }
.legend { display: flex; align-items: center; gap: 8px; font-size: .85rem; margin: 14px 0 4px; }
.dot { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.dot.free { background: var(--free); }
.dot.busy { background: var(--busy); margin-left: 10px; }

/* Footer */
.site-footer { background: var(--fjord-dark); color: #d9e0e3; font-size: .93rem; padding: 40px 0 36px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer p { margin: 0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr 1fr; gap: 24px; }
.footer-name { font-family: var(--serif); font-size: 1.2rem; color: #fff; margin-bottom: 6px !important; }
.footer-links { display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.contact-card .checklist { margin-bottom: 1.4em; font-size: .95rem; }
