/* ==========================================================================
   1. GLOBALE STRUKTUR & SYSTEM-SCHRIFTEN
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --padding: 1.5rem;
  --color-black: #111;
  --color-white: #fff;
  --color-grey: #666;
  --color-light: #ecebe6;
  --color-text: var(--color-black);
  --color-text-grey: var(--color-grey);
  --color-background: var(--color-white);
  --font-family-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html, body {
  width: 100% !important;
  min-height: 100vh;
  font-family: var(--font-family-sans);
  color: var(--color-text);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
  display: flex !important;
  flex-direction: column !important; /* Zwingt Header, Content und Footer untereinander */
}

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

li {
  list-style: none;
}

a {
  color: currentColor;
  text-decoration: none;
  transition: color 0.2s ease;
}

strong, b {
  font-weight: 600;
}

small {
  font-size: 0.875rem;
  color: var(--color-text-grey);
}

h1 {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 15px 0;
  letter-spacing: -0.01em;
  color: #333;
}

h2 {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

/* ==========================================================================
   2. HEADER & PERFEKT ZENTRIERTE NAVIGATION
   ========================================================================== */
.site-header {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important; /* Zentriert Inhalt horizontal */
  justify-content: center !important;
  width: 100% !important;
  clear: both !important;        /* Bricht alte CSS-Floats auf */
  padding: 20px;
  border-bottom: 1px solid #dcdbd6;
  text-align: center;
  background: var(--color-light) !important; 
}

.site-navigation {
  width: 100% !important;
  margin-top: 15px;
  display: flex !important;
  justify-content: center !important; /* Schiebt das Menü exakt in die Mitte */
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important; /* Hält Text und Button auf einer Höhenlinie */
  gap: 25px;
  flex-wrap: wrap;
}

.nav-list > li > a {
  text-decoration: none;
  color: #0066cc;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s;
}

.nav-list > li > a:hover {
  color: #003366;
}

/* Aktive Seite hervorheben */
.nav-list > li > a[aria-current="page"] {
  font-weight: bold;
  color: #000000;
}

/* ==========================================================================
   3. DER ELEGANTE "LINKS"-BUTTON & DROPDOWN
   ========================================================================== */
.nav-button-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #f0f4f8;
  color: #0055aa;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid #d0e0f0;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.nav-button-link::-webkit-details-marker {
  display: none;
}

.nav-button-link:hover {
  background-color: #0055aa;
  color: #ffffff;
  border-color: #0055aa;
}

.nav-button-link .arrow {
  font-size: 0.8rem;
  transition: transform 0.2s;
}

details[open] .nav-button-link .arrow {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  list-style: none;
  padding: 8px 0;
  margin: 8px 0 0 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  min-width: 200px;
  text-align: left;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.dropdown-menu li a {
  display: block;
  padding: 10px 16px;
  color: #4a5568;
  font-weight: 400;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.15s;
}

.dropdown-menu li a:hover {
  background-color: #f7fafc;
  color: #0055aa;
}

/* ==========================================================================
   4. GENERELLES INHALTS-LAYOUT (1400px Begrenzung & Zentrierung)
   ========================================================================== */

/* Das übergeordnete Element auf allen Seiten bestimmt die maximale Breite */
.site-content {
  flex: 1 !important;
  width: 100% !important;
  max-width: 1400px !important; /* Begrenzt die Website-Breite auf modernen Monitoren */
  margin: 0 auto !important;     /* Zentriert den gesamten Inhaltsbereich im Browser */
  padding: 40px 20px !important;
  box-sizing: border-box !important;
  display: block !important;
  clear: both !important;
}

/* Spezifisches Verhalten NUR für die Startseite (Überschrift & Bild mittig) */
.welcome-page {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important; /* Zentriert Titel und Hausbild */
}

/* Spezifisches Verhalten NUR für die Preise-Seite */
.preise-container {
  width: 100% !important;
}

/* ==========================================================================
   5. STARTSEITE LAYOUT (DAS HAUS)
   ========================================================================== */
.welcome-page {
  display: flex;
  flex-direction: column;
  align-items: center; 
}

.welcome-headline {
  font-size: 2.2rem;
  color: #222;
  margin-bottom: 30px;
}

.featured-image-wrapper {
  width: 100%;        /* Nutzt die volle verfügbare Breite... */
  max-width: 1000px; /* Präzise Begrenzung auf die Textbreite hinzugefügt */
  margin-left: auto;  /* Garantiert die mittige Ausrichtung */
  margin-right: auto; /* Garantiert die mittige Ausrichtung */
  margin-bottom: 40px;}

.featured-figure {
  margin: 0;
  padding: 0;
  width: 100%;
}

.featured-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px; 
}

