/* =========================================================
   Ferienwohnung Travemünde – Landingpage
   Design nach Styleguide „Travemünder Woche" (Lübeck-Travemünde)
   Farben: Travemündeblau · Fiete · Mare · Seesand
   Schriften: Anton (≈ Trave) · Mulish (≈ Averta), selbst gehostet
   ========================================================= */

/* ---------- Fonts ---------- */
/* Trave – die Original-Hausschrift von Lübeck-Travemünde (SIL-Lizenz, frei
   einbettbar). Enthält die „lächelnde Ü"-Glyphe auf dem Bullet • (U+2022). */
@font-face {
  font-family: 'Trave';
  src: url('/fonts/Trave-Bold.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Mulish';
  src: url('/fonts/Mulish.woff2') format('woff2');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Mulish';
  src: url('/fonts/Mulish-Italic.woff2') format('woff2');
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

/* ---------- Design Tokens ---------- */
:root {
  --sky:        #46BEDC;   /* Travemündeblau */
  --sky-tint:   #8FD6E8;   /* 80 % Aufheller  */
  --fiete:      #0082BE;   /* Fiete           */
  --mare:       #194182;   /* Mare (Navy)     */
  --mare-deep:  #122f5f;
  --sand:       #FFD750;   /* Seesand (Gelb)  */
  --sand-deep:  #F2C230;

  --ink:        #223a5e;   /* Fließtext (navy) */
  --heading:    #194182;   /* Überschriften   */
  --paper:      #ffffff;
  --paper-warm: #F3F8FB;   /* zarter Hellblau-Ton */

  --display: 'Trave', 'Arial Narrow', system-ui, sans-serif;
  --body:    'Mulish', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --maxw:   1180px;
  --radius: 20px;
  --shadow: 0 24px 55px -30px rgba(25, 65, 130, .45);
  --shadow-soft: 0 14px 34px -22px rgba(25, 65, 130, .40);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--fiete); }

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

/* ---------- Display / Headings ---------- */
.display, h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: .96;
  color: var(--heading);
}

.eyebrow {
  display: inline-block;
  font-family: var(--body);
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fiete);
  margin: 0 0 16px;
}

