/* --- style.css --- */

/* Grundkonfiguration & Farben */
:root {
    --white: #ffffff;
    --dark: #2c2c2c;
    /* Eine Standard-Farbe für das Overlay (dunkles Grau) */
    --overlay-color: rgba(44, 44, 44, 0.65); 
    --font-main: 'Lato', sans-serif;
    --font-heading: 'Playfair Display', serif;
}

/* Themes für die Properties: Jetzt MIT Hintergrundbildern */
.theme-principessa { 
    --accent: #d4af37; 
    --accent-soft: #fcf8e8;
    /* Das Bild für das Haupthaus */
    --hero-bg: url('../img/hero-principessa.jpg');
} 

.theme-villa-luise { 
    --accent: #0076bd; 
    --accent-soft: #e6f2ff;
    /* Das Bild für die Villa */
    --hero-bg: url('../img/hero-villa.jpg');
} 

.theme-pension-ragazzi { 
    --accent: #3B8375; 
    --accent-soft: #e8f5e9;
    /* Das Bild für die Pension */
    --hero-bg: url('../img/hero-ragazzi.jpg');
}

body {
    margin: 0;
    font-family: var(--font-main);
    color: var(--dark);
    line-height: 1.6;
}

.container { max-width: 1100px; margin: 0 auto; padding: 40px 20px; }