.featured-caption {
  text-align: left;
  font-size: 0.9rem;
  color: #555;
  margin-top: 10px;
  line-height: 1.4;
}

.welcome-intro {
  max-width: 1000px;
  text-align: left;
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 40px;
  color: #333;
}

.welcome-text p {
  margin-top: 0;
  margin-bottom: 20px;
}

/* Ausstattungs-Kacheln */
.amenities-section {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}

.amenities-section h3 {
  font-size: 1.6rem;
  color: #222;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 25px;
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.amenity-item {
  display: flex;
  align-items: flex-start;
  background: #fcfcfc;
  border: 1px solid #eef0f2;
  border-radius: 6px;
  padding: 15px;
}

.amenity-icon {
  font-size: 1.8rem;
  margin-right: 15px;
  line-height: 1;
}

.amenity-text {
  display: flex;
  flex-direction: column;
  font-size: 0.95rem;
  line-height: 1.4;
}

.amenity-text strong {
  color: #222;
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.amenity-text span {
  color: #666;
}

/* ==========================================================================
   6. PREISSEITE LAYOUT
   ========================================================================== */
.preise-container {
  max-width: 45rem; 
  margin: 3rem auto;
}

.preise-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 4rem;
  background: var(--color-background);
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
  border-radius: 8px;
  overflow: hidden;
}

.preise-table th, 
.preise-table td {
  padding: 1.25rem 1.5rem;
  text-align: left;
}

.preise-table th {
  background-color: var(--color-light);
  font-weight: 600;
  font-size: 1.1rem;
  border-bottom: 2px solid #e5e5ea;
}

.preise-table td {
  border-bottom: 1px solid var(--color-light);
}

.preise-table tr:last-child td {
  border-bottom: none;
}

.preise-table td small {
  display: inline-block;
  margin-top: 0.25rem;
}

.price-cell {
  font-size: 1.35rem;
  font-weight: 700;
  text-align: right !important;
  white-space: nowrap;
}

.price-cell small {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--color-text-grey);
}

.preise-info-text {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-light);
  text-align: left;
}

/* Der neue, einladende Buchungs-Button - perfekt zentriert */
.cta-button {
  display: inline-block;
  background-color: #2b6cb0;        /* Ein freundliches, skandinavisches Blau (statt Todesschwarz) */
  color: #ffffff !important;
  padding: 12px 28px;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 25px;              /* Schön abgerundet, passend zu den anderen Elementen */
  box-shadow: 0 4px 12px rgba(43, 108, 176, 0.15);
  transition: all 0.2s ease-in-out;
  margin: 30px auto;                /* Das 'auto' links/rechts zwingt den Button in die Mitte */
  text-align: center;
}

/* Wenn man mit der Maus über den Button fährt */
.cta-button:hover {
  background-color: #1a4975;        /* Ein edles, etwas dunkleres Marineblau beim Drübergehen */
  transform: translateY(-2px);      /* Eleganter kleiner Schwebe-Effekt */
  box-shadow: 0 6px 20px rgba(43, 108, 176, 0.25);
}

/* Sicherheits-Zentrierung für den umschließenden Kasten */
.align-center {
  display: flex;
  justify-content: center;
  width: 100%;
  clear: both;
}

/* ==========================================================================
   7. BILDERGALERIE LAYOUT & LIGHTBOX
   ========================================================================== */
