/* =========================================================
   1. GLOBALE CONFIG & RESET
   ========================================================= */
:root {
    --background: #ffffff;
    --foreground: #000000;
    --textcolor: #111;
    --card-bg: #3d3d3d;
    --heroh2: #dfaa0a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-weight: 100;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    background-color: var(--background);
    color: var(--foreground);
}

/* =========================================================
   2. LANDING PAGE (INDEX.HTML)
   ========================================================= */
/* --- Hero Section --- */
.hero {
    height: 100vh;
    background-image: linear-gradient(rgba(255,255,255,0.2), rgba(0,0,0,0.8)), url('https://images.unsplash.com/photo-1723479812089-9f74276cf29d?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHxjaXR5JTIwc3RyZWV0cyUyMGFyY2hpdGVjdHVyZXxlbnwxfHx8fDE3Njk0NDMwNTl8MA&ixlib=rb-4.1.0&q=80&w=1080');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.hero-sign {
    font-size: 16px;
    padding: 5px 15px;
    color: #fff;
    background-color: rgba(150,150,150,0.4);
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 15px;
}

.hero-btn1 {
    margin: 25px 5px 0px 0px;
    font-size: 18px;
    padding: 15px 25px;
    color: #111;
    background-color: #fff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.2s;
}

.hero-btn1:hover {
    transform: scale(1.05);
}

.hero-btn2 {
    margin: 25px 0px 0px 5px;
    font-size: 18px;
    padding: 15px 25px;
    color: #fff;
    background-color: rgba(150,150,150,0.4);
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.2s;
}

.hero-btn2:hover {
    transform: scale(1.05);
}

.hero-p1 {
    color: #fff;
}

.hero-h1 {
    color: #fff;
    margin-bottom: -30px;
    font-size: 4rem;
}

.hero-h2 {
    color: var(--heroh2);
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

/* --- Swipe Karten Bereich --- */
.orte-bereich {
    height: 100vh;
}

.orte-bereich h2 {
    padding-top: 2rem;    
    text-align: center;
    font-size: 35px;
    margin-bottom: -5px;
}

.orte-bereich p {
    text-align: center;
    margin-bottom: 2rem;
}

.karten-scroller {
    display: flex;
    overflow-x: auto; 
    gap: 20px;
    padding: 20px;
    scroll-snap-type: x mandatory; 
    justify-content: center; 
}

.karten-scroller::-webkit-scrollbar { display: none; }

.karte {
    min-width: 300px;
    height: 550px;
    background-color: transparent;
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none;
    color: var(--foreground);
    scroll-snap-align: center;
    transition: transform 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.karte:hover {
    transform: scale(1.05);
}

.karte-bild {
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #555;
}

.karte-icon {
    margin-top: 80%;
    margin-left: 15px;
    padding: 15px;
    border: none;
    color: rgba(255, 185, 0);
    background-color: rgba(255, 187, 0, 0.174);
    border-radius: 100px;
}

.karte-content {
    margin-top: 10px;
    color: #fff;
    padding: 0 15px;
}

.karte-content h3 {
    font-size: 25px;
}

.karte-content p {
    font-size: 18px;
    text-align: left;
    color: #bbb;
}

/* =========================================================
   3. GETEILTE KOMPONENTEN FÜR UNTERSEITEN (Subpages)
   ========================================================= */
/* --- Navigation & Buttons --- */
.back_button {
    display: inline-block;
    background: linear-gradient(135deg, #4b4e55, #252626);
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
    border-radius: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    width: 50px;
    height: 20px;
    line-height: 16px;
    text-align: center;
}

.back_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    background: linear-gradient(135deg, #b9b7ba, #666667);
}

.menu-point {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
    cursor: pointer;
}

.menu-point:hover,
.menu-point.active {
    color: var(--heroh2);
    font-weight: bold;
}

/* --- Widgets (Wetter & Karte) --- */
.wrap_horiz {
    max-width: 1200px;
    margin: 4rem auto 5rem auto;
    display: flex;
    gap: 3rem;
    justify-content: space-between;
    padding: 0 2rem;
}

.weather-container, .map-container {
    flex: 1;
    background: #fff;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.widget-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #333;
}

.weather-frame, .map-frame {
    width: 100%;
    height: 250px;
    border-radius: 12px;
    border: none;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
    transition: transform 0.25s ease;
}

.weather-frame:hover, .map-frame:hover {
    transform: translateY(-2px);
}

/* --- Footer --- */
footer {
    background-color: rgba(0,0,0,0.8);
    color: #bbb;
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
}

/* =========================================================
   4. PAGE 1: STERNENFELS
   ========================================================= */
.S_Header {
    background-color: transparent;
    background-image: 
        linear-gradient(to top, #fff 0%, rgba(51, 51, 51, 0) 100%),    
        url('https://www.sternle-am-schlossbergturm.de/images/Luftbild-Natur-Sonne-Wolken-Sternenfels-Turm-Luftaufnahme-2000x1200.jpeg');
    filter: grayscale(20%); 
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat; 
    color: white;
    padding: 2rem; /* Platzhalter, falls kein festes Height gesetzt war */
}

.S_Header h1 {
    color: #dfaa0a;
    font-weight: bolder;
}

.activity img {
    border-radius: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    width: 100%;
    max-width: 800px;
    height: auto; /* Besser für Responsiveness als feste 400px */
}

.activity img:hover {
    transform: translateY(-2px);
}

.activities h2 {
    position: relative;
    left: 1%;
}

/* =========================================================
   5. PAGE 2: RETTIGHEIM
   ========================================================= */
.R_Header {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.2)), 
                url('https://upload.wikimedia.org/wikipedia/commons/f/f8/Von_Malsch_Blick_auf_Rettigheim.JPG') center/cover no-repeat;
    height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.R_Header h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--heroh2);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-weight: bold;
}

.R_Header nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
    padding: 0;
}

.wappen {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 120px !important; 
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}
/* --- Content Alternating Grid Layout (FIXED) --- */
.info-page {
    max-width: 1200px; 
    margin: 4rem auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 4rem; 
}

/* Wir nutzen Grid für saubere Spalten */
.info-page section {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Zwei exakt gleich große Spalten */
    gap: 1rem 4rem; /* 1rem Platz unter dem Titel, 4rem Platz zwischen Text und Bild */
    background: #fdfdfd;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
    align-items: center; /* Zentriert das Bild vertikal */
}

/* 1. Ungerade Sektionen (Titel & Text links, Bild rechts) */
.info-page section h2 {
    grid-column: 1 / 2;
    grid-row: 1; /* Erste Zeile */
    font-size: 2.2rem;
    color: #222;
    margin-bottom: 0;
    font-weight: bold;
}

.info-page section p {
    grid-column: 1 / 2;
    grid-row: 2; /* Zweite Zeile, direkt unter dem Titel */
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

.info-img {
    grid-column: 2 / 3;
    grid-row: 1 / 3; /* Das Bild nimmt beide Zeilen (Titel + Text) in der Höhe ein */
    width: 100%;
    max-width: 500px;
    height: 350px;
    object-fit: cover; 
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
    justify-self: center; /* Zentriert das Bild horizontal in seiner Spalte */
}

/* 2. Gerade Sektionen (Bild links, Titel & Text rechts) */
.info-page section:nth-child(even) h2,
.info-page section:nth-child(even) p {
    grid-column: 2 / 3; /* Schiebt Titel und Text in die rechte Spalte */
}

.info-page section:nth-child(even) .info-img {
    grid-column: 1 / 2; /* Schiebt das Bild in die linke Spalte */
}

.info-img:hover {
    transform: translateY(-5px);
}