/* Boarding House München – Styles */
:root {
  --bg: #faf9f7;
  --surface: #ffffff;
  --tint: #f1f4f3;
  --ink: #1e2427;
  --muted: #4d5a5d;
  --dark: #033537;
  --dark-2: #0b4a4d;
  --accent: #10ccae;
  --accent-ink: #03463d;
  --plum: #7d1d52;
  --line: #dde3e2;
  --radius: 14px;
  --wrap: 1180px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: var(--font);
  --font-head: var(--font);
  --shadow: 0 1px 2px rgba(3,53,55,.06), 0 8px 24px rgba(3,53,55,.06);
}

*,*::before,*::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  color: var(--ink); background: var(--bg);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--dark); text-underline-offset: 3px; }
a:hover { color: var(--plum); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1,h2,h3 { font-family: var(--font-head); line-height: 1.2; color: var(--dark); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 650; }
h3 { font-size: 1.1rem; font-weight: 650; }
p { margin: 0 0 1em; }
.small { font-size: .88rem; color: var(--muted); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 62ch; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--dark); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 780px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.tint { background: var(--tint); }
.section-head { max-width: 62ch; margin-bottom: 36px; }
.two-col { display: grid; gap: 48px; grid-template-columns: 1fr 1fr; align-items: start; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.note { color: var(--muted); max-width: 70ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--accent-ink); font-weight: 650; margin-bottom: 14px; }
.h-small { font-size: 1rem; margin-bottom: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font: inherit; font-weight: 600;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
  min-height: 48px;
}
.btn-primary { background: var(--accent); color: var(--dark); }
.btn-primary:hover { background: #0fb89c; color: var(--dark); }
.btn-ghost { background: transparent; color: var(--dark); border-color: var(--dark); }
.btn-ghost:hover { background: var(--dark); color: #fff; }
.btn-light { background: #fff; color: var(--dark); }
.btn-light:hover { background: var(--accent); color: var(--dark); }
.btn-book { background: var(--plum); color: #fff; padding: 10px 18px; min-height: 42px; font-size: .95rem; }
.btn-book:hover { background: #5e1440; color: #fff; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.link-arrow { font-weight: 600; text-decoration: none; color: var(--dark); border-bottom: 2px solid var(--accent); padding-bottom: 2px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand img { height: 44px; width: auto; }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; align-items: center; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--dark); }
/* Sprachschalter: nur Rahmen, keine Füllung, rechts neben „Jetzt buchen“ */
.lang-switch { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border: 1px solid var(--dark); border-radius: 999px; background: transparent; color: var(--dark); font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-decoration: none; white-space: nowrap; }
.lang-switch:hover, .lang-switch:focus-visible { background: var(--dark); color: #fff; }
.nav-extra { display: none; }
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; position: relative; z-index: 2; }
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; z-index: 2; }
.bars, .bars::before, .bars::after { display: block; width: 22px; height: 2px; background: var(--dark); position: relative; margin: 0 auto; transition: background .2s, transform .3s, top .3s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; } .bars::after { top: 7px; }
/* Burger wird beim Öffnen zum Kreuz */
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { top: 0; transform: rotate(-45deg); }
body.menu-open { overflow: hidden; }

/* Hero */
.hero {
  position: relative; overflow: hidden; isolation: isolate; color: #fff; padding: clamp(96px, 14vw, 160px) 0 clamp(72px, 10vw, 120px);
  background:
    linear-gradient(120deg, rgba(3,53,55,.92) 0%, rgba(3,53,55,.55) 55%, rgba(125,29,82,.45) 100%),
    radial-gradient(1200px 500px at 90% 10%, rgba(16,204,174,.35), transparent 60%),
    #033537;
}
.hero h1 { color: #fff; max-width: 18ch; }
.hero .lead { color: rgba(255,255,255,.88); }
.hero .eyebrow { color: var(--accent); }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.hero .btn-ghost:hover { background: #fff; color: var(--dark); }

/* Page head */
.page-head { padding: clamp(56px, 8vw, 88px) 0 clamp(28px, 4vw, 44px); background: var(--tint); border-bottom: 1px solid var(--line); }
.page-head .lead { margin-bottom: 0; }

/* Rates */
.rates { display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }
.rate { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.rate::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--accent); }
.rate:nth-child(4)::before { background: var(--plum); }
.rate-label { color: var(--muted); font-size: .9rem; margin-bottom: 6px; }
.rate-price { font-size: 1.6rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.rate-note { font-size: .92rem; color: var(--muted); margin: 0; }

/* Features */
.features { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); margin-top: 24px; }
.feature { padding: 24px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); }
.feature p { margin: 0; color: var(--muted); font-size: .97rem; }

/* Split and placeholders */
.split-inner { display: grid; gap: 48px; grid-template-columns: 1fr 1fr; align-items: center; }
.ph { margin: 0; border-radius: var(--radius); aspect-ratio: 4 / 3; background:
  linear-gradient(135deg, #0b4a4d 0%, #033537 45%, #7d1d52 100%); box-shadow: var(--shadow); }
.ph-room { aspect-ratio: 16 / 10; margin-bottom: 18px; }
.ph-location { aspect-ratio: 4 / 3; }
img.photo { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* Cards */
.audience { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); margin-top: 24px; }
.card { background: var(--surface); padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); }
.card p { color: var(--muted); margin: 0; }
.types { display: grid; gap: 28px; grid-template-columns: repeat(2, 1fr); }
.type-card { background: var(--surface); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.type-card p { color: var(--muted); }

/* Lists */
.check { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check li { padding-left: 30px; position: relative; }
.check li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg); }

/* Distances table */
.distances { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.distances th, .distances td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); font-weight: 500; }
.distances td { text-align: right; color: var(--muted); }
.distances tr:last-child th, .distances tr:last-child td { border-bottom: 0; }

/* Map */
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--tint); margin-bottom: 12px; }
.map iframe { width: 100%; height: 100%; border: 0; }
.map-placeholder { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 24px; }
.map-placeholder p { max-width: 36ch; color: var(--muted); margin: 0; }

/* Contact */
.contact-list { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0; }
.contact-list dt { font-weight: 600; color: var(--dark); }
.contact-list dd { margin: 0; }
.form { display: grid; gap: 16px; background: var(--surface); padding: clamp(22px, 3vw, 34px); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.field { display: grid; gap: 6px; }
.field span { font-size: .92rem; font-weight: 600; color: var(--dark); }
.field input, .field textarea {
  font: inherit; padding: 12px 14px; border: 0; border-bottom: 2px solid var(--dark);
  background: #f6f8f8; border-radius: 8px 8px 0 0; color: var(--ink); width: 100%;
}
.field input:focus, .field textarea:focus { outline: none; background: #eef6f4; border-bottom-color: var(--accent); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-bottom-color: var(--plum); }
.check-line { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.check-line input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--dark); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 18px; border-radius: 10px; margin-bottom: 18px; font-weight: 500; }
.notice.ok { background: #e3f8f2; color: var(--accent-ink); }
.notice.err { background: #fbe9f1; color: #6a1541; }
.notice.warn { background: #fff6dd; color: #5a4300; display: inline-block; }

/* Legal */
.legal h2 { font-size: 1.2rem; margin-top: 2em; }
.legal p { color: var(--ink); }

/* CTA band */
.cta-band { background: var(--dark); color: #fff; padding: clamp(48px, 6vw, 72px) 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); margin: 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* Footer */
.site-footer { background: var(--dark); color: rgba(255,255,255,.85); padding: 56px 0 24px; }
.site-footer p, .site-footer address, .site-footer li { color: rgba(255,255,255,.85); font-style: normal; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1.4fr 1fr 1fr; }
.footer-logo { height: 40px; width: auto; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-h { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin-bottom: 12px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.copy { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.6); }

/* Accessibility and privacy UI */
.a11y-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 52px; height: 52px; border-radius: 50%;
  border: 3px solid #fff; background: var(--dark); color: #fff; font-weight: 700; cursor: pointer; box-shadow: var(--shadow);
}
.a11y-panel {
  position: fixed; right: 16px; bottom: 80px; z-index: 60; width: min(320px, calc(100% - 32px));
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: 0 16px 48px rgba(0,0,0,.18);
  display: grid; gap: 10px;
}
.a11y-panel[hidden] { display: none; }
.toggle { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.toggle input { margin-top: 5px; accent-color: var(--dark); width: 18px; height: 18px; }

.privacy-layer {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70; max-width: 720px; margin-inline: auto;
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,.22); padding: 22px;
}
.privacy-layer[hidden] { display: none; }
.pl-inner p { color: var(--muted); }
.pl-details { display: grid; gap: 10px; margin: 14px 0; padding: 14px; background: var(--tint); border-radius: 10px; }
.pl-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.pl-actions .btn { min-height: 42px; padding: 10px 18px; font-size: .95rem; }

/* Reduced motion and accessibility toggles */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body.a11y-contrast { --bg: #fff; --tint: #fff; --muted: #1e2427; --line: #1e2427; }
body.a11y-font { font-family: Verdana, Tahoma, Arial, sans-serif; letter-spacing: .01em; }
body.a11y-larger { font-size: 20px; }
body.a11y-noimages .hero-media img, body.a11y-noimages img.photo, body.a11y-noimages .gallery-item img { display: none; }
body.a11y-noimages .hero-media, body.a11y-noimages .gallery-item { background: var(--tint); }
body.a11y-noanim * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
body.a11y-focus :focus-visible { outline: 4px solid #ffb400 !important; outline-offset: 4px; }
body.a11y-underline a { text-decoration: underline !important; }

/* Photos */
img.hero-media { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center center; z-index: -2; margin: 0; max-width: none; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(3,53,55,.94) 0%, rgba(3,53,55,.72) 50%, rgba(3,53,55,.35) 100%);
}
.hero .wrap { position: relative; z-index: 1; }
.photo { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; height: auto; box-shadow: var(--shadow); }
.photo-room { aspect-ratio: 16 / 10; margin-bottom: 18px; }
.gallery { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); margin: 0; }
.gallery-item { margin: 0; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; background: var(--tint); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.03); }
.split-tint { background: var(--dark); color: #fff; }
.split-tint h2 { color: #fff; }
.split-tint p { color: rgba(255,255,255,.85); }
.split-tint .eyebrow { color: var(--accent); }
.split-tint .photo { box-shadow: none; }

/* Responsive */
@media (max-width: 960px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .rates { grid-template-columns: repeat(2, 1fr); }
  .features, .audience { grid-template-columns: 1fr 1fr; }
  .split-inner, .two-col, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .site-header { backdrop-filter: none; background: #fff; }
  .menu-toggle { display: block; }
  /* Vollbild-Menü: deckt die Seite ab, Kopfzeile mit Burger bleibt darüber */
  .nav { position: fixed; inset: 0; z-index: 1; background: #fff; margin: 0; padding: 96px 24px 32px; overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  .nav.open { opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0; }
  .nav li { border-bottom: 1px solid var(--line); }
  .nav a { display: block; padding: 16px 0; border-bottom: 0; font-size: 1.15rem; }
  /* Im Menü untereinander, volle Breite; im Header nur Logo und Burger */
  .header-actions .lang-switch { display: none; }
  .nav-extra { display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin-top: 28px; }
  /* Explizite Maße, weil die allgemeine Regel „.nav a“ Rahmen und Abstand überschreibt */
  .nav-extra .btn, .nav-extra .lang-switch { box-sizing: border-box; display: flex; width: 100%; height: 52px; min-height: 52px; margin: 0; padding: 0 16px; line-height: 1; align-items: center; justify-content: center; border-radius: 999px; font-size: 1rem; }
  .nav-extra .btn-book { border: 0; }
  .nav-extra .lang-switch { border: 1px solid var(--dark); background: transparent; color: var(--dark); }
  .nav-extra .nav-phone { display: block; text-align: center; padding: 12px 0 0; font-size: 1.1rem; font-weight: 600; color: var(--dark); text-decoration: none; border-bottom: 0; }
  .btn-book { padding: 9px 14px; font-size: .88rem; }
  .brand { position: relative; z-index: 2; }
  .brand img { height: 36px; }
  .hero { padding-bottom: 130px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .rates, .features, .audience, .types, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-actions .btn-book { display: none; }
  .contact-list { grid-template-columns: 1fr; }
  .contact-list dt { margin-top: 10px; }
}