.gallery-container {
  max-width: 100%;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.gallery-grid {
  display: grid !important; 
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
  gap: 1.5rem !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 2rem 0 !important;
}

.gallery-grid li {
  margin: 0 !important; 
  padding: 0 !important;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  background: var(--color-white);
}

.gallery-grid li:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.gallery-grid img {
  display: block !important;
  width: 100% !important;
  height: 220px !important; 
  object-fit: cover !important; 
}

#baguetteBox-overlay { 
  display: none; 
  opacity: 0; 
  position: fixed; 
  overflow: hidden; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  z-index: 1000000; 
  background-color: #111111 !important; 
  transition: opacity .3s ease; 
}

#baguetteBox-overlay.visible { opacity: 1; }
#baguetteBox-overlay .full-image { display: flex !important; align-items: center; justify-content: center; width: 100%; height: 100%; position: relative; }
#baguetteBox-overlay .image-wrapper { position: relative; max-width: 80%; max-height: 80%; background: #ffffff; padding: 12px; border-radius: 8px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); display: inline-block; }
#baguetteBox-overlay .full-image img { display: block; max-width: 100% !important; max-height: 70vh !important; width: auto !important; height: auto !important; object-fit: contain !important; border-radius: 4px; }
#baguetteBox-overlay .full-image figcaption { display: block; text-align: center; color: #111111; font-size: 1rem; font-weight: 500; margin-top: 10px; }
.baguetteBox-button { position: absolute; cursor: pointer; background: rgba(255,255,255,0.1); color: #ffffff; border: 1px solid rgba(255,255,255,0.2); border-radius: 50%; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; font-family: sans-serif; font-size: 24px; font-weight: 300; transition: all .2s ease; }
.baguetteBox-button:hover { background: #ffffff; color: #111111; }
#previous-button { left: 3%; top: 50%; transform: translateY(-50%); }
#next-button { right: 3%; top: 50%; transform: translateY(-50%); }
#close-button { right: 3%; top: 4%; width: 40px; height: 40px; font-size: 18px; }
#previous-button:after { content: "<" !important; }
#next-button:after { content: ">" !important; }
#close-button:after { content: "X" !important; }

/* ==========================================================================
8. FOOTER STYLING 
   ========================================================================== */
.site-footer {
  width: 100% !important;
  box-sizing: border-box;
  border-top: 1px solid #dcdbd6;
  background: var(--color-light) !important;
  padding-top: 1.5rem !important;    
  padding-bottom: 4.5rem !important; 
}

/* Der innere Container erzwingt jetzt die exakt gleiche Höhe für beide Seiten */
.footer-container {
  width: 100%;
  max-width: 1400px;                 
  margin: 0 auto;                    
  padding: 0 20px;                   
  box-sizing: border-box;
  
  /* HIER IST DIE PREZISE KORREKTUR: Macht beide Spalten exakt gleich hoch */
  display: flex;
  justify-content: space-between;    
  align-items: stretch !important;  /* Zwingt die rechte Box, genauso hoch zu sein wie die linke Adresse */
}

.footer-left p {
  margin: 0;
  line-height: 1.5;
  color: #333;
  text-align: left;
}

/* Das flexible Rechts-Menü */
.footer-legal-links {
  display: flex;
  flex-direction: column;            
  text-align: right;                 
  height: 100%;                      /* Nutzt jetzt die echte, dynamische Höhe der Adresse */
}

.footer-legal-links a {
  text-decoration: none;
  color: #666;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 5px;                
}

.footer-legal-links a:hover {
  color: #000;
}

/* Das Copyright wird nun bis zum allerletzten Pixel nach unten gedrückt */
.footer-copyright {
  font-size: 0.85rem;
  color: #888;       
  font-weight: 400;
  margin-top: auto !important; /* Der magische Schubser nach ganz unten */
}

/* ==========================================================================
9. RESPONSIVE ANPASSUNGEN
========================================================================== */
@media screen and (min-width: 60rem) {
body { --padding: 3rem; }
}

/* ==========================================================================
10. BELEGUNGSKALENDER
========================================================================== */
/* Kalender-Layout */
/* Kalender-Layout */
.belegung-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Der schützende Rahmen um den Kalender - individuell verbreitert */
.calendar-wrapper {
  width: 100%;
  max-width: 1200px; /* Von 900px auf 1200px erhöht, damit 6 Monate nebeneinander Platz haben */
  margin: 20px auto;
  box-shadow: 0 0px 0px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #fff;
}

/* Das Iframe selbst: füllt den Wrapper perfekt aus */
.calendar-wrapper iframe {
  width: 100%;
  height: 500px; /* Leicht erhöht, um auch vertikalen Scrollbalken vorzubeugen */
  display: block;
}

/* Kleiner, dezenter Backlink unter dem Kalender */
.calendar-footer-note {
  margin-top: 10px;
  font-size: 0.75rem;
}
.calendar-footer-note a {
  color: #999 !important;
  text-decoration: none;
}
.calendar-footer-note a:hover {
  color: #666 !important;
}

/* ==========================================================================
11. LEGALS
========================================================================== */
/* Layout für Impressum & Datenschutz */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  text-align: left; /* Rechtstexte immer sauber linksbündig */
  padding: 20px 0;
}

.legal-headline {
  font-size: 2.2rem;
  color: #222;
  margin-bottom: 30px;
  text-align: left;
}

.legal-text {
  line-height: 1.6;
  color: #333;
  font-size: 1.05rem;
}

/* Abstände für Zwischenübersicherungen und Absätze im Rechtstext */
.legal-text h2, .legal-text h3 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #111;
}

