/* Werkblau: Marineblau, warmer Sand, Messing als Akzent. Archivo für Überschriften, Source Sans 3 für Text.
   Schriften: fonts.css (vom eigenen Server, keine Verbindung zu Google). */

:root {
  --navy: #1f3a5f;        /* Primär */
  --navy-dark: #0f2440;
  --blue: #4f7cac;
  --sand: #f6f3ee;
  --brass: #c9a96e;       /* Akzent */
  --ink: #22262c;
  --text: #3a3f47;
  --muted: #5a606b;
  --line: #e6e1d8;
  --line-strong: #cdc6b9;
  --white: #ffffff;
  --error: #a8261b;
  --radius: 4px;
  --max: 1120px;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--body); font-size: 18px; line-height: 1.55; color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--navy-dark); }
h1, h2, h3 { font-family: var(--display); color: var(--navy); line-height: 1.1; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -.015em; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.container { max-width: var(--max); margin: 0 auto; padding-inline: 24px; }
.label { font-family: var(--display); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: 1em;
  display: flex; align-items: center; gap: 10px; }
.label::before { content: ""; width: 28px; height: 2px; background: var(--brass); }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--text); max-width: 60ch; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.35em; border: 1.5px solid var(--navy);
  border-radius: var(--radius); background: var(--navy); color: var(--white); font-family: var(--display); font-weight: 700; font-size: .95rem;
  text-decoration: none; cursor: pointer; line-height: 1.2; }
.btn:hover { background: var(--navy-dark); border-color: var(--navy-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--brass); }
.btn-outline:hover { background: var(--white); color: var(--navy-dark); border-color: var(--brass); }
.btn-block { width: 100%; }

