:root {
  --bg: #fffafb;
  --surface: #fff6f9;
  --text: #16201d;
  --muted: #50645c;
  --brand: #2a7b5a; /* bleibt grün */
  --brand-2: #3a9d74;
  --accent: #ffdbe8; /* zartes Rosa */
  --ring: #ffb3ca55;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden; /* hide horizontal scrollbar */
  touch-action: pan-y; /* allow vertical pan only on touch devices */
}

html { overflow-x: hidden; }

/* Prevent long words or unbroken content from expanding the layout */
* { word-break: break-word; -ms-word-break: break-word; }
pre, code { word-break: normal; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(1120px, 92%); margin-inline: auto; }

.skip-link {
  position: absolute; left: -10000px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus { left: 1rem; top: 1rem; width: auto; height: auto; background: #fff; padding: .5rem .75rem; box-shadow: 0 0 0 3px var(--ring); }

.site-header { background: var(--surface); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid #e7efe9; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .75rem 0; }
.brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--brand); }
.brand-logo { filter: drop-shadow(0 1px 0 rgba(0,0,0,.05)); }

.site-nav .nav-toggle { display: none; }
.nav-list { list-style: none; display: flex; gap: 1rem; margin: 0; padding: 0; align-items: center; }

.btn { display: inline-block; padding: .625rem 1rem; border-radius: .5rem; border: 1px solid transparent; font-weight: 600; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: #134033; text-decoration: none; }
.btn-secondary { background: var(--accent); color: var(--brand); border-color: #ffc5d9; }
.btn-ghost { background: transparent; border-color: #cfe3da; color: var(--brand); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ring); }

.hero { padding: min(12vh, 8rem) 0; background: radial-gradient(1200px 600px at 10% 10%, #ffeaf1 0, rgba(255,234,241,0) 60%),
  radial-gradient(900px 500px at 90% 0%, #eaf7f1 0, rgba(234,247,241,0) 60%); }
.hero-title { font-family: "Playfair Display", Georgia, serif; font-weight: 700; font-size: clamp(2rem, 4vw + 1rem, 3.5rem); margin: 0 0 .5rem; color: var(--brand); }
.hero-subtitle { font-size: clamp(1rem, 1.2vw + .7rem, 1.25rem); color: var(--muted); margin: 0 0 1.25rem; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

.usp { padding: 3rem 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card { background: var(--surface); border: 1px solid #f3dde5; padding: 1rem; border-radius: .75rem; box-shadow: 0 5px 12px rgba(0,0,0,.03); }

.featured { padding: 2rem 0 3rem; }
.cta { background: linear-gradient(180deg, #fff0f5 0%, #f0f8f4 100%); padding: 2.5rem 0; border-top: 1px solid #f3dde5; border-bottom: 1px solid #e0ece6; }
.cta-inner { display: grid; gap: .75rem; text-align: center; }

.site-main { outline: none; }

/* --- FOOTER & LOGO STYLING START --- */
.site-footer { 
    background-color: #333333; /* Footer-Hintergrundfarbe (beibehalten) */
    color: #e9f5f0; 
    padding: 2rem 0; 
    margin-top: 3rem; 
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1rem; align-items: start; }
.footer-nav { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.fineprint { color: #cfe3da; font-size: .9rem; margin: 1rem auto 0; }

.brand-logo {
    /* Wichtig: Macht das quadratische Bild rund */
    border-radius: 50%; 
    /* Stellt sicher, dass das Bild ohne Verzerrung in den Kreis passt */
    object-fit: cover; 
    
    /* Optionale Animation beim Hover für den visuellen Effekt (kann bleiben) */
    transition: box-shadow 0.3s ease-in-out;
    margin-bottom: 10px; 
    display: block; 
    filter: none; /* Entfernt den Header-Schatten */
}

/* 🎨 Logo-Styling mit permanentem Farbverlauf (Nur im Footer!) */
.site-footer .brand-logo {
    /* Optional: Ein kleiner sichtbarer Rand direkt um das Logo */
    border: 2px solid #E8649C; /* Beispiel: Helle Logofarbe */

    /* Stellt den permanenten "Tentakel/Anklett"-Effekt dar */
    box-shadow: 
        /* Ebene 1 (Näher am Logo): Ihre leuchtende Logofarbe, schärfer */
        0 0 0 6px rgb(250, 157, 197),  /* Ihre Logofarbe 1 */
        
        /* Ebene 2 (Mittlerer Verlauf): Etwas blasser, größerer Spread/Blur */
        0 0 10px 10px rgba(229, 180, 202, 1), /* Ihre Logofarbe 2 */
        
        /* Ebene 3 (Äußerer Verlauf/Tentakel): Geht in die Footer-Farbe über */
        0 0 20px 15px rgba(254, 240, 251, 1); /* Footer-Farbe (mit Transparenz) */
}

/* --- Social Media Icons Styling HINZUGEFÜGT --- */
.social-links-container {
    /* Abstand zur Navigationsliste */
    margin-top: 1rem;
    display: flex;
    gap: 1.25rem; /* Abstand zwischen den Icons */
}

/* Stile für die Icons selbst (sichtbar auf dunklem Hintergrund) */
.social-links-container a {
    /* Helle Farbe, damit Icons auf dem dunklen Footer sichtbar sind */
    color: #ffb3ca; /* Verwendet die Accent-Farbe */
    font-size: 1.8rem; 
    display: inline-block;
    transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
    text-decoration: none; /* Entfernt die Unterstreichung */
}

/* Animation: Instagram Icon */
.social-links-container a[aria-label="Instagram-Profil"]:hover {
    transform: scale(1.15) rotate(5deg); /* Vergrößert und dreht leicht */
    color: #E1306C; /* Instagram Farbe */
}

/* Animation: Facebook Icon */
.social-links-container a[aria-label="Facebook-Seite"]:hover {
    transform: translateY(-5px) scale(1.1); /* Bewegt sich leicht hoch */
    color: #4267B2; /* Facebook Farbe */
}
/* --- Ende Social Media Icons Styling --- */
/* --- FOOTER & LOGO STYLING END --- */

/* Scroll reveal animations */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Gallery */
.gallery { padding: 3rem 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.gallery-grid .item { border-radius: .75rem; overflow: hidden; box-shadow: 0 5px 12px rgba(0,0,0,.04); background: var(--surface); border: 1px solid #e7efe9; }
.gallery-grid .item > * { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Reviews carousel */
.reviews { padding: 3rem 0; }
.reviews-form { display: grid; gap: .75rem; margin-bottom: 1rem; }
.stars { display: inline-flex; gap: .25rem; }
.stars input { display: none; }
.stars label { cursor: pointer; font-size: 1.25rem; color: #c9d5cf; }
.stars input:checked ~ label, .stars label.selected { color: #f0b429; }

/* Flying carpet */
.carpet { position: relative; overflow: hidden; height: 420px; border-radius: .75rem; border: 1px solid #e7efe9; background: var(--surface); box-shadow: 0 8px 24px rgba(0,0,0,.04); }
.carpet-lane { position: absolute; left: 0; right: 0; display: flex; gap: .75rem; padding: .5rem; will-change: transform; touch-action: pan-y; }
.carpet-lane .lane-inner { display: flex; gap: .75rem; }
.rev-card { position: relative; min-width: 260px; max-width: 420px; width: 100%; box-sizing: border-box; background: #fff; border: 1px solid #e7efe9; border-radius: .75rem; padding: .9rem 1.1rem; box-shadow: 0 6px 16px rgba(0,0,0,.05); transition: transform .25s ease, box-shadow .25s ease, max-width .25s ease; transform-origin: center bottom; white-space: normal; }
.rev-card:hover { z-index: 200; transform: translateY(-16px) scale(1.08); box-shadow: 0 18px 40px rgba(0,0,0,.18); max-width: min(560px, 90vw); }
.rev-meta { display: flex; align-items: baseline; gap: .75rem; margin-bottom: .25rem; }
.rev-name { font-weight: 700; color: var(--brand); }
.rev-date { color: var(--muted); font-size: .9rem; }
.rev-stars { margin-top: .5rem; color: #f0b429; letter-spacing: .05em; }

/* highlight matched search terms inside review content */
.highlight { background-color: #a8e6a3; color: #064e3b; padding: 0 2px; border-radius: 2px; }

.rev-text { white-space: normal; overflow-wrap: break-word; }
.rev-card .rev-overlay { display: none; position: absolute; inset: 0; z-index: 300; background: #fff; border: 2px solid #f3dde5; border-radius: .75rem; padding: 1rem; box-shadow: 0 18px 40px rgba(0,0,0,.25); overflow: auto; }
.rev-card:hover .rev-overlay { display: block; }

/* Hard pause of all lanes when any card hovered */
.carpet:hover .lane-inner { animation-play-state: paused; }

@keyframes slide-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes slide-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* Floating toggle + panel */
.review-fab { position: fixed; right: 1rem; bottom: 1rem; z-index: 60; width: 56px; height: 56px; border-radius: 999px; background: var(--brand); color: #fff; display: grid; place-items: center; border: 1px solid #0b3b2d; box-shadow: 0 10px 24px rgba(0,0,0,.15); cursor: pointer; touch-action: manipulation; }
.review-fab:hover { background: #226b51; }
.review-fab svg { width: 22px; height: 22px; }

.review-panel { position: fixed; inset: 0; display: none; z-index: 55; -webkit-overflow-scrolling: touch; }
.review-panel.open { display: block; }
.review-panel .backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.review-panel .sheet { position: absolute; right: 0; top: 0; bottom: 0; width: min(560px, 94%); max-width: 560px; background: var(--surface); border-left: 1px solid #e7efe9; box-shadow: -12px 0 30px rgba(0,0,0,.2); padding: 1rem; transform: translateX(100%); transition: transform .25s ease; overflow: auto; touch-action: pan-y; }
.review-panel.open .sheet { transform: translateX(0); }
.review-panel .sheet header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.review-close { background: transparent; border: 1px solid #dfeae5; border-radius: .5rem; padding: .4rem .6rem; }

/* Pause Bewegung beim Lesen */
.carpet:hover .lane-inner { animation-play-state: paused; }

/* Review list vertical */
.review-list { display: grid; gap: .75rem; }
.review-list .card { background: #fff; }

/* Calendar */
.calendar { padding: 3rem 0; }
.calendar-card { background: var(--surface); border: 1px solid #e7efe9; border-radius: .75rem; overflow: hidden; }
.calendar-header { display: flex; justify-content: space-between; align-items: center; padding: .75rem 1rem; border-bottom: 1px solid #e7efe9; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.calendar-cell { border-top: 1px solid #eef4f1; border-right: 1px solid #eef4f1; min-height: 88px; padding: .5rem; font-size: .9rem; }
.calendar-cell:nth-child(7n) { border-right: none; }
.calendar-cell .date { font-weight: 600; color: var(--muted); }
.event { margin-top: .25rem; padding: .25rem .4rem; border-radius: .4rem; background: #e9f7f0; color: var(--brand); border: 1px solid #cfe9de; font-size: .85rem; }

@media (max-width: 820px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-nav .nav-toggle { display: inline-block; background: transparent; border: 1px solid #cfe3da; border-radius: .5rem; padding: .5rem .75rem; }
  .nav-list { display: none; position: absolute; right: 4%; top: 56px; flex-direction: column; background: var(--surface); padding: .75rem; border: 1px solid #e7efe9; border-radius: .75rem; }
  .nav-list.open { display: flex; }
}

/* Small screens: prevent any horizontal overflow and make interactive elements accessible */
@media (max-width: 600px) {
  :root { --content-padding: .75rem; }
  .container { width: calc(100% - 2 * var(--content-padding)); margin-inline: var(--content-padding); }

  /* Make carpet shorter and allow lane items to wrap into a vertical list if needed */
  .carpet { height: auto; padding: .5rem; }
  .carpet-lane { position: static; display: block; }
  .lane-inner { display: flex; gap: .5rem; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: .5rem; }
  .lane-inner .rev-card { min-width: 220px; max-width: 80%; margin-right: .5rem; }

  /* Ensure review FAB is visible and not offscreen when keyboard opens */
  .review-fab { right: .75rem; bottom: calc(env(safe-area-inset-bottom, 0px) + .75rem); }

  /* FIX: Make the review sheet full-height scrollable modal on small screens */
  .review-panel .sheet {
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    border-left: none;
    border-top-left-radius: .75rem;
    border-top-right-radius: .75rem;
    /* Angepasst: Soll von oben nach unten gehen und scrollbar sein, falls nötig */
    top: 0;
    bottom: 0;
    height: 100vh; /* Volle Höhe des Viewports */
    max-height: 100vh; /* Maximale Höhe des Viewports */
    overflow-y: auto; /* Wichtig: Ermöglicht das Scrollen des Inhalts */
    transform: translateY(100%);
  }
  
  .review-panel.open .sheet { transform: translateY(0); }

  /* Forms and grids */
  form#event-form { grid-template-columns: 1fr; }
  .rev-text { font-size: .95rem; }
}

/* Large tablets: some adjustments to avoid accidental horizontal pan */
@media (min-width: 601px) and (max-width: 900px) {
  .carpet { height: 360px; }
  .carpet-lane { position: relative; }
  .lane-inner { overflow: hidden; }
  .rev-card { min-width: 300px; }
  .review-panel .sheet { width: 420px; }
}

/* Seminar table */
.seminar-table { width: 100%; border-collapse: collapse; margin: 0; font-size: 0.98rem; }
.seminar-table thead th { text-align: left; padding: .75rem; background: rgba(0,0,0,0.03); border-bottom: 1px solid #e7efe9; }
.seminar-table tbody td { padding: .75rem; border-bottom: 1px solid #f3dde5; vertical-align: middle; }
.seminar-table tbody tr:nth-child(even) { background: rgba(0,0,0,0.01); }
.seminar-table .label { font-weight: 700; color: var(--brand); }
.seminar-actions a { display: inline-block; margin-left: .5rem; }

/* --- RESPONSIVE TABLE FIX START --- */
@media (max-width: 700px) {
  .seminar-table, .seminar-table thead, .seminar-table tbody, .seminar-table th, .seminar-table td, .seminar-table tr { display: block; }
  .seminar-table thead { position: absolute; top: -9999px; left: -9999px; }
  .seminar-table tr { margin: 0 0 1rem 0; border: 1px solid #eef4f1; border-radius: .5rem; padding: .5rem; background: var(--surface); }
  .seminar-table td {
    border: none;
    position: relative;
    padding-left: 50%;
    text-align: right; 
    padding-top: .4rem; 
    padding-bottom: .4rem; 
  }
  .seminar-table td::before {
    position: absolute;
    left: .75rem;
    top: 50%; 
    transform: translateY(-50%); 
    width: 45%;
    white-space: nowrap;
    font-weight: 600;
    color: var(--muted);
    text-align: left; 
    content: attr(data-label); /* Holt den Text aus dem HTML-Attribut */
  }
  /* Das data-label für Aktion-Zelle muss keinen Wert anzeigen, 
     aber der Selektor im HTML verwendet "Aktion" als data-label, daher wird das ::before-Element 
     automatisch angezeigt. Wir nutzen den *expliziten* content-Ersatz, um das Label zu entfernen. */
  .seminar-table td[data-label="Aktion"]::before { content: ""; } 
  
  /* FIX: Aktion-Button auf volle Breite und zentriert */
  .seminar-table td[data-label="Aktion"] {
    text-align: center;
    padding-left: .75rem; 
    padding-top: .75rem;
    padding-bottom: .75rem;
  }
  .seminar-actions { display: block; }
  .seminar-actions a.btn {
    width: 100%; 
    margin: 0; 
  }
}
/* --- RESPONSIVE TABLE FIX END --- */

main :is(h2, h3) { color: var(--brand); margin-top: 0; }
form { display: grid; gap: .75rem; }
label { font-weight: 600; }
input, textarea, select { width: 100%; padding: .625rem .75rem; border: 1px solid #cfe3da; border-radius: .5rem; font: inherit; background: #fff; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ring); border-color: var(--brand-2); }
.help { color: var(--muted); font-size: .9rem; }
.error { color: #8b1a1a; }

/* Input icons */
.field-with-icon .input-wrap { position: relative; display: flex; align-items: center; }
.field-with-icon .input-wrap input { padding-right: 2.5rem; }
.input-icon { position: absolute; right: .6rem; width: 1.2rem; height: 1.2rem; color: var(--muted); pointer-events: none; }
.input-icon svg { width: 1.2rem; height: 1.2rem; }

@media (max-width: 420px) {
  .field-with-icon .input-wrap input { padding-right: 2rem; }
  .input-icon { right: .5rem; }
}

/* Inline icons for headings */
h1 i[data-feather], h2 i[data-feather], h3 i[data-feather] { vertical-align: middle; color: var(--brand-2); }
.field-with-icon select { appearance: none; -webkit-appearance: none; -moz-appearance: none; padding-right: 2.25rem; }
.field-with-icon .input-icon { right: .6rem; }

/* Lightbox styles */
.lb-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.8); display: none; align-items: center; justify-content: center; z-index: 2000; padding: 1rem; }
.lb-backdrop.open { display: flex; }
.lb-content { max-width: calc(100% - 2rem); max-height: calc(100% - 2rem); display: flex; align-items: center; justify-content: center; position: relative; }
.lb-content img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: .5rem; box-shadow: 0 18px 40px rgba(0,0,0,.6); display: block; }
.lb-close { position: fixed; right: 1rem; top: 1rem; z-index: 2010; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: #fff; padding: .45rem .6rem; border-radius: .5rem; }
/* Caption overlay shown over the image when lightbox is open */
.lb-caption { position: absolute; left: 50%; transform: translateX(-50%); bottom: 1rem; background: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.6)); color: #fff; padding: .5rem .75rem; border-radius: .5rem; text-align: center; font-size: .95rem; max-width: 94%; line-height: 1.3; word-break: break-word; box-shadow: 0 6px 18px rgba(0,0,0,.45); }

/* Prevent image drag ghosting */
.lb-content img { -webkit-user-drag: none; user-select: none; }

/* --- Kommentar-Hinweisfeld (auffällig) --- */
.comment-hint {
  position: fixed;
  right: 1rem;
  bottom: 5.5rem; /* über dem FAB */
  z-index: 1100; /* über Cookie-Banner */
  width: 320px;
  max-width: calc(100% - 2rem);
  background: linear-gradient(135deg, #ffffff, #fff6f9 60%);
  border-left: 6px solid var(--brand-2);
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
  border-radius: .75rem;
  padding: .85rem .95rem;
  display: none;
  gap: .5rem;
}
.comment-hint[aria-hidden="false"], .comment-hint.show { display: block; animation: hint-pop .36s cubic-bezier(.2,.9,.25,1); }
.comment-hint .hint-inner { display: grid; gap: .5rem; }
.comment-hint strong { color: var(--brand); font-size: 1rem; }
.comment-hint .hint-text { margin: 0; font-size: .9rem; color: var(--muted); }
.comment-hint .hint-actions { display: flex; gap: .5rem; align-items: center; justify-content: space-between; }
.comment-hint .hint-close { background: transparent; border: none; font-size: 1.3rem; line-height: 1; color: var(--muted); cursor: pointer; padding: .1rem .4rem; }

@keyframes hint-pop { from { transform: translateY(8px) scale(.98); opacity: 0 } to { transform: translateY(0) scale(1); opacity: 1 } }

/* reduce footprint on very small screens */
@media (max-width: 420px) {
  .comment-hint { right: .5rem; left: .5rem; bottom: 6.2rem; width: auto; }
  .comment-hint .hint-text { display: none; }
}
/* --- Ende Kommentar-Hinweisfeld --- */