.legal-text p {
  margin-bottom: 1.25rem;
}

/* ==========================================================================
12. FÄHRE-LINKS
========================================================================== */

/* Styling für den Fähr-Bereich */
.ferry-section {
  width: 100%;
  max-width: 800px;
  background-color: #f4f7f9; /* Sehr dezentes, maritimes Hintergrund-Blau */
  border: 1px solid #e2ebf0;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 40px;
  text-align: left;
}

.ferry-section h3 {
  font-size: 1.3rem;
  color: #1a365d; /* Dunkles Marineblau */
  margin-top: 0;
  margin-bottom: 12px;
}

.ferry-section p {
  font-size: 1rem;
  line-height: 1.5;
  color: #4a5568;
  margin-bottom: 20px;
}

/* Container für die beiden Buttons */
.ferry-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap; /* Wichtig für Mobilgeräte */
}

/* Gemeinsamer Stil für beide Fähr-Buttons */
.ferry-btn {
  flex: 1;
  min-width: 250px; /* Verhindert, dass die Buttons zu schmal gequetscht werden */
  text-align: center;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Fahrplan-Button (Dezenter) */
.plan-btn {
  background-color: #ffffff;
  color: #2b6cb0;
  border: 1px solid #bee3f8;
}
.plan-btn:hover {
  background-color: #ebf8ff;
  border-color: #63b3ed;
  transform: translateY(-1px);
}

/* Ticket-Button (Auffälliger / Handlungsaufforderung) */
.book-btn {
  background-color: #2b6cb0;
  color: #ffffff !important;
  border: 1px solid #2b6cb0;
}
.book-btn:hover {
  background-color: #2c5282;
  border-color: #2c5282;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* ==========================================================================
14. BILDER IM TEXT
========================================================================== */
/* Bilderreihen direkt im Fließtext */
.legal-text center, .welcome-intro center {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 30px 0;
}

/* Einzelnes Bild im Text mit Unterschrift */
.welcome-intro figure {
  flex: 1;
  min-width: 250px;
  max-width: 450px;
  margin: 0;
  padding: 10px;
  background: #ffffff;
  border: 1px solid #eef0f2;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.welcome-intro figure img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.welcome-intro figcaption {
  font-size: 0.9rem;
  color: #555;
  margin-top: 10px;
  line-height: 1.4;
  font-weight: 500;
  text-align: left;
}




