/* HOF Hotels, Dachseite
   Designtokens uebernommen aus src/css/style.css (Designsystem Hotel Atlantis).
   Keine externen Abrufe: Schriften lokal, keine Skripte, keine Cookies. */

:root {
  --charcoal: #1c1c1c;
  --charcoal-soft: #2a2a2a;
  --dark-gray: #3f3f3f;
  --gold: #e0bf45;
  --gold-hover: #b2932b;
  --tan: #efe0a6;
  --white: #ffffff;
  --off-white: #faf9f7;
  --light-gray: #f5f5f5;
  --medium-gray: #6f6f6f;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  --shadow-md: 0 4px 12px rgba(0, 0, 0, .1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, .12);
  --container: 1140px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--dark-gray);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--space-lg); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 300; line-height: 1.15; color: var(--charcoal); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.45rem; font-weight: 400; }

.lead { font-size: 1.12rem; color: var(--medium-gray); }

/* Sprunglink */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--gold); color: var(--charcoal); padding: 12px 20px; font-weight: 600;
}
.skip:focus { left: 0; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ===== Kopfzeile ===== */
.site-header {
  background: var(--charcoal);
  color: var(--white);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-md); min-height: 74px; padding-top: 10px; padding-bottom: 10px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.brand img { width: 46px; height: auto; }
.brand-text { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: .06em; line-height: 1.1; }
.brand-text small { display: block; font-family: var(--font-body); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--tan); }

.header-actions { display: flex; align-items: center; gap: var(--space-md); flex-wrap: wrap; }
.header-phone { color: var(--white); text-decoration: none; font-weight: 600; white-space: nowrap; }
.header-phone:hover { color: var(--gold); }
.lang { display: flex; gap: 6px; font-size: .85rem; letter-spacing: .08em; }
.lang a, .lang span { text-decoration: none; padding: 4px 7px; border-radius: 3px; }
.lang .active { background: rgba(255, 255, 255, .14); color: var(--white); font-weight: 600; }
.lang a { color: rgba(255, 255, 255, .62); }
.lang a:hover { color: var(--white); }

/* ===== Schaltflaechen ===== */
.btn {
  display: inline-block; padding: 14px 30px; border-radius: 2px;
  font-weight: 600; font-size: .95rem; letter-spacing: .04em;
  text-decoration: none; text-align: center; border: 2px solid transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--gold); color: var(--charcoal); }
.btn-primary:hover { background: var(--gold-hover); color: var(--white); }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--charcoal); border-color: var(--white); }
.btn-dark { background: var(--charcoal); color: var(--white); }
.btn-dark:hover { background: var(--charcoal-soft); }

/* ===== Hero ===== */
.hero { position: relative; color: var(--white); isolation: isolate; }
.hero img.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(28, 28, 28, .72) 0%, rgba(28, 28, 28, .55) 45%, rgba(28, 28, 28, .82) 100%);
}
.hero-inner { padding: var(--space-4xl) 0; max-width: 680px; }
.hero .eyebrow {
  font-size: .78rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--tan); margin-bottom: var(--space-md);
}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.4rem); color: var(--white);
  letter-spacing: .02em; margin-bottom: var(--space-md);
}
.hero p { font-size: 1.15rem; color: rgba(255, 255, 255, .9); margin-bottom: var(--space-xl); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-md); }

/* ===== Merkmale ===== */
.facts { background: var(--charcoal-soft); color: rgba(255, 255, 255, .88); }
.facts ul {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--space-md) var(--space-2xl); padding: var(--space-lg) 0;
  font-size: .9rem; letter-spacing: .06em; text-transform: uppercase;
}
.facts li::before { content: "\2022"; color: var(--gold); margin-right: 10px; }