/* Kopfzeile: dunkelblaue Leiste */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--navy); color: var(--white); }
.site-header .container { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { text-decoration: none; color: var(--white); line-height: 1.1; margin-right: auto; }
.brand:hover { color: var(--white); }
.brand strong { display: block; font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: -.01em; }
.brand { min-width: 0; }
.brand span { display: block; font-size: .8rem; color: #c3cedb; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--white); text-decoration: none; font-size: 1rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--brass); }
.lang-switch { display: flex; gap: 2px; font-size: .82rem; font-weight: 600; letter-spacing: .06em; }
.lang-switch a { color: #c3cedb; text-decoration: none; padding: 4px 6px; border-bottom: 2px solid transparent; }
.lang-switch a:hover { color: var(--white); }
.lang-switch a[aria-current="true"] { color: var(--white); border-bottom-color: var(--brass); }
.header-phone { font-size: .9rem; padding: .55em 1em; color: var(--white); border-color: var(--brass); }
.header-phone:hover { background: rgba(255, 255, 255, .08); color: var(--white); }
.menu-toggle { display: none; background: none; border: 1.5px solid rgba(255, 255, 255, .5); border-radius: var(--radius); padding: 7px 12px; cursor: pointer;
  font: inherit; font-size: .95rem; color: var(--white); }

/* Abschnitte */
.section { padding-block: 80px; border-top: 1px solid var(--line); }
.section.sand { background: var(--sand); border-top: 0; }
.section.sand + .section { border-top: 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; }
.section-head h2 { margin: 0; }
.section-head p { margin: .6em 0 0; }

/* Einstieg auf Sand */
.hero { background: var(--sand); padding-block: 64px 72px; }
.hero .container { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: .4em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

/* Eckdaten */
.facts-band { background: var(--sand); padding-bottom: 8px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-strong); margin: 0; }
.facts div { padding: 22px 24px 26px; border-left: 1px solid var(--line-strong); }
.facts div:first-child { border-left: 0; padding-left: 0; }
.facts dt { font-size: .85rem; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-family: var(--display); font-size: 1.3rem; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.facts dd.sub { margin: 2px 0 0; font-family: var(--body); font-size: .88rem; font-weight: 400; color: var(--muted); }

/* Wohnungsliste */
.apt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.apt-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.apt-card img, .apt-card .no-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--sand); }
.apt-card .no-photo { display: grid; place-items: center; color: var(--muted); font-size: .9rem; }
.apt-card h3 { margin: 18px 0 6px; }
.apt-card:hover h3 { text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.apt-card p { color: var(--muted); font-size: 1rem; margin: 0 0 16px; }
.apt-meta { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
.apt-meta b { font-family: var(--display); color: var(--navy); font-variant-numeric: tabular-nums; }

/* Zweispaltige Inhalte */
.split { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; }
.split > * { min-width: 0; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.checklist li { position: relative; padding: 13px 0 13px 30px; border-bottom: 1px solid var(--line); color: var(--ink); }
.checklist li::before { content: ""; position: absolute; left: 3px; top: 20px; width: 12px; height: 6px;
  border-left: 2px solid var(--brass); border-bottom: 2px solid var(--brass); transform: rotate(-45deg); }

.rows { margin: 0; }
.rows div { display: flex; justify-content: space-between; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rows div:first-child { border-top: 1px solid var(--line); }
.rows dt { color: var(--muted); }
.rows dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; }

/* Häufige Fragen */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { padding: 18px 0; font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-weight: 500; font-size: 1.4rem; line-height: 1; color: var(--brass); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 0 0 18px; max-width: 68ch; }

/* Formular */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-size: .9rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--white);
  padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.field.has-error input, .field.has-error select { border-color: var(--error); }
.field .error { color: var(--error); font-size: .88rem; margin: 5px 0 0; }
.form-note { font-size: .88rem; color: var(--muted); margin: 0; }
.form-alert { border: 1px solid var(--error); color: var(--error); background: var(--white); padding: 12px 14px; border-radius: var(--radius); font-size: .95rem; }
.form-fixed { padding: 12px 14px; background: var(--sand); border-left: 3px solid var(--brass); border-radius: var(--radius); font-size: .95rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form.compact { gap: 14px; }

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.contact-list li:first-child { border-top: 1px solid var(--line); }
.contact-list small { display: block; color: var(--muted); font-size: .85rem; }
.contact-list a { color: var(--navy); font-family: var(--display); font-weight: 700; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; text-decoration-color: var(--brass); }

/* Wohnungsseite */
.apt-top { background: var(--sand); }
.breadcrumb { font-size: .9rem; color: var(--muted); padding-top: 28px; }
.breadcrumb a { color: var(--muted); }
.apt-head { padding-block: 10px 30px; }
.apt-head h1 { margin-bottom: .2em; }
.apt-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 48px; align-items: start; padding-block: 40px 80px; }
.gallery-main { display: block; width: 100%; padding: 0; border: 0; background: var(--sand); cursor: zoom-in; border-radius: var(--radius); overflow: hidden; }
.gallery-main img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 8px; }
.gallery-thumbs button { padding: 0; border: 2px solid transparent; border-radius: var(--radius); overflow: hidden; cursor: pointer; background: none; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--brass); }
.gallery-thumbs img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.apt-body { margin-top: 40px; }
.apt-body h2 { font-size: 1.4rem; margin-top: 1.6em; }
.booking { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: var(--radius); padding: 24px; }
.booking .price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.booking .price strong { font-family: var(--display); font-weight: 800; color: var(--navy); font-size: 2rem; font-variant-numeric: tabular-nums; }
.booking h2 { font-size: 1.2rem; }
.booking hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(15, 36, 64, .94); display: flex; align-items: center; justify-content: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 90vh; border-radius: var(--radius); }
.lightbox button { position: absolute; top: 14px; right: 18px; background: none; border: 0; color: var(--white); font-size: 2.2rem; cursor: pointer; line-height: 1; }

/* Einfache Seiten */
.page { padding-block: 56px 80px; max-width: 780px; }
.page h2 { font-size: 1.2rem; margin-top: 2em; }
.legal-note { margin: 0 0 24px; padding: 10px 14px; border-left: 3px solid var(--brass); background: var(--sand); font-size: .95rem; }

/* Fußzeile */
.site-footer { background: var(--ink); color: #b9bec6; padding-block: 36px; font-size: .92rem; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer strong { font-family: var(--display); color: var(--white); }
.site-footer nav { display: flex; gap: 22px; }
.site-footer a { color: #e3e6ea; text-decoration: none; }
.site-footer a:hover { color: var(--brass); }

.callbar { display: none; }

@media (max-width: 960px) {
  .hero .container, .split, .apt-layout { grid-template-columns: 1fr; gap: 36px; }
  .apt-grid { grid-template-columns: repeat(2, 1fr); }

  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts div:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line-strong); }
}
@media (max-width: 960px) {
  .site-header .container { gap: 14px; }
  .menu-toggle { display: block; order: 2; }
  .header-phone { display: none; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, .15); padding: 6px 0 10px; }
  .nav.open { display: flex; }
  .nav a { display: block; padding: 12px 24px; border: 0; }
}
@media (max-width: 600px) {
  body { font-size: 17px; padding-bottom: 68px; }
  .container { padding-inline: 16px; }
  .section { padding-block: 56px; }
  .hero { padding-block: 36px 48px; }
  .apt-grid, .checklist, .form, .form.compact { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: start; }
  .facts div { padding: 16px 12px 18px; }
  .facts div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .facts dd { font-size: 1.1rem; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
  .nav a { padding-inline: 16px; }
  .callbar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0px)); background: var(--white); border-top: 1px solid var(--line); }
}