.subhead {
  font-family: var(--body);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--fiete);
  font-size: .95rem;
  margin: 0 0 10px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .01em;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
}
.btn-primary { background: var(--sand); color: var(--mare); box-shadow: 0 12px 26px -12px rgba(255,215,80,.95); }
.btn-primary:hover { transform: translateY(-2px); background: var(--sand-deep); }
.btn-navy { background: var(--mare); color: #fff; }
.btn-navy:hover { transform: translateY(-2px); background: var(--mare-deep); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { transform: translateY(-2px); background: rgba(255,255,255,.15); }

/* ---------- Sailboat accents ---------- */
.boat { position: absolute; width: 42px; height: auto; pointer-events: none; opacity: .95; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,1);
  border-bottom: 1px solid #e4eef4;
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { text-decoration: none; display: inline-flex; align-items: baseline; gap: 4px; }
.brand .b-pre, .brand .b-post { font-family: var(--body); font-weight: 800; font-size: .95rem; color: var(--fiete); }
.brand .b-main { font-family: var(--display); font-size: 1.5rem; color: var(--mare); letter-spacing: .01em; line-height: 1; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-family: var(--body); font-weight: 700; font-size: .95rem; color: var(--mare); text-decoration: none; }
.nav-links a:hover { color: var(--fiete); }
.nav-links .btn { padding: 10px 22px; font-size: .9rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex; align-items: center;
  color: #fff;
  background: var(--sky);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: var(--sky);
}
.hero .container { position: relative; z-index: 2; padding-top: 40px; padding-bottom: 120px; }
.hero-date {
  font-family: var(--display);
  color: var(--sand);
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  line-height: .98;
  letter-spacing: .02em;
  margin-bottom: 22px;
}
.hero-date .yr { color: var(--sand); }
.hero h1 {
  color: #fff;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  max-width: 15ch;
  margin: 0 0 10px;
  text-shadow: 0 4px 30px rgba(20,50,95,.35);
}
.hero .ahoi {
  font-family: var(--body);
  font-weight: 800;
  font-style: italic;
  text-transform: none;
  color: var(--sand);
  font-size: clamp(1.3rem, 3vw, 2rem);
  margin: 0 0 20px;
  display: inline-block;
}
.hero p.lead {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  max-width: 56ch;
  color: var(--mare);
  margin: 6px 0 32px;
  font-weight: 600;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero .btn-ghost { color: var(--mare); border-color: var(--mare); background: #fff; }
.hero .btn-ghost:hover { background: var(--sand); }

/* Käpt'n Ole – Illustrationsfigur, rechts im Hero, groß und blickfangend
   wie im offiziellen Key-Visual der Travemünder Woche. */
.hero-ole {
  position: absolute;
  right: -4%;
  bottom: 0;
  /* Rechts verankert, damit Ole auf JEDER Bildschirmbreite die rechte Kante
     erreicht/leicht überragt – auf großen Monitoren also entsprechend groß
     wird. Die Bounding-Box überlappt bei dieser Größe rechnerisch die
     Textspalte (Überschrift, Absatz, Buttons) – da Ole oben (Kopf) schmal
     ist und erst weiter unten breit wird, deckt er dort aber keine
     Buchstaben ab (visuell mit Screenshots geprüft). */
  width: clamp(560px, calc(95vw - 380px), 1400px);
  height: auto;
  pointer-events: none;
  z-index: 1;
  /* Die Spiegelung (Gesicht rechts, Bart fließt nach links) steckt direkt
     in der SVG-Datei selbst, NICHT als CSS-Transform: Ein transform auf
     einem größtenteils außerhalb des sichtbaren Bereichs liegenden
     <img src="…svg"> wurde in Tests nicht zuverlässig gemalt. */
}

/* Wave at bottom of hero */
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 3; line-height: 0; }
.hero-wave svg { width: 100%; height: auto; display: block; }

/* ---------- Sections ---------- */
section { padding: 96px 0; position: relative; }
.section-head { max-width: 760px; margin: 0 0 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin: 0 0 16px; }
.section-head p { font-size: 1.12rem; color: var(--ink); margin: 0; font-weight: 400; }
.section-head.on-dark h2, .section-head.on-dark .eyebrow { color: #fff; }
.section-head.on-dark .eyebrow { color: var(--sky); }
.section-head.on-dark p { color: rgba(255,255,255,.85); }

/* ---------- Intro ---------- */
.intro { background: var(--paper); }
.intro-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.intro-text h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 22px; }
.intro-text p { font-size: 1.12rem; margin: 0 0 20px; }
.intro-figure { position: relative; }
.intro-figure img { border-radius: var(--radius); box-shadow: var(--shadow); }
.intro-figure figcaption { text-align: center; font-style: italic; color: var(--fiete); font-size: .9rem; margin-top: 14px; font-weight: 600; }
.intro-figure .boat { bottom: -18px; left: -14px; width: 54px; transform: rotate(-8deg); }

/* ---------- Facts ---------- */
.facts { background: var(--sky); }
.facts .section-head h2 { color: #fff; }
.facts .section-head .eyebrow { color: var(--mare); }
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.fact {
  background: #fff; border-radius: var(--radius); padding: 32px 30px;
  box-shadow: var(--shadow-soft);
}
.fact .ico {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper-warm); margin-bottom: 18px;
}
.fact .ico svg { width: 28px; height: 28px; }
.fact h3 { font-family: var(--body); font-weight: 800; text-transform: none; font-size: 1.12rem; color: var(--mare); margin: 0 0 8px; line-height: 1.3; }
.fact p { margin: 0; color: var(--ink); font-size: 1rem; }
.fact strong { color: var(--fiete); }

/* ---------- Räume ---------- */
.rooms { background: var(--paper); }
.rooms .room { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 72px; }
.rooms .room:last-child { margin-bottom: 0; }
.rooms .room.reverse .room-media { order: 2; }
.room-media { position: relative; }
.room-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.room-media .boat { top: -16px; right: -12px; width: 46px; transform: rotate(8deg); }
.room-body h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: 0 0 16px; }
.room-body p { font-size: 1.08rem; margin: 0 0 20px; }
.room-list { list-style: none; padding: 0; margin: 0; }
.room-list li { padding: 8px 0 8px 32px; position: relative; font-weight: 500; }
.room-list li::before {
  content: ''; position: absolute; left: 0; top: 12px;
  width: 14px; height: 14px; border-radius: 50%; background: var(--sand);
  box-shadow: 0 0 0 4px rgba(255,215,80,.25);
}

/* ---------- Illustrations-Band (Wellen & Segler) ---------- */
.illu-band { background: var(--sky); height: 320px; padding: 0; overflow: hidden; position: relative; }
.illu-band .illu-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ---------- Galerie ---------- */
.gallery { background: var(--mare); color: #fff; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-grid a { border-radius: 16px; overflow: hidden; display: block; box-shadow: var(--shadow); cursor: zoom-in; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; transition: transform .5s ease; }
.gallery-grid a:hover img { transform: scale(1.07); }
.gallery-grid .span2 { grid-column: span 2; grid-row: span 2; }
.gallery-grid .span2 img { aspect-ratio: 1/1; }

/* ---------- Lightbox ---------- */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 200;
  align-items: center; justify-content: center;
  background: rgba(14,30,55,.94);
  padding: 40px;
}
.lightbox.is-open { display: flex; }
.lightbox-figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox-img { max-width: 100%; max-height: 78vh; border-radius: 12px; box-shadow: 0 30px 70px -20px rgba(0,0,0,.6); }
.lightbox-caption { color: rgba(255,255,255,.85); margin-top: 16px; font-size: .95rem; text-align: center; max-width: 70ch; }
.lightbox-close, .lightbox-nav {
  position: absolute; background: rgba(255,255,255,.14); color: #fff; border: none;
  border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,.28); }
.lightbox-close { top: 24px; right: 24px; width: 46px; height: 46px; font-size: 1.7rem; line-height: 1; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; font-size: 1.3rem; }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* ---------- Preis ---------- */
.pricing { background: var(--sand); color: var(--mare); overflow: hidden; }
.pricing .eyebrow { color: var(--fiete); }
.price-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.price-wrap h2 { font-size: clamp(2rem, 4vw, 3rem); color: var(--mare); margin: 0 0 18px; }
.price-amount { font-family: var(--display); font-size: clamp(3.2rem, 8vw, 5rem); line-height: .9; color: var(--mare); }
.price-amount small { display: block; font-family: var(--body); font-weight: 700; text-transform: none; font-size: 1rem; margin-top: 14px; color: #3a5a86; }
.price-list { list-style: none; padding: 0; margin: 0 0 28px; }
.price-list li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 2px solid rgba(25,65,130,.16); font-weight: 500; }
.price-list li span:first-child { font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: .82rem; color: var(--fiete); align-self: center; }
.price-list li span:last-child { text-align: right; font-weight: 700; color: var(--mare); }
.price-card {
  background: var(--mare); color: #fff; border-radius: 24px; padding: 44px 40px; text-align: center;
  box-shadow: var(--shadow);
}
.price-card .price-amount, .price-card .price-amount small { color: #fff; }
.price-card .price-amount small { color: var(--sky-tint); }
.price-card .btn { margin-top: 26px; }
.price-card .note { margin-top: 18px; font-size: .85rem; color: rgba(255,255,255,.72); }

/* ---------- Kontakt ---------- */
.contact {
  background: var(--sky);
  color: var(--mare);
  text-align: center;
  overflow: hidden;
  position: relative;
  min-height: 780px;
  display: flex;
  align-items: center;
}
.contact .container { position: relative; z-index: 2; width: 100%; }
.contact .eyebrow { color: var(--fiete); }
.contact h2 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0 auto 8px; max-width: 18ch; text-shadow: 0 4px 24px rgba(20,50,95,.25); }
.contact .ahoi { font-family: var(--body); font-weight: 800; font-style: italic; text-transform: none; color: var(--sand); font-size: clamp(1.3rem,3vw,2rem); display: block; margin-bottom: 22px; }
.contact p.lead { max-width: 56ch; margin: 0 auto 32px; font-size: 1.15rem; color: var(--mare); font-weight: 600; }
.contact .mail-line { margin-top: 22px; color: var(--mare); }
.contact .mail-line a { color: var(--mare); font-weight: 700; text-decoration: underline; }
.contact .fine-print { max-width: 60ch; margin: 14px auto 0; font-size: .85rem; line-height: 1.6; color: rgba(20,50,95,.72); }

/* Leevke – Illustrationsfigur, links im Kontakt-Bereich, spiegelbildlich
   zu Käpt'n Ole im Hero. Gesicht nach rechts (ins Bild) gespiegelt. */
.contact-leevke {
  position: absolute;
  left: -6%;
  top: 0;
  bottom: 0;
  max-width: 620px;
  pointer-events: none;
  z-index: 1;
  transform: scaleX(-1);
}
.contact-leevke img { display: block; height: 100%; width: auto; max-width: none; }

/* ---------- Kontaktformular ---------- */
.contact-form { max-width: 620px; margin: 0 auto; text-align: left; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block; font-weight: 700; font-size: .85rem;
  color: var(--mare); margin-bottom: 6px;
}
.form-field input, .form-field textarea {
  width: 100%; font-family: var(--body); font-size: 1rem;
  padding: 12px 14px; border-radius: 10px; border: 2px solid transparent;
  background: #fff; color: var(--mare); resize: vertical;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--mare);
}
.form-honeypot {
  position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden;
}
.contact-form .btn { margin-top: 4px; }
.form-status {
  max-width: 620px; margin: 0 auto 24px; padding: 16px 20px;
  border-radius: 12px; font-weight: 600; text-align: left;
}
.form-status-success { background: #fff; color: var(--mare); border: 2px solid var(--mare); }
.form-status-error { background: #fff; color: #b3261e; border: 2px solid #b3261e; }

/* ---------- Footer ---------- */
.site-footer { background: var(--mare-deep); color: rgba(255,255,255,.75); padding: 54px 0 40px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 24px; }
.footer-brand .b-main { font-family: var(--display); font-size: 1.7rem; color: #fff; text-transform: uppercase; line-height: 1; }
.footer-brand .b-sub { font-family: var(--body); font-weight: 700; color: var(--sky); font-size: .9rem; }
.footer-links { display: flex; gap: 30px; flex-wrap: wrap; }
.site-footer a { color: rgba(255,255,255,.8); text-decoration: none; font-weight: 600; font-size: .95rem; }
.site-footer a:hover { color: var(--sand); }
.footer-legal { width: 100%; border-top: 1px solid rgba(255,255,255,.14); margin-top: 30px; padding-top: 24px; font-size: .82rem; opacity: .7; }

/* ---------- Legal pages ---------- */
.legal { max-width: 840px; margin: 0 auto; padding: 66px 26px 90px; }
.legal .back { display: inline-block; margin: 0 0 30px; text-decoration: none; color: var(--fiete); font-weight: 800; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3rem); margin: 0 0 10px; }
.legal h2 { font-family: var(--body); font-weight: 800; text-transform: none; color: var(--mare); font-size: 1.35rem; margin: 40px 0 12px; }
.legal h3 { font-family: var(--body); font-weight: 800; text-transform: none; color: var(--fiete); font-size: 1.08rem; margin: 26px 0 8px; }
.legal p, .legal li { color: var(--ink); }
.legal ul { padding-left: 22px; }
.legal a { color: var(--fiete); font-weight: 600; }
.legal .placeholder {
  background: #FFF6DA; border: 1px dashed var(--sand-deep); border-radius: 8px;
  padding: 2px 8px; color: #8a6410; font-weight: 700; font-size: .95em;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-ole { display: none; }
  .contact-leevke { display: none; }
  .contact { min-height: 0; }
  .intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .rooms .room { grid-template-columns: 1fr; gap: 28px; }
  .rooms .room.reverse .room-media { order: 0; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid .span2 { grid-column: span 2; grid-row: auto; }
  .gallery-grid .span2 img { aspect-ratio: 16/9; }
  .price-wrap { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 640px) {
  section { padding: 68px 0; }
  .nav-links a:not(.btn) { display: none; }
  .facts-grid { grid-template-columns: 1fr; }
  .hero { min-height: 86vh; }
  .footer-inner { flex-direction: column; }
  .lightbox { padding: 16px; }
  .lightbox-close { width: 40px; height: 40px; top: 12px; right: 12px; font-size: 1.4rem; }
  .lightbox-nav { width: 42px; height: 42px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}