/* ===== Abschnitte ===== */
section { padding: var(--space-4xl) 0; }
.section-head { max-width: 640px; margin-bottom: var(--space-2xl); }
.section-head .eyebrow {
  font-size: .76rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold-hover); margin-bottom: 10px;
}

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: var(--space-xl); }
.card { background: var(--white); border: 1px solid #e8e6e2; overflow: hidden; display: flex; flex-direction: column; }
.card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card-body { padding: var(--space-lg); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body p { color: var(--medium-gray); font-size: .98rem; }
.card-body .meta { margin-top: auto; font-size: .92rem; color: var(--charcoal); }

.alt { background: var(--off-white); }

/* ===== Buchungsband ===== */
.booking { background: var(--gold); color: var(--charcoal); text-align: center; padding: var(--space-3xl) 0; }
.booking h2 { color: var(--charcoal); margin-bottom: 10px; }
.booking p { margin-bottom: var(--space-xl); font-size: 1.05rem; }

/* ===== Anfrageformular =====
   Reines HTML, kein Skript. Die Pflichtfelder prueft zuerst der Browser,
   danach noch einmal der Server in anfrage.php. */
.form-wrap { max-width: 760px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-lg); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.wide { grid-column: 1 / -1; }
.field label { font-size: .86rem; letter-spacing: .1em; text-transform: uppercase; color: var(--charcoal); font-weight: 600; }
.field .req { color: var(--gold-hover); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--charcoal);
  background: var(--white); border: 1px solid #d9d5ce; border-radius: 0;
  padding: 11px 13px; width: 100%; min-height: 46px; appearance: none;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--charcoal) 50%), linear-gradient(135deg, var(--charcoal) 50%, transparent 50%);
  background-position: calc(100% - 19px) 20px, calc(100% - 13px) 20px;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
/* Erst nach einer Eingabe rot, nicht schon beim Laden der Seite.
   :user-invalid statt :invalid, sonst sieht ein leeres Pflichtfeld
   wie ein Fehler aus, bevor der Gast etwas getan hat. */
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: #b3261e; }
.field .hint { font-size: .85rem; color: var(--medium-gray); text-transform: none; letter-spacing: 0; font-weight: 400; }
button.btn { font-family: var(--font-body); cursor: pointer; line-height: 1.2; }
.form-foot { margin-top: var(--space-xl); display: flex; flex-wrap: wrap; gap: var(--space-lg); align-items: center; }
.form-note { font-size: .88rem; color: var(--medium-gray); max-width: 420px; }
.form-note a { color: var(--gold-hover); }
/* Honigtopf: fuer Menschen und Screenreader weg, fuer Formularroboter sichtbar. */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ===== Kontakt ===== */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-xl); }
.contact-grid h3 { margin-bottom: 10px; }
.contact-grid a { color: var(--charcoal); }
address { font-style: normal; }

/* ===== Fusszeile ===== */
.site-footer { background: var(--charcoal); color: rgba(255, 255, 255, .72); padding: var(--space-2xl) 0; font-size: .92rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: var(--space-lg); justify-content: space-between; align-items: center; }
.site-footer a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-links { display: flex; gap: var(--space-lg); flex-wrap: wrap; }

/* ===== Rechtstexte ===== */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: var(--space-lg); }
.legal h2 { font-size: 1.5rem; margin: var(--space-xl) 0 var(--space-sm); }
.legal p, .legal li { margin-bottom: var(--space-md); }
.legal ul { padding-left: var(--space-lg); }
.legal a { color: var(--gold-hover); }

@media (max-width: 640px) {
  .hero-inner { padding: var(--space-3xl) 0; }
  .header-inner { min-height: 64px; }
  .brand-text { font-size: 1.15rem; }
  .header-phone { display: none; }
  section { padding: var(--space-3xl) 0; }
}

/* ===== Dachseite: Hausauswahl ===== */
.brand img { width: auto; height: 42px; border-radius: 3px; }
.intro { background: var(--charcoal); color: var(--white); padding: var(--space-4xl) 0; }
.intro h1 { color: var(--white); font-size: clamp(2.4rem, 6vw, 3.8rem); margin-bottom: var(--space-md); }
.intro .eyebrow { font-size: .78rem; letter-spacing: .26em; text-transform: uppercase; color: var(--tan); margin-bottom: var(--space-md); }
.intro p { max-width: 620px; font-size: 1.12rem; color: rgba(255,255,255,.86); }
.houses { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-xl); }
.house { display: flex; flex-direction: column; border: 1px solid #e8e6e2; background: var(--white);
  text-decoration: none; color: inherit; overflow: hidden; transition: box-shadow .25s ease, transform .25s ease; }
.house:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.house img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.house-body { padding: var(--space-lg); display: flex; flex-direction: column; gap: 6px; flex: 1; }
.house-body h3 { margin-bottom: 0; }
.house-body .ort { font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-hover); }
.house-body p { color: var(--medium-gray); font-size: .97rem; }
.house-body .go { margin-top: auto; font-weight: 600; color: var(--charcoal); font-size: .93rem; }
.house:hover .go { color: var(--gold-hover); }
