/* =====================================================
   Hausboot-Vermietung – Design
   Palette: Tiefwasser-Petrol / Gischt / Wasserlinie-Teal
   Akzent "Boje" nur für primäre Handlungen.
   ===================================================== */

@font-face {
  /* Optional: Display-Schrift lokal hosten (DSGVO-konform, kein Google-CDN).
     Dateien nach assets/fonts/ laden – Fallback funktioniert auch ohne. */
  font-family: 'Bricolage Grotesque';
  src: url('../fonts/BricolageGrotesque-Bold.woff2') format('woff2');
  font-weight: 700; font-display: swap;
}

:root {
  --ink:   #10333b;
  --ink-2: #3d5a61;
  --bg:    #f2f6f5;
  --card:  #ffffff;
  --teal:  #22707a;
  --teal-soft: #e2eeef;
  --buoy:  #d94f26;
  --buoy-dark: #b83f1b;
  --brass: #b58a3f;
  --mist:  #d7e2e0;
  --ok:    #2f7d4f;
  --err:   #b3341f;
  --radius: 14px;
  --display: 'Bricolage Grotesque', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0; font-family: var(--body); color: var(--ink);
  background: var(--bg); line-height: 1.6; font-size: 16.5px;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); }
code { background: var(--teal-soft); padding: .1em .4em; border-radius: 6px; font-size: .9em; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 22px; }
.wrap--narrow { max-width: 760px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.15rem; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .78rem;
  font-weight: 700; color: var(--brass); margin: 0 0 .8em;
}
.lead { font-size: 1.08rem; color: var(--ink-2); max-width: 62ch; }
.hint { font-size: .85rem; color: var(--ink-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; border: 2px solid transparent; border-radius: 999px;
  padding: .72em 1.5em; font-weight: 700; font-size: 1rem; cursor: pointer;
  text-decoration: none; font-family: var(--body); transition: background .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--buoy); color: #fff; }
.btn--primary:hover { background: var(--buoy-dark); }
.btn--primary:disabled { background: var(--mist); color: var(--ink-2); cursor: not-allowed; }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--s { padding: .45em 1.1em; font-size: .9rem; }
.btn--l { width: 100%; padding: .95em; font-size: 1.05rem; }
.btn:focus-visible, .week:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 3px solid var(--brass); outline-offset: 2px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(242, 246, 245, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--mist);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand {
  display: flex; align-items: center; gap: .55em; font-family: var(--display);
  font-weight: 700; font-size: 1.1rem; color: var(--ink); text-decoration: none;
}
.brand__logo { width: 40px; height: 40px; object-fit: contain; display: block; }
.nav { display: flex; align-items: center; gap: 1.4em; }
.nav a:not(.langsw__a) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:not(.langsw__a):hover { color: var(--teal); }

/* Sprachumschalter */
.langsw { display: inline-flex; gap: 2px; border: 1.5px solid var(--mist); border-radius: 999px; padding: 2px; }
.langsw--center { justify-content: center; margin: 0 auto 18px; }
.langsw__a {
  display: inline-block; padding: 3px 10px; border-radius: 999px; text-decoration: none;
  font-size: .8rem; font-weight: 700; letter-spacing: .04em; color: var(--ink-2);
}
.langsw__a:hover { color: var(--teal); }
.langsw__a.is-active { background: var(--teal); color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #f4faf9; overflow: hidden; }
.hero__media {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(9,38,44,.94) 0%, rgba(13,52,60,.82) 38%, rgba(13,52,60,.42) 75%, rgba(13,52,60,.30) 100%),
    url('../img/hero.jpg') center 30% / cover no-repeat;
}
.hero__media::after { /* ruhige Wellenlinien */
  content: ''; position: absolute; inset: 0; opacity: .10;
  background-image: repeating-linear-gradient(180deg, transparent 0 46px, rgba(255,255,255,.35) 46px 47px);
  mask-image: linear-gradient(180deg, transparent 30%, #000 100%);
}
.hero__inner { position: relative; padding: 110px 22px 150px; }
.hero__sub { max-width: 46ch; font-size: 1.12rem; color: #d6e5e4; }
.hero__cta { display: flex; gap: .8em; flex-wrap: wrap; margin-top: 1.6em; }
.hero .btn--ghost { color: #f4faf9; }
.waterline { position: absolute; bottom: -1px; left: 0; width: 100%; height: 70px; }
.waterline path { fill: var(--bg); }

/* ---------- Fakten-Leiste ---------- */
.facts { margin-top: -46px; position: relative; z-index: 2; }
.facts__row {
  display: flex; flex-wrap: wrap; gap: 1px; background: var(--mist);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 12px 30px rgba(16, 51, 59, .10);
}
.fact { flex: 1 1 120px; background: var(--card); text-align: center; padding: 18px 10px; }
.fact__n { display: block; font-family: var(--display); font-weight: 700; font-size: 1.4rem; }
.fact__l { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); }

/* ---------- Sektionen ---------- */
.section { padding: 84px 0; }
.section--tint { background: linear-gradient(180deg, #eaf1f0, var(--bg)); }
.cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.amenities { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.amenities li { background: var(--card); border: 1px solid var(--mist); border-radius: 10px; padding: 10px 14px; }
.amenities li::before { content: '⚓ '; color: var(--teal); font-size: .85em; }

/* Blickfang-Bild (Panorama) */
.feature { margin: 0 0 40px; border-radius: var(--radius); overflow: hidden; box-shadow: 0 14px 34px rgba(16,51,59,.14); }
.feature img { width: 100%; height: clamp(240px, 42vw, 520px); object-fit: cover; display: block; }
.feature--loc { margin: 34px 0 0; }
.feature--loc img { height: clamp(220px, 34vw, 420px); }

/* Foto-Galerie */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 40px; }
.shot {
  margin: 0; position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--mist); aspect-ratio: 4 / 3;
}
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.shot:hover img { transform: scale(1.05); }
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 12px 8px;
  color: #fff; font-size: .85rem; font-weight: 700;
  background: linear-gradient(180deg, transparent, rgba(11,44,51,.78));
}
.shot:first-child { grid-column: span 2; grid-row: span 2; }

/* Grundrisse / Aufteilung */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plan { margin: 0; background: var(--card); border: 1px solid var(--mist); border-radius: var(--radius); overflow: hidden; }
.plan img { width: 100%; height: 220px; object-fit: contain; background: #fff; display: block; padding: 10px; }
.plan figcaption { padding: 10px 14px; font-weight: 700; font-size: .9rem; color: var(--ink-2); border-top: 1px solid var(--mist); }

/* Genuss-Split (Bild + Text) */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.split__media { min-height: 320px; }
.split__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.split__text { background: var(--ink); color: #eaf2f1; padding: clamp(30px, 5vw, 70px); display: flex; flex-direction: column; justify-content: center; }
.split__text h2 { color: #fff; }
.split__text .eyebrow { color: var(--brass); }

/* Stimmungs-Band (Vollbild) */
.band { position: relative; height: clamp(240px, 34vw, 420px); overflow: hidden; }
.band__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.band__overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(90deg, rgba(11,44,51,.5), rgba(11,44,51,.25)); }
.band__line { color: #fff; font-family: var(--display); font-weight: 700; text-align: center;
  font-size: clamp(1.4rem, 3.4vw, 2.4rem); letter-spacing: -.01em; padding: 0 22px; max-width: 20ch;
  text-shadow: 0 2px 20px rgba(0,0,0,.35); }

/* ---------- Belegungskalender: der "Wochen-Steg" ---------- */
.legend { display: flex; gap: 1.2em; flex-wrap: wrap; margin: 1em 0 1.6em; font-size: .88rem; }
.lg::before { content: ''; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.lg--frei::before { background: var(--card); border: 2px solid var(--teal); }
.lg--angefragt::before { background: repeating-linear-gradient(45deg, #e8d9a8 0 4px, #f5edd6 4px 8px); }
.lg--belegt::before { background: var(--ink); }
.lg--anfrage::before { background: var(--mist); }

.calendar { display: grid; gap: 30px; }
.month__title { color: var(--ink-2); border-bottom: 2px solid var(--mist); padding-bottom: 6px; }
.month__weeks { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }

.week {
  font-family: var(--body); text-align: left; cursor: pointer;
  background: var(--card); border: 2px solid var(--mist); border-radius: 12px;
  padding: 12px 14px; display: flex; flex-direction: column; gap: 2px;
  transition: border-color .12s, transform .12s, box-shadow .12s;
}
.week__dates { font-weight: 700; font-size: .95rem; }
.week__price { color: var(--teal); font-weight: 700; font-variant-numeric: tabular-nums; }
.week--frei:hover { border-color: var(--teal); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(16,51,59,.10); }
.week.is-selected { border-color: var(--buoy); background: #fdf1ec; }
.week.is-selected .week__price { color: var(--buoy-dark); }
.week:disabled { cursor: not-allowed; }
.week--belegt { background: var(--ink); border-color: var(--ink); color: #cfdcdc; }
.week--belegt .week__price { color: #9fb6b6; }
.week--angefragt { background: repeating-linear-gradient(45deg, #f7f0dc 0 8px, #fdf9ee 8px 16px); border-color: #e3d5a7; }
.week--angefragt .week__price { color: #8a7434; }
.week--anfrage, .week--gesperrt { background: #e8eeed; color: var(--ink-2); }
.week--anfrage .week__price, .week--gesperrt .week__price { color: var(--ink-2); font-weight: 600; }

/* ---------- Anfrageformular ---------- */
.selection {
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--teal-soft); border: 1px solid var(--teal); border-radius: var(--radius);
  padding: 14px 18px; margin-bottom: 22px;
}
.book-form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 14px; }
.book-form input, .book-form select, .book-form textarea {
  width: 100%; margin-top: 5px; padding: 11px 12px; font: inherit;
  border: 1.5px solid var(--mist); border-radius: 10px; background: var(--card); color: var(--ink);
}
.book-form input:focus, .book-form select:focus, .book-form textarea:focus { border-color: var(--teal); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.check { display: flex; gap: 10px; font-weight: 400 !important; margin: 8px 0 20px; }
.check input { width: auto; margin-top: 4px; }
.hp { position: absolute; left: -9999px; top: -9999px; }

/* ---------- Meldungen ---------- */
.flash { border-radius: 10px; padding: 12px 16px; margin: 0 0 14px; border: 1px solid; }
.flash--ok  { background: #e8f4ec; border-color: var(--ok); color: #1d5637; }
.flash--err { background: #fbeae6; border-color: var(--err); color: #7c2314; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c8d8d8; padding: 26px 0; margin-top: 60px; }
.footer-row { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.site-footer a { color: #e8f1f0; margin-left: 1.2em; }

/* =====================================================
   Backend (Admin)
   ===================================================== */
.admin-body { background: #eef2f1; }
.auth-card {
  max-width: 420px; margin: 10vh auto; background: var(--card);
  border-radius: var(--radius); padding: 34px; border: 1px solid var(--mist);
  box-shadow: 0 14px 40px rgba(16,51,59,.12);
}
.auth-card label { display: block; font-weight: 600; margin-bottom: 14px; font-size: .92rem; }
.auth-card input { width: 100%; margin-top: 5px; padding: 11px 12px; font: inherit; border: 1.5px solid var(--mist); border-radius: 10px; }

.admin-top { background: var(--ink); color: #eaf2f1; }
.admin-top .wrap { display: flex; align-items: center; gap: 1.4em; height: 58px; }
.admin-top a { color: #cfe0df; text-decoration: none; font-weight: 600; font-size: .93rem; }
.admin-top a:hover, .admin-top a.active { color: #fff; }
.admin-top .spacer { flex: 1; }
.admin-main { padding: 30px 0 70px; }

.card {
  background: var(--card); border: 1px solid var(--mist); border-radius: var(--radius);
  padding: 22px 24px; margin-bottom: 22px;
}
.card h2, .card h3 { margin-top: 0; }

table.list { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.list th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); border-bottom: 2px solid var(--mist); padding: 8px 10px; }
table.list td { padding: 10px; border-bottom: 1px solid var(--mist); vertical-align: top; }
table.list tr:hover td { background: #f6faf9; }

.badge { display: inline-block; border-radius: 999px; padding: 2px 11px; font-size: .78rem; font-weight: 700; }
.badge--angefragt   { background: #f7f0dc; color: #8a7434; }
.badge--bestaetigt  { background: #e2eeef; color: var(--teal); }
.badge--abgelehnt, .badge--storniert { background: #fbeae6; color: var(--err); }
.badge--abgeschlossen { background: #e8f4ec; color: var(--ok); }
.badge--offen { background: #fbeae6; color: var(--err); }
.badge--bezahlt, .badge--erhalten, .badge--zurueckgezahlt { background: #e8f4ec; color: var(--ok); }

.admin-main form.inline { display: inline; }
.admin-main input, .admin-main select, .admin-main textarea {
  font: inherit; padding: 9px 11px; border: 1.5px solid var(--mist); border-radius: 9px; background: #fff;
}
.admin-main textarea { width: 100%; }
.admin-main label { font-weight: 600; font-size: .9rem; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px 18px; }
.form-grid label { display: block; }
.form-grid input, .form-grid select { width: 100%; margin-top: 4px; }

.task { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--mist); }
.task--done .task__title { text-decoration: line-through; color: var(--ink-2); }
.task__due { margin-left: auto; font-size: .82rem; color: var(--ink-2); white-space: nowrap; }
.task__due--over { color: var(--err); font-weight: 700; }

.price-grid td input { width: 110px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat { background: var(--card); border: 1px solid var(--mist); border-radius: var(--radius); padding: 16px 18px; }
.stat b { display: block; font-family: var(--display); font-size: 1.6rem; }
.stat span { font-size: .82rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Responsiv ---------- */
@media (max-width: 860px) {
  .cols { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split__media { min-height: 240px; }
  .nav a:not(.btn):not(.langsw__a) { display: none; }
  .hero__inner { padding: 80px 22px 130px; }
}
@media (max-width: 560px) {
  .grid2 { grid-template-columns: 1fr; }
  .month__weeks { grid-template-columns: 1fr 1fr; }
  .facts__row { border-radius: 10px; }
  .shot:first-child { grid-column: span 2; grid-row: auto; }
}