/* Navigation / Property Switcher */
.site-header {
    background: var(--white);
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.property-nav {
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

.nav-container { display: flex; align-items: center; gap: 25px; }

.nav-logo { height: 40px; transition: transform 0.3s; }
.prop-link {
    opacity: 0.5;
    filter: grayscale(1);
    transition: 0.3s;
    /* NEU: Wir geben JEDEM Link schon mal einen unsichtbaren Rahmen */
    border-bottom: 2px solid transparent; 
    padding-bottom: 5px; /* Etwas Abstand zum Rahmen sieht besser aus */
}
.prop-link.active, .prop-link:hover {
    opacity: 1;
    filter: grayscale(0);
}
.prop-link.active {
    transform: scale(1.1);
    /* NEU: Hier ändern wir nur noch die FARBE, der Platz ist schon da */
    border-bottom-color: var(--accent); 
}

.prop-divider { width: 1px; height: 30px; background: #ddd; }

/* Hero Section */

/* Hero Section mit Bild und Overlay */
.hero {
    /* Der Trick: Ein Farbverlauf (Overlay) liegt ÜBER dem Bild */
    background: linear-gradient(var(--overlay-color), var(--overlay-color)), var(--hero-bg);
    
    
    /* Bild so skalieren, dass es den Bereich immer füllt */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    
    /* Etwas mehr Höhe für dramatischen Effekt */
    padding: 140px 20px; 
    
    text-align: center;
    
    /* WICHTIG: Textfarbe auf Weiß ändern für Kontrast */
    color: var(--white); 
    position: relative;
}

/* Den Untertitel etwas heller machen */
.hero-sub {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 30px;
}

h1 { font-family: var(--font-heading); font-size: 2.5rem; margin-bottom: 20px; }

.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: opacity 0.3s;
}

.btn-primary:hover { opacity: 0.9; }

/* --- Layout Hilfsklassen --- */
.bg-white { background-color: #fff; }
.bg-light { background-color: #f9f9f9; }
.text-center { text-align: center; }
.rounded { border-radius: 8px; }
.shadow { box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.small { max-width: 400px; }


.section-content {
    padding: 60px 0;
}

/* Raster für Text + Bild (Responsive) */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

/* Ab Tablet-Größe nebeneinander */
@media (min-width: 768px) {
    .grid-2-col {
        grid-template-columns: 1fr 1fr;
    }
    /* Wechselt die Reihenfolge bei jedem zweiten Element für Abwechslung */
    .section-content:nth-of-type(even) .text-block {
        order: 3;
    }
}

/* --- Einspaltiges Layout für Impressum/Datenschutz --- */

.grid-1-col {
    display: block; /* Hier brauchen wir kein Grid, Block reicht */
    width: 100%;
    max-width: 800px; /* WICHTIG: Begrenzt die Breite für gute Lesbarkeit */
    margin: 0 auto;   /* Zentriert den Block horizontal */
}

/* Optional: Abstände zwischen Absätzen etwas erhöhen */
.grid-1-col p {
    margin-bottom: 1.5rem;
}

.grid-1-col h2 {
    margin-top: 2rem;
    border-bottom: 2px solid var(--accent); /* Kleiner Unterstrich passend zum Haus */
    display: inline-block;
    padding-bottom: 5px;
}

.img-responsive {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Hero Anpassung für das große Logo --- */
.hero-logo-large {
    max-width: 300px; /* Größe anpassen */
    margin-bottom: 20px;
    height: auto;
filter: drop-shadow(0 0 0.5px rgba(0,0,0,0.3)) contrast(1.1);
  
  /* Verhindert, dass der Browser das Bild beim Skalieren zu sehr "verpixelt" */
  image-rendering: -webkit-optimize-contrast;
}

/* --- Arrangements (Karten Design) --- */
.arrangements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.arrangement-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    /* NEU: Damit die Karte selbst ein flexibles Gerüst wird */
    display: flex; 
    flex-direction: column; 
    height: 100%; /* Zwingt die Karte, die volle Höhe der Grid-Zeile einzunehmen */
}

.arrangement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 25px;
    
    /* NEU: Auch der Inhalt wird flexibel, um den Platz zu füllen */
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Der Body dehnt sich aus, um leeren Platz zu füllen */
}

.card-body .btn-outline {
    margin-top: auto; /* Drückt den Button automatisch ganz nach unten */
}

.benefit-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    color: #666;
    font-size: 0.95rem;
}

.benefit-list li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

/* Kleiner Punkt vor der Liste in Akzentfarbe */
.benefit-list li::before {
    content: "•";
    color: var(--accent);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.price-tag {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent);
    margin-bottom: 20px;
    display: block;
}

/* Button Outline Style */
.btn-outline {
    display: inline-block;
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-outline:hover {
    background: var(--accent);
    color: #fff;
}

/* --- Google Translate Consent Styles --- */
.translate-wrapper {
    display: inline-block;
    margin: 10px 0;
}

/* Der Consent-Button */
.btn-translate-consent {
    background-color: transparent;
    border: 1px solid var(--accent); /* Passt sich dem Hotel an (Gold/Blau/Grün) */
    color: var(--dark);
    padding: 5px 15px;
    font-size: 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-translate-consent:hover {
    background-color: var(--accent);
    color: #fff;
}

/* Versteckt das Google-Element am Anfang, damit nichts flackert */
#google_translate_element {
    min-height: 25px;
}

/* --- Zusätzliche Styles für Arrangements --- */

/* Metadaten (Reisezeitraum) */
.meta-info {
    color: #888;
    font-size: 0.9rem;
    margin-top: -10px; /* Zieht es näher an die Überschrift */
    margin-bottom: 15px;
}

/* Trennlinie */
.divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 20px 0;
}

/* Preisgestaltung */
.price-box {
    background: #f9f9f9; /* Leichter grauer Kasten */
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.price-row {
    display: flex;
    justify-content: space-between; /* Schiebt Text nach links, Preis nach rechts */
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.price-row:last-child { margin-bottom: 0; }

.price-bold {
    font-weight: bold;
    color: var(--accent); /* Nimmt die Farbe des jeweiligen Hauses an! */
    font-size: 1.1rem;
}

/* Kleingedrucktes (Verlängerungsnacht) */
.extra-info {
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.4;
}

/* Button über volle Breite */
.full-width {
    display: block;
    text-align: center;
    width: 100%;
    box-sizing: border-box; /* Wichtig, damit Padding nicht die Breite sprengt */
}

/* --- Styling für komplexe Arrangements --- */

.special-options {
    background-color: #fff;
    border-left: 3px solid var(--accent); /* Farbiger Balken links */
    padding-left: 15px;
    margin: 15px 0;
}

.option-block {
    margin-bottom: 10px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.option-block:last-child {
    margin-bottom: 0;
}

.option-block strong {
    color: var(--dark);
    display: block; /* Macht "Am Wochenende" zur eigenen Zeile */
    margin-bottom: 2px;
}

.small-italic {
    font-size: 0.85rem;
    font-style: italic;
    color: #666;
    display: block;
    margin-top: 2px;
}

/* Container Styling */
.translate-box {
    margin: 15px 0;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 4px;
    background-color: #fcfcfc;
    display: inline-block;
    max-width: 300px; /* Damit der Text nicht zu breit läuft */
}

/* Hinweistext */
.translate-disclaimer {
    font-size: 0.75rem; /* Kleiner Text */
    color: #666;
    margin-bottom: 8px;
    line-height: 1.3;
}

/* Aktivieren Button */
.btn-translate-consent {
    background-color: var(--accent); /* Nutzt Ihre Hotel-Farbe */
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
}

/* Deaktivieren Link/Button (Dezent) */
.btn-translate-revoke {
    background: none;
    border: none;
    color: #999;
    text-decoration: underline;
    font-size: 0.7rem;
    cursor: pointer;
    margin-top: 5px;
    padding: 0;
}

.btn-translate-revoke:hover {
    color: red; /* Signalisiert "Löschen" beim Hover */
}

/* --- Kontaktformular Styling Update --- */

.contact-form {
    max-width: 100%; /* Nutzt den Platz der Spalte voll aus */
    background: #fff;
    padding: 10px 0; /* Etwas Luft oben/unten */
}

/* Abstände zwischen den Feldern */
.form-group {
    margin-bottom: 25px;
}

/* Labels (Beschriftung) */
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600; /* Etwas dicker für Lesbarkeit */
    color: var(--dark);
    font-size: 0.95rem;
}

/* Eingabefelder & Textarea */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 15px; /* Viel Platz innen wirkt modern */
    border: 1px solid #e0e0e0; /* Dezentere Rahmenfarbe */
    border-radius: 4px; /* Leicht abgerundet */
    font-family: inherit;
    font-size: 1rem;
    background-color: #fcfcfc; /* Ganz leichtes Grau hebt es vom weißen Hintergrund ab */
    transition: all 0.3s ease;
    box-sizing: border-box; /* Wichtig: Padding vergrößert das Feld nicht */
}

/* Effekt beim Reinklicken (Fokus) */
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent); /* Färbt sich in der Hausfarbe (Gold/Blau/Grün) */
    background-color: #fff;
    box-shadow: 0 0 0 3px var(--accent-soft); /* Sanfter Schein außenrum */
}

/* Textarea Höhe fixieren */
.form-group textarea {
    min-height: 150px;
    resize: vertical; /* Erlaubt dem User, es größer zu ziehen */
}

/* Checkbox Bereich (Datenschutz) */
.checkbox-group {
    display: flex;
    align-items: flex-start; /* Text oben bündig, falls er umbricht */
    gap: 10px;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 25px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 4px; /* Schiebt die Checkbox minimal runter, damit sie bündig mit der ersten Textzeile ist */
    cursor: pointer;
    transform: scale(1.2); /* Checkbox etwas größer machen */
}

/* Link im Datenschutz-Text */
.checkbox-group a {
    color: var(--accent);
    text-decoration: underline;
}

/* Button Anpassung */
.full-width {
    width: 100%;
    padding: 18px; /* Button etwas höher machen für Touch */
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
}