/* Villa Mali San — shared styles
   Inspired by the calm, understated look of bilgereck-konstanz.de:
   cream backgrounds, charcoal/navy text, elegant serif headings,
   with a soft Adriatic-blue accent. */

/* Schriften liegen auf unserem eigenen Server (public/fonts/), NICHT bei Google:
   ein Google-Fonts-Stylesheet würde die IP-Adresse jedes Besuchers an Google
   melden. Es sind variable Schriften — eine Datei deckt alle benutzten
   Schnitte ab (Cormorant 500-700, Inter 400-600). Getrennt nach latin und
   latin-ext, damit deutsche/kroatische/polnische Sonderzeichen da sind, ohne
   dass jeder Besucher beide Dateien lädt. font-display: swap = der Text ist
   sofort lesbar, auch wenn die Schrift noch lädt. */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal; font-weight: 500 700; font-display: swap;
  src: url('../fonts/cormorant-garamond-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal; font-weight: 500 700; font-display: swap;
  src: url('../fonts/cormorant-garamond-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal; font-weight: 400 600; font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal; font-weight: 400 600; font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --cream: #faf7f1;
  --cream-2: #f2ede3;
  --ink: #26303a;          /* charcoal-navy text */
  --ink-soft: #55606b;
  --navy: #1f2d3d;
  --accent: #2f6f8f;       /* Adriatic blue */
  --accent-dark: #245a74;
  --olive: #7a8b5a;
  --line: #e2dccf;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(31, 45, 61, 0.08);
  --shadow-lg: 0 20px 50px rgba(31, 45, 61, 0.14);
  --radius: 6px;
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 .4em;
  letter-spacing: .3px;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.45rem; }

p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent);
  font-family: var(--sans);
  margin-bottom: .8rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .5px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all .2s ease;
  text-align: center;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--cream-2); color: var(--navy); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.15); color:#fff; }
.btn-sm { padding: 9px 18px; font-size: .85rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 241, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}
.brand { display: flex; align-items: baseline; gap: .5rem; }
.brand .logo {
  font-family: var(--serif); font-size: 1.55rem; font-weight: 700;
  color: var(--navy); letter-spacing: .5px;
}
.brand .sub { font-size: .7rem; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); }
.nav-links { display: flex; gap: 28px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--ink); font-weight: 500; font-size: .95rem;
  padding-bottom: 3px; border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--navy); border-bottom-color: var(--accent); }
.nav-cta { display: flex; gap: 12px; align-items: center; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; font-size: 1.6rem; color: var(--navy); }

/* Language switcher */
.lang-switch { display: inline-flex; gap: 2px; background: var(--cream-2); border-radius: 20px; padding: 3px; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 4px; border: 0; cursor: pointer;
  background: transparent; border-radius: 16px; padding: 5px 9px; font-size: .8rem;
  font-family: var(--sans); font-weight: 600; color: var(--ink-soft); line-height: 1;
}
.lang-btn span { font-size: .72rem; }
.lang-btn.active { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.app-bar .lang-switch { background: rgba(255,255,255,.12); }
.app-bar .lang-btn { color: #cfe6ef; }
.app-bar .lang-btn.active { background: rgba(255,255,255,.9); color: var(--navy); }

@media (max-width: 540px) {
  /* keep brand + language switch + menu toggle inside narrow phone screens */
  .container { padding: 0 16px; }
  .brand .sub { display: none; }
  .brand .logo { font-size: 1.2rem; }
  .nav-cta { gap: 8px; }
  .lang-btn { padding: 4px 6px; }
  .lang-btn span { font-size: .66rem; }
}

@media (max-width: 900px) {
  .nav-links {
    position: absolute; top: 74px; left: 0; right: 0;
    background: var(--cream); flex-direction: column; gap: 0;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-links.open { max-height: 420px; }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { display: block; padding: 16px; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .nav-cta .btn { display: none; }
}

/* ---------- Hero ---------- */
/* First screen = header + hero + facts bar, exactly one viewport tall:
   the facts bar (with the full amenity list) is always in view. */
.hero {
  position: relative; min-height: calc(100vh - 74px); min-height: calc(100svh - 74px);
  display: flex; flex-direction: column;
  color: #fff; text-align: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: #d9d5cc; /* neutral placeholder while the photo loads — NO blue, NO filter */
}
.hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%; /* show the house, not mostly pool water */
}
/* no overlay/filter on the hero photo (owner request) — text stays readable via shadows */
.hero-content { position: relative; z-index: 2; max-width: 820px; margin: auto; padding: 40px 24px 20px; }
.hero h1 { color: #fff; text-shadow: 0 2px 26px rgba(0,0,0,.65), 0 1px 4px rgba(0,0,0,.55); }
.hero .lead { font-size: 1.25rem; color: #fff; margin: 1rem auto 2rem; max-width: 620px; text-shadow: 0 1px 16px rgba(0,0,0,.7), 0 1px 3px rgba(0,0,0,.6); }
.hero .eyebrow { color: #e8f4fa; text-shadow: 0 1px 10px rgba(0,0,0,.7); }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.scroll-hint { position: relative; z-index: 2; align-self: center; margin: 0 auto 14px; color: #fff; opacity:.8; font-size:1.4rem; animation: bob 2s infinite; }
@keyframes bob { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(8px);} }

/* Short screens (laptops, 720p): compact hero so the full facts bar stays on screen */
@media (max-height: 820px) {
  .hero h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
  .hero .lead { font-size: 1.05rem; margin: .7rem auto 1.4rem; }
  .hero-content { padding: 16px 24px 6px; }
  .hero .btn { padding: 11px 22px; font-size: .9rem; }
  .scroll-hint { margin-bottom: 8px; }
  .facts-bar .container { padding-top: 10px; padding-bottom: 10px; gap: 8px 18px; }
  .fact { font-size: .82rem; }
}

/* ---------- Facts bar: one cohesive row of uniform pills ---------- */
.facts-bar { position: relative; z-index: 2; background: var(--navy); color: #dfe7ee; width: 100%; }
.facts-bar .container { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; padding-top: 14px; padding-bottom: 14px; }
.fact {
  display: inline-flex; align-items: center; gap: 7px; font-size: .84rem; line-height: 1;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: 20px; padding: 8px 14px; white-space: nowrap;
}
.fact strong { color: #fff; }
.fact .score { background: var(--accent); color: #fff; font-weight: 700; padding: 3px 8px; border-radius: 12px; font-size: .82rem; }
.fact .stars { color: #f2c14e; letter-spacing: 1px; display: inline-flex; }
@media (max-width: 700px) { .facts-bar .container { gap: 8px; } .fact { font-size: .78rem; padding: 7px 11px; } }

/* ---------- Sections ---------- */
section { padding: 92px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }
.bg-cream2 { background: var(--cream-2); }
.bg-navy { background: var(--navy); color: #e9edf1; }
.bg-navy h2, .bg-navy h3 { color: #fff; }

/* Intro / about */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.feature-list { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.feature-list li { padding-left: 26px; position: relative; color: var(--ink-soft); }
.feature-list li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 9px; height: 9px; border: 2px solid var(--accent); border-radius: 2px; }
.media-frame {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3; background: var(--cream-2);
}
.media-frame svg { width: 100%; height: 100%; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-click { cursor: pointer; }
picture { display: contents; } /* layout-transparent: the inner img fills the frame */

/* Sections open right below the sticky header when reached via a nav tab */
section { scroll-margin-top: 74px; }

/* "Haus" view: fills exactly one screen — title + 6 photos, nothing else.
   Tile height follows the viewport so the next section never bleeds in. */
#haus {
  min-height: calc(100vh - 74px);
  padding: 26px 0 30px; /* title sits right below the header, no dead space */
}
/* Haus uses the full screen width, not the narrow content column */
#haus .container { width: 100%; max-width: none; padding: 0 32px; }
#haus .section-head { margin-bottom: 20px; }
.house-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.house-tile {
  /* photos grow to fill the remaining screen height (2 rows) */
  height: clamp(200px, calc((100vh - 288px) / 2), 480px);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); cursor: pointer;
}
.house-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.house-tile:hover img { transform: scale(1.04); }
@media (max-width: 820px) {
  #haus { min-height: 0; display: block; }   /* phones scroll naturally */
  .house-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .house-tile { height: auto; aspect-ratio: 4/3; }
}

/* Apartments — "Wohnungen" is one full screen: all 4 cards fit without bleeding */
#wohnungen {
  min-height: calc(100vh - 74px);
  display: flex; align-items: center;
  padding: 20px 0 24px;
}
#wohnungen .container { width: 100%; max-width: none; padding: 0 32px; }
#wohnungen .section-head { margin-bottom: 16px; }
#wohnungen .section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
#wohnungen .section-head p { margin-bottom: 0; }
#wohnungen .card-img { aspect-ratio: 16/10; }
#wohnungen .card-body { padding: 14px 16px 16px; }
#wohnungen .card-body h3 { font-size: 1.2rem; }
#wohnungen .card-body p { font-size: .85rem; }
#wohnungen .card .meta { font-size: .72rem; margin-bottom: .3rem; }
#wohnungen .tag { font-size: .7rem; padding: 3px 9px; }
#wohnungen .cat-chips { padding: 8px 12px 0; gap: 4px; }
#wohnungen .cat-chip { font-size: .68rem; padding: 3px 9px; }
@media (max-height: 820px) {
  #wohnungen .section-head p { display: none; }
  /* flatter images + no feature tags: makes room for the 3 season price lines + button */
  #wohnungen .card-img { aspect-ratio: 16/7; }
  #wohnungen .card-body p { display: none; }
  #wohnungen .tags { display: none; }
  #wohnungen .price-lines { margin-top: 8px; }
  #wohnungen .card-book { margin-top: 6px; }
}

/* "Verleih", "Lage" and "Kontakt" are full-screen views too: next section stays below the fold */
#verleih, #lage, #kontakt {
  min-height: calc(100vh - 74px);
  display: flex; align-items: center;
  padding: 40px 0;
}
#verleih .container, #lage .container, #kontakt .container { width: 100%; }
#kontakt textarea { resize: vertical; min-height: 140px; }
#kontakt .contact-phone { margin-top: 10px; font-size: .95rem; }
/* honeypot: present in the DOM for bots, never shown to a person */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img { aspect-ratio: 3/2; overflow: hidden; background: var(--cream-2); position: relative; }
.card-img svg { width: 100%; height: 100%; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.card-img[data-gal] { cursor: pointer; }
.card-img[data-gal]:hover img { transform: scale(1.04); }
.photo-count {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  background: rgba(22,33,44,.72); color: #fff; font-size: .74rem; font-weight: 600;
  padding: 4px 10px; border-radius: 20px; letter-spacing: .3px; pointer-events: none;
}

/* category quick-links on a card: jump straight to that room in the slideshow */
.cat-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px 0; }
.cat-chip {
  border: 1.5px solid var(--line); background: var(--cream); color: var(--navy);
  border-radius: 20px; padding: 4px 12px; font-size: .76rem; font-weight: 600;
  font-family: var(--sans); cursor: pointer; transition: all .15s ease;
}
.cat-chip:hover { border-color: var(--accent); background: var(--accent); color: #fff; }
.card-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: .3rem; }
.card .meta { color: var(--accent); font-weight: 600; font-size: .85rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: .6rem; }
.card .tags { margin-top: auto; padding-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag { background: var(--cream-2); color: var(--ink-soft); font-size: .78rem; padding: 4px 11px; border-radius: 20px; }

/* Rentals highlight */
.rental-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .rental-grid { grid-template-columns: 1fr; } }
.rental-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow); text-align: center;
}
.rental-card .icon { font-size: 2.6rem; margin-bottom: .5rem; }
.rental-card .price { font-family: var(--serif); font-size: 1.7rem; color: var(--navy); margin: .3rem 0; }
.rental-card .price small { font-size: .9rem; color: var(--ink-soft); font-family: var(--sans); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 820px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery .tile { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery .tile svg { width: 100%; height: 100%; }
.gallery .tile.wide { grid-column: span 2; aspect-ratio: 2; }
.gallery .tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery .tile[data-gal] { cursor: pointer; }
.gallery .tile[data-gal]:hover img { transform: scale(1.05); }

/* ---------- Lightbox slideshow ---------- */
.lb {
  position: fixed; inset: 0; z-index: 200; display: none; flex-direction: column;
  background: rgba(16, 24, 32, .96); color: #fff;
}
.lb.open { display: flex; }
.lb-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px 6px; }
.lb-title { font-family: var(--serif); font-size: 1.3rem; letter-spacing: .5px; }
.lb-close {
  background: rgba(255,255,255,.1); border: 0; color: #fff; cursor: pointer;
  width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.lb-close:hover { background: rgba(255,255,255,.22); }
.lb-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 6px 16px 10px; }
.lb-chip {
  border: 1.5px solid rgba(255,255,255,.35); background: transparent; color: #fff;
  border-radius: 20px; padding: 5px 14px; font-size: .8rem; font-weight: 600;
  font-family: var(--sans); cursor: pointer; transition: all .15s ease;
}
.lb-chip:hover { border-color: #fff; }
.lb-chip.active { background: #fff; color: var(--navy); border-color: #fff; }
.lb-stage { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 64px; }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lb-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  background: rgba(255,255,255,.12); border: 0; color: #fff; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.lb-arrow:hover { background: rgba(255,255,255,.28); }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
.lb-bottom { display: flex; align-items: center; justify-content: space-between; padding: 10px 20px 16px; font-size: .9rem; color: rgba(255,255,255,.85); }
@media (max-width: 700px) {
  .lb-stage { padding: 0 8px; }
  .lb-arrow { width: 40px; height: 40px; background: rgba(0,0,0,.35); }
  .lb-title { font-size: 1.05rem; }
}

/* Location */
.info-cols { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; margin-top: 20px; }
@media (max-width: 760px) { .info-cols { grid-template-columns: 1fr; } }
.info-item h4 { color: var(--accent); margin-bottom: .2rem; }
.info-item .big { font-family: var(--serif); font-size: 2.2rem; color: var(--navy); }
.loc-address { display: flex; align-items: center; gap: 9px; margin: 26px 0 14px; font-weight: 600; color: var(--navy); }
.loc-address svg { color: var(--accent); flex-shrink: 0; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 560px; margin: 0 auto 1.6rem; }

/* Footer */
.site-footer { background: #16212c; color: #aeb9c4; padding: 60px 0 30px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 1rem; }
.site-footer a { color: #cdd6df; }
.site-footer .logo { font-family: var(--serif); font-size: 1.5rem; color:#fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; text-align: center; font-size: .82rem; color: #7c8894; }
.footer-bottom a { color: #9aa6b2; }

/* Impressum: reiner Textblock aus der Verwaltung */
.imprint-text p { margin-bottom: 1rem; }
.imprint-text p:last-child { margin-bottom: 0; }
.imprint-text h3 { margin-bottom: .6rem; }

/* ---------- Auth / app pages ---------- */
.app-main { min-height: calc(100vh - 74px); padding: 48px 0 80px; }
.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 32px;
}
.login-wrap { max-width: 440px; margin: 6vh auto; }
.login-wrap .panel { padding: 40px; }

label { display: block; font-weight: 600; font-size: .88rem; margin: 14px 0 6px; color: var(--navy); }
input, select, textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius);
  font-family: var(--sans); font-size: 1rem; color: var(--ink); background: var(--cream);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); background:#fff; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.hint { font-size: .82rem; color: var(--ink-soft); margin-top: 4px; }

.notice { padding: 12px 16px; border-radius: var(--radius); margin: 14px 0; font-size: .92rem; }
.notice.error { background: #fbe9e7; color: #a3352b; border: 1px solid #f3c9c3; }
.notice.success { background: #e7f3ec; color: #256b42; border: 1px solid #c2e2ce; }
.notice.info { background: #e8f1f6; color: #245a74; border: 1px solid #c6dee9; }

/* App header */
.app-bar {
  background: var(--navy); color: #fff; height: 64px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 24px;
}
.app-bar .logo { font-family: var(--serif); font-size: 1.25rem; color: #fff; }
.app-bar .right { display: flex; gap: 14px; align-items: center; }
.app-bar a, .app-bar span { color: #cfe6ef; font-size: .9rem; }

.badge { display: inline-block; padding: 3px 12px; border-radius: 20px; font-size: .76rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.badge.pending { background: #fdf0d5; color: #8a5a00; }
.badge.confirmed { background: #d7 efe0; background:#d7efe0; color: #256b42; }
.badge.cancelled { background: #eee; color: #888; text-decoration: line-through; }

table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: .76rem; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-soft); }
.table-wrap { overflow-x: auto; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 18px; margin-bottom: 28px; }
.stat { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.stat .num { font-family: var(--serif); font-size: 2.2rem; color: var(--navy); line-height:1; }
.stat .lbl { font-size: .82rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing:1px; margin-top: 6px; }

.tabs { display:flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 26px; flex-wrap: wrap; }
.tab-btn { background:none; border:0; padding: 12px 18px; font-family:var(--sans); font-weight:600; font-size:.95rem; color: var(--ink-soft); cursor:pointer; border-bottom: 3px solid transparent; }
.tab-btn.active { color: var(--navy); border-bottom-color: var(--accent); }
.tab-panel { display:none; }
.tab-panel.active { display:block; }

.avail-pill { display:inline-flex; align-items:center; gap:8px; background: var(--cream-2); padding: 10px 18px; border-radius: 30px; font-weight:600; color: var(--navy); }
.avail-dot { width:10px; height:10px; border-radius:50%; background: var(--olive); }
.avail-dot.none { background: #c0392b; }

.mini-list { list-style:none; padding:0; margin: 8px 0 0; }
.mini-list li { display:flex; justify-content:space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size:.9rem; }

/* ---------- Fehler & Wünsche (Admin) ---------- */
.issue-item { border:1px solid var(--line); border-radius:var(--radius); padding:16px 18px; margin-bottom:12px; background:var(--cream); }
.issue-item .issue-head { display:flex; gap:10px; align-items:baseline; flex-wrap:wrap; }
.issue-item .issue-detail { white-space:pre-wrap; margin-top:8px; font-size:.92rem; }
.issue-item .issue-meta { font-size:.8rem; color:var(--ink-soft); }

.inline-actions { display:flex; gap:6px; flex-wrap: wrap; }
.link-danger { color:#c0392b; cursor:pointer; background:none; border:0; font-size:.85rem; padding:0; }
.link-btn { color: var(--accent); cursor:pointer; background:none; border:0; font-size:.85rem; padding:0; }

/* ---------- Flexible-date windows (booking results) ---------- */
.win-chips { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.win-chip {
  border:1.5px solid var(--line); background:var(--cream); border-radius:20px;
  padding:7px 14px; font-size:.82rem; cursor:pointer; color:var(--navy); font-family:var(--sans);
  display:inline-flex; align-items:center; gap:7px; transition:all .15s ease;
}
.win-chip:hover { border-color:var(--accent); background:#fff; }
.win-chip .off { background:var(--cream-2); color:var(--ink-soft); border-radius:10px; padding:1px 7px; font-size:.72rem; font-weight:600; }
.win-chip.exact { border-color:var(--accent); background:var(--accent); color:#fff; }
.win-chip.exact .off { background:rgba(255,255,255,.25); color:#fff; }

/* ---------- Visitor availability calendar ---------- */
.vcal-top { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:14px; }
.vcal-top h3 { margin:0; min-width:150px; text-align:center; }
.vcal-top select { width:auto; }
.vcal { display:grid; grid-template-columns:repeat(7,1fr); gap:4px; }
.vcal .wd { text-align:center; font-size:.72rem; font-weight:600; color:var(--ink-soft); text-transform:uppercase; padding:4px 0; }
.vcal .cell { aspect-ratio:1; display:flex; align-items:center; justify-content:center; border-radius:6px; font-size:.9rem; }
.vcal .cell.empty { background:transparent; }
.vcal .cell.free { background:#e7f3ec; color:#256b42; cursor:pointer; border:1px solid #c2e2ce; }
.vcal .cell.free:hover { background:#256b42; color:#fff; }
.vcal .cell.booked { background:#f3eae8; color:#b9a19b; text-decoration:line-through; }
.vcal .cell.past { background:transparent; color:#c9c3b6; }
.vcal-legend { display:flex; gap:16px; margin-top:12px; font-size:.8rem; color:var(--ink-soft); }
.vcal-legend i { display:inline-block; width:12px; height:12px; border-radius:3px; margin-right:5px; vertical-align:-1px; }
.vcal-legend i.free { background:#e7f3ec; border:1px solid #c2e2ce; } .vcal-legend i.booked { background:#f3eae8; }

/* ---------- Admin calendar ---------- */
.cal-head { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:18px; }
.cal-head h3 { min-width:190px; text-align:center; }
.cal-legend { display:flex; gap:14px; flex-wrap:wrap; margin-left:auto; font-size:.8rem; color:var(--ink-soft); }
.cal-legend span { display:inline-flex; align-items:center; gap:5px; }
.cal-legend .dot, .cal-cell .dot { width:11px; height:11px; border-radius:3px; display:inline-block; }
.dot.confirmed { background:#3f9b6a; } .dot.pending { background:#e0a63b; }
.dot.bike { background:#2f6f8f; } .dot.sup { background:#8f6f9a; } .dot.external { background:#8a94a0; } .dot.blocked { background:#5a6472; }

.cal-grid { border-collapse:collapse; font-size:.8rem; min-width:100%; }
.cal-grid th, .cal-grid td { border:1px solid var(--line); padding:0; text-align:center; }
.cal-grid thead th { padding:6px 4px; font-weight:600; color:var(--ink-soft); background:var(--cream-2); min-width:30px; position:sticky; top:0; }
.cal-grid thead th.wknd { color:#b06a4a; }
.cal-grid .row-label { text-align:left; padding:8px 12px; font-weight:600; color:var(--navy); white-space:nowrap; background:#fff; position:sticky; left:0; z-index:1; box-shadow:1px 0 0 var(--line); min-width:120px; }
.cal-grid td.day { height:38px; position:relative; }
.cal-grid td.day.wknd { background:#faf6ee; }
.cal-grid td.day.today { outline:2px solid var(--accent); outline-offset:-2px; }
/* Direktes Sperren im Admin-Kalender: freie Tage sind klickbar, der erste Klick markiert den Beginn. */
.cal-grid td.day.selectable { cursor:pointer; }
.cal-grid td.day.selectable:hover { background:#eef4f7; }
.cal-grid td.day.selstart { background:#d8e8f0; outline:2px solid #2f6f8f; outline-offset:-2px; }
.cal-seg { position:absolute; inset:4px 0; display:flex; align-items:center; justify-content:center; color:#fff; font-size:.7rem; font-weight:600; cursor:pointer; overflow:hidden; white-space:nowrap; }
.cal-seg.confirmed { background:#3f9b6a; } .cal-seg.pending { background:#e0a63b; } .cal-seg.external { background:#8a94a0; }
.cal-seg.blocked { background:#5a6472; background-image:repeating-linear-gradient(45deg, rgba(255,255,255,.13) 0 4px, transparent 4px 8px); }
.cal-seg.start { border-radius:5px 0 0 5px; left:14%; } .cal-seg.end { border-radius:0 5px 5px 0; right:14%; }
.cal-seg.single { border-radius:5px; left:14%; right:14%; }
.cal-mini { display:inline-block; width:8px; height:8px; border-radius:50%; margin:1px; }
.cal-mini.bike { background:#2f6f8f; } .cal-mini.sup { background:#8f6f9a; }
.cal-rentalcell { display:flex; align-items:center; justify-content:center; height:38px; gap:1px; flex-wrap:wrap; }

/* ---------- Season prices on apartment cards: three compact lines ---------- */
.price-lines { display: flex; flex-direction: column; gap: 3px; min-width: 0; margin-top: 14px; }
.card-book { margin-top: 10px; align-self: flex-end; }
.price-line { display: flex; align-items: baseline; gap: 8px; justify-content: space-between; font-size: .8rem; color: var(--ink-soft); line-height: 1.35; white-space: nowrap; }
.price-line strong { font-family: var(--serif); font-size: .98rem; color: var(--navy); font-weight: 600; }
.price-line small { font-size: .72rem; margin-left: 3px; }
@media (max-height: 820px) { .price-line { font-size: .74rem; line-height: 1.25; } .price-line strong { font-size: .9rem; } }

/* ---------- Mobile phones (<=640px): decluttered first screen + compact Lage ----------
   Owner 2026-07-27: hero headline + lead hidden on phones (view too crowded);
   facts stay ONE uniform pill bar, just denser; Lage photo hidden, distances in one row. */
@media (max-width: 640px) {
  .hero h1, .hero .lead { display: none; }
  .hero .scroll-hint { display: none; }
  .hero-content { padding: 24px 16px 10px; }

  .facts-bar .container { gap: 6px; padding-top: 8px; padding-bottom: 8px; }
  .fact { font-size: .72rem; padding: 6px 10px; gap: 5px; }
  .fact .score { font-size: .72rem; padding: 2px 6px; }
  .fact .stars svg { width: 12px; height: 12px; }

  #lage .media-frame { display: none; }
  #lage .split { gap: 0; }
  .info-cols { grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; text-align: center; }
  .info-item .big { font-size: 1.5rem; }
  .info-item h4 { font-size: .78rem; }
}
