/* ══════════════════════════════════════════════════════════════
   FEWO SCHRAMM – Stylesheet
   ══════════════════════════════════════════════════════════════
   HINWEIS SELF-HOSTING: Zur vollständigen DSGVO-Konformität sollten
   die Google Fonts lokal gehostet werden. Schriften herunterladen:
   https://gwfh.mranftl.com/fonts/playfair-display
   https://gwfh.mranftl.com/fonts/dm-sans
   Dann in einem fonts/-Ordner ablegen und @font-face verwenden.
   ══════════════════════════════════════════════════════════════ */

/* ============================================================
   FEWO SCHRAMM – Maritimes Design
   Ausgelagerte CSS-Datei für alle Seiten
   ============================================================ */


/* ── VARIABLEN ── */
:root {
  --ocean:      #0a4f6e;
  --ocean-mid:  #1a7fa0;
  --ocean-light:#5bb8d4;
  --foam:       #e8f4f8;
  --sand:       #f5efe6;
  --accent:     #e8943a;
  --accent-dark:#d4802e;
  --white:      #fdfcfb;
  --dark:       #1a2830;
  --text:       #2d4a5a;
  --muted:      #4f7080; /* FIX: Kontrast erhöht von #6a8a9a auf #4f7080 (>4.5:1 auf weiß) */
  --border:     #ddeef4;
  --radius:     10px;
  --shadow:     0 4px 24px rgba(10,79,110,0.10);
  --shadow-lg:  0 12px 40px rgba(10,79,110,0.18);
}

/* ── RESET & BASE ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── BILD-PLATZHALTER (sichtbar wenn Bild fehlt) ── */
.img-placeholder {
  background: linear-gradient(135deg, var(--foam) 0%, var(--border) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--ocean-mid);
  font-size: 0.75rem;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 1rem;
  border-radius: inherit;
  min-height: 120px;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: var(--dark);
  line-height: 1.2;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.05rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── NAVIGATION ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10,79,110,0.85);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  padding: 0 4rem;
  height: 72px; /* FIX: einheitlich 72px – passend zu .main padding-top */
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  color: #fff;
  font-size: 1.4rem;
}

.nav-logo img {
  height: 52px;
  width: auto;
  display: block;
}

.nav-logo strong {
  color: var(--accent);
  font-weight: normal;
  font-style: italic;
}
.nav-logo:hover {
  opacity: 0.9;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 10px;
  bottom: 4px;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: calc(100% - 20px);
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.nav-links a.nav-btn {
  background: var(--accent);
  color: #fff;
  margin-left: 0.5rem;
}
.nav-links a.nav-btn:hover { background: var(--accent-dark); 
}
nav.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.25);
}

/* Hamburger for mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── PAGE HEADER (für Unterseiten) ── */
.page-header {
  padding: 110px 4rem 60px; /* FIX: 130→110px, passend zur nav-height 72px */
  background: linear-gradient(135deg, var(--ocean) 0%, #062a3c 100%);
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 60px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.page-header .eyebrow {
  color: var(--ocean-light);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.page-header .eyebrow::before {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: var(--ocean-light);
}
.page-header h1 { color: #fff; margin-bottom: 0.8rem; }
.page-header p { color: rgba(255,255,255,0.7); max-width: 580px; font-size: 1.05rem; }

/* ── MAIN CONTENT WRAPPER ── */
.main { padding-top: 72px; } /* FIX: 70→72px, exakt wie nav height */

/* ── SECTIONS ── */
.section { padding: 5rem 4rem; }
.section--sand { background: var(--sand); }
.section--foam { background: var(--foam); }
.section--dark {
  background: linear-gradient(135deg, var(--ocean) 0%, #062a3c 100%);
  color: #fff;
}
.section--dark h2 { color: #fff; }
.section--dark p, .section--dark li { color: rgba(255,255,255,0.7); }

.section-inner { max-width: 1200px; margin: 0 auto; }

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ocean-mid);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: var(--ocean-mid);
}
.section--dark .section-eyebrow { color: var(--ocean-light); }
.section--dark .section-eyebrow::before { background: var(--ocean-light); }

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 650px;
  margin-bottom: 2.5rem;
}
.section--dark .lead { color: rgba(255,255,255,0.6); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }

.btn-outline-light {
  border: 1.5px solid rgba(255,255,255,0.45);
  color: #fff;
}
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.btn-outline-dark {
  border: 1.5px solid var(--ocean-mid);
  color: var(--ocean);
}
.btn-outline-dark:hover { background: var(--foam); }

/* ── CARDS ── */
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.card-img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  transition: transform 0.5s;
}
.card:hover .card-img { transform: scale(1.05); }
.card-img-wrap { overflow: hidden; position: relative; }

.card-badge {
  position: absolute;
  top: 1rem; left: 1rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.28rem 0.75rem;
  border-radius: 20px;
  letter-spacing: 0.06em;
}

.card-body { padding: 1.8rem; }
.card-body h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.card-body p { color: var(--muted); font-size: 0.9rem; }

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1rem 0;
}
.tag {
  font-size: 0.76rem;
  background: var(--foam);
  color: var(--ocean);
  padding: 0.28rem 0.65rem;
  border-radius: 20px;
  font-weight: 500;
}

.card-link {
  color: var(--ocean-mid);
  font-weight: 500;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  transition: gap 0.2s;
}
.card-link:hover { gap: 0.75rem; }

/* ── GRIDS ── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }

/* ── GALERIE GRID ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 0.6rem;
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery-grid .g-large { grid-column: span 2; grid-row: span 2; }
.gallery-item {
  overflow: hidden;
  cursor: pointer;
  position: relative;
  border-radius: 6px;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,79,110,0);
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-item:hover .overlay { background: rgba(10,79,110,0.3); }
.overlay span {
  color: #fff;
  font-size: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover .overlay span { opacity: 1; }

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 2rem;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
  background: none;
  border: none;
  padding: 0.5rem;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
  padding: 1rem;
  background: none;
  border: none;
}
.lightbox-prev:hover, .lightbox-next:hover { opacity: 1; }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

/* ── HIGHLIGHT ICONS ── */
.hl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.hl-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}
.hl-item:hover { transform: translateY(-5px); }
.hl-icon { font-size: 2.4rem; margin-bottom: 0.8rem; display: block; }
.hl-item h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.hl-item p { font-size: 0.84rem; color: var(--muted); }

/* ── CONTACT FORM ── */
.form-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 4rem; align-items: start; }
.form-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  padding: 2.5rem;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7); /* FIX: Kontrast erhöht von 0.55 */
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.35); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--ocean-light); }
.form-group select option { background: var(--dark); color: #fff; }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-submit {
  width: 100%;
  padding: 1rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  margin-top: 0.5rem;
}
.form-submit:hover { background: var(--accent-dark); transform: translateY(-2px); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.contact-info { display: flex; flex-direction: column; gap: 2rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.contact-item h4 { color: rgba(255,255,255,0.6); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.25rem; font-family: 'DM Sans', sans-serif; }
.contact-item p, .contact-item a { color: #fff; font-size: 0.95rem; }

.form-success { display: none; text-align: center; padding: 2rem; }
.form-success .form-success h3 { color: #fff; margin-bottom: 0.5rem; }
.form-success p { color: rgba(255,255,255,0.7); }

/* ── ANFAHRT ── */
.anreise-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-bottom: 3rem; }
.anreise-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.8rem;
  text-align: center;
  border: 1.5px solid var(--border);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.anreise-card:hover { border-color: var(--ocean-mid); box-shadow: var(--shadow); }
.anreise-card .icon { font-size: 2.2rem; margin-bottom: 0.8rem; display: block; }
.anreise-card h4 { margin-bottom: 0.5rem; }
.anreise-card p { font-size: 0.84rem; color: var(--muted); }

.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.map-embed iframe { width: 100%; height: 450px; border: 0; display: block; }

/* ── TWO-COL CONTENT ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.two-col.reverse .col-img { order: -1; }

.col-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.col-img img { width: 100%; height: 400px; object-fit: cover; }

.prose h3 { margin-bottom: 0.4rem; }
.prose ul { list-style: none; }
.prose ul li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text);
}
.prose ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--ocean-mid);
  font-weight: 700;
}
.prose ul li:last-child { border-bottom: none; }

/* ── ANGLER PAGE ── */
.season-list li:last-child { border-bottom: none; }

/* ── FOOTER ── */
footer {
  background: #050f14;
  color: rgba(255,255,255,0.45);
  font-size: 0.85rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding: 3.5rem 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand .nav-logo { display: inline-flex; align-items: center; margin-bottom: 1rem; font-size: 1.1rem; }
.footer-brand p { font-size: 0.84rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 { color: #fff; font-family: 'DM Sans', sans-serif; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul a { color: rgba(255,255,255,0.4); font-size: 0.84rem; transition: color 0.2s; }
.footer-col ul a:hover { color: rgba(255,255,255,0.8); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 4rem;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.78rem;
}
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: rgba(255,255,255,0.3); transition: color 0.2s; }
.footer-legal a:hover { color: rgba(255,255,255,0.6); }

/* ── ANIMATIONS ── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */

/* ── BILD-FALLBACK: Mindesthöhen wenn Bild nicht lädt ── */
.card-img { min-height: 230px; }
.col-img img { min-height: 200px; }
.welcome-img img { min-height: 200px; }
.wohn-imgs img:first-child { min-height: 180px; }

/* ── PERFORMANCE: Offscreen-Inhalte erst bei Bedarf rendern ── */
.section { content-visibility: auto; contain-intrinsic-size: 0 600px; }

@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; gap: 2rem; }
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .two-col.reverse .col-img { order: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  nav { padding: 0 1.5rem; height: 64px; }
  .main { padding-top: 64px; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: rgba(10,79,110,0.98);
    padding: 1rem 1.5rem 2rem;
    gap: 0.2rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.7rem 1rem; }
  .nav-toggle { display: flex; }

  .section { padding: 3.5rem 1.5rem; }
  .page-header { padding: 90px 1.5rem 50px; }

  .grid-3, .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid .g-large { grid-column: 1 / -1; }

  .footer-top { grid-template-columns: 1fr; gap: 2rem; padding: 2.5rem 1.5rem; }
  .footer-bottom { padding: 1rem 1.5rem; flex-direction: column; text-align: center; }
  .footer-legal { flex-wrap: wrap; justify-content: center; }

  .form-row-2 { grid-template-columns: 1fr; }
  .anreise-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .anreise-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid .g-large { grid-column: 1; grid-row: auto; }
  /* FIX: Bewertungen & Karten einspaltig auf kleinen Bildschirmen */
  .grid-3 { grid-template-columns: 1fr; }
  /* FIX: Kartentext nicht abschneiden */
  .card-body p, .card-body h3 { overflow-wrap: break-word; word-break: break-word; }
}

/* ── TASTATUR-FOKUS ── */
:focus { outline: 2px solid var(--accent); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ── ACCESSIBILITY: Bewegungsreduktion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-in { opacity: 1 !important; transform: none !important; }
}
