/* --- Global & Base Styles --- */

:root {
  --primary-color: #5a0019; /* A deep red for links and highlights */
  --text-color: #5a0019; /* Dark gray for main text */
  --bg-color: #ffdead; /* White background */
  --link-hover-color: #ff0000; /* Bright red for link hover states */
  --font-family-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
/* --- Global & Base Styles --- */


* {
  box-sizing: border-box;
}

body {
font-size: 100%;
  font-family: var(--font-family-sans);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  margin: 0;
  padding: 0;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--link-hover-color);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

img[alt=""],
        img:not([alt]) {
           //deine aktion
           border: 5px #ff0000 solid;
        }
        
        img[title=""],
        img:not([title]) {
           //deine aktion
           border: 5px #0033FF solid;
        }

h1 {
  /* Gemeinsame Stile für h1 */
  color: var(--primary-color);
  line-height: 3.8em;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 100;
  margin:0em;
}

/* Mobile Font Size für h1 */
@media (max-width: 768px) {
 #header h1  {
    font-size: 1.5em; /* Kleinere Größe für mobile Geräte */
  }
}

/* Desktop Font Size für h1 */
@media (min-width: 769px) {
 #header h1 {
    font-size: 2.5em; /* Größere Größe für Desktop */
  }
}

h2 {
    font-size: 1.563em;
    line-height: 1.8em;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 100;
    color: var(--primary-color);
    margin:0em;
    padding: 1.25em;
    text-align: left; /* Bleibt linksbündig, wie es in Ihrer CSS global definiert ist */
}

h3 {
    font-size: 1.35em;
    line-height: 1.6em;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 100;
     color: var(--primary-color);
    margin:0em;
    padding: 1.25em;
    text-align: left; /* Bleibt linksbündig, wie es in Ihrer CSS global definiert ist */
}


h4 {
    font-size: 1.1em;
    line-height: 1.6em;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 100;

    margin:0em;
    padding: 1.25em;
    text-align: left; /* Bleibt linksbündig, wie es in Ihrer CSS global definiert ist */
}

p  {
    line-height: 1.25em;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 100;
    color: var(--primary-color);
    margin:0em;
    padding: 1.25em;
    text-align: justify; /* Globale Einstellung für p bleibt */
}

/* NEUE REGEL: Macht <b> fett */
p b {
    font-weight: bold;
}
/*breadcrumb*/
#breadcrumb {
    line-height: 1.25em;
       font-weight: 100;
       margin:0em;
    padding: 1em;
    text-align: justify;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* --- Utility Classes --- */

.hidden {
  display: none;
}

/* Versteckt die Checkbox immer, da sie nur zur Steuerung dient */
.nav-toggle-input {
    display: none;
}

/* --- Header & Navigation --- */

header {
  text-align: center;
  padding: 1rem 0;
}

header h1 {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  margin: 0.5rem 0;
}

.section-logo {
width:100%;
height:38rem;
background: #ffdead;
background-image:url(../img/image001_neu.jpg);
background-position:40% 40%;
background-repeat:no-repeat;
background-size:cover;
overflow:hidden;
margin:0;
padding:0;
}

.nav {
    color: #fff;
    z-index: 10;
}

.nav ul {
    background-color: var(--primary-color); /* HINTERGRUNDFARBE HIERHER VERSCHOBEN */
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.nav li a {
    display: block;
    padding: 0.8rem 1rem;
    color: #fff;
    text-align: center;
    transition: background-color 0.3s;
}

.nav li a:hover {
    background-color: #a02046;
    text-decoration: none;
}

/* Desktop-Ansicht (größer als 768px) */
@media (min-width: 769px) {
    .menubutton {
        display: none; /* Versteckt den Hamburger-Button auf dem Desktop */
    }
    .nav {
        display: block; /* Stellt sicher, dass das Menü auf dem Desktop sichtbar ist */
    }
}

/* Mobile-Ansicht (kleiner oder gleich 768px) */
@media (max-width: 768px) {
    /* Platziert den Hamburger-Button oben links und stellt sicher, dass er klickbar ist */
    .menubutton {
        display: block !important; /* Stellt sicher, dass der Button immer sichtbar ist */
        cursor: pointer;
        margin: 1rem;
        z-index: 1000;
        position: fixed;
        top: 1rem;
        left: 1rem;
    }

    .menubutton img {
        width: 40px;
        height: auto;
    }

    /* Versteckt die Hauptnavigation standardmäßig */
    .nav {
        display: none !important; /* Versteckt das Menü standardmäßig */
        position: fixed;
        top: 0;
        left: 0;
    }

    .nav ul {
        flex-direction: column; /* Vertikale Liste auf Mobilgeräten */
        align-items: flex-start;
        padding: 0 0 2rem; 
        margin-top: 5rem;
    }

    .nav li a {
        width: 100%;
        text-align: left;
        padding: 1rem 1.5rem;
    }
    
    /* Zeigt das Menü an, wenn die aktive Klasse gesetzt ist */
    .nav.active {
        display: block !important;
    }
}

   #breadcrumb {
  line-height: 1.25em;
       font-weight: 100;
       margin:0em;
    padding: 1em;
    text-align: justify;
}
/* --- Main Content & Articles --- */

/* Content Area */
#main {
    display: block;
    width: 95%;
    max-width: 980px;
    margin: 1.25em auto;
    padding: 0em;
    background: #FFFFFF; /* Hintergrund ist weiß */
}
#main article {
// font-family:'FontAwesome';
// content:"\f138";
font-family: var(--font-family-sans);
width:2.2rem;
color: var(--primary-color);
transition:all .5s ease-out;
    display: inline-block;
    width: 90%;
    background: #FFFFFF;
    vertical-align: top;
margin: 0em;
padding: 0em;
/* text-align: left; <-- DIESE ZEILE ENTFERNT, damit p-Tags und h2 nicht überschrieben werden */
}

/* NEUE REGEL: Zentriert Bilder innerhalb von #main article */
#main article img {
    max-width: 36.25em;
    box-shadow: 0em 0em 0.625em -0.313 #4c4948;
    border-radius: 0.313;
    display: block; /* Wichtig, damit margin: auto funktioniert */
    margin: 0 auto; /* Zentriert das Bild horizontal */
}

/* NEUE REGEL: Richtet Absätze innerhalb von #main article im Blocksatz aus */
#main article p {
    text-align: justify;
}

/* NEUE REGEL: Richtet Listen innerhalb von #main article linksbündig aus */
#main article ul {
margin-left: 20px;
    text-align: left;
}

#main article ul li {

font-family:'FontAwesome';
content:"\f138";
font-family: var(--font-family-sans);
width:2.2rem;
color: var(--primary-color);
transition:all .5s ease-out;
    display: inline-block;
    width: 90%;
    background: #FFFFFF;
    vertical-align: top;
margin: 0em;
padding: 0em;
text-align: left; /* Bleibt linksbündig für Listenelemente */
}

#main article h2 {
padding: 1em 1.8em 1em 1.8em;
}


table {
    font-size: 1.0em;
    line-height: 1.8em;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 100;
    color: var(--primary-color);   
    margin:0em;
    padding: 1.25em;
    text-align: left; /* Bleibt linksbündig, wie es in Ihrer CSS global definiert ist */
}



/* Image & Text Layouts */

.text {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.bild {
  float: right;
  margin-left: 1.25em;     /* Abstand zum Text */
  width: 20em;
  box-shadow: 0px 0px 8px -4px #888;
    border-radius: 3px;
  /* Optional: Weitere Stile für das Bild */
}

.img {
    width: 90%;
    height: auto;
    max-width: 100%;
}



.bild_l {
  float: left;
  margin-right: 1.25em;     /* Abstand zum Text */
  width: 20em;
  box-shadow: 0px 0px 8px -4px #888;
    border-radius: 3px;
  /* Optional: Weitere Stile für das Bild */
}

.bild,
.small-image {
 float: right;
  margin-left: 1.25em;     /* Abstand zum Text */
  width: 20em;
  box-shadow: 0px 0px 8px -4px #888;
    border-radius: 3px;
  // margin-bottom: 1rem;
  // max-width: 100%;
}

@media (min-width: 768px) {
  .text {
    display: block;
  }

  .bild {
    float: right;
    margin: 0 0 1rem 1.5rem;
  }

  .bild_l {
    float: left;
    margin: 0 1.5rem 1rem 0;
  }

  .small-image {
    max-width: 300px;
    width: auto;
  }
}

/* --- Footer --- */

.site-footer {
  background-color: #333;
  color: #fff;
  padding: 2rem 0;
  font-size: 0.9rem;
}

.footer-container {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  padding: 0 1rem;
}

.footer-block h3 {
  color: #fff;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.footer-block ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-block li {
  margin-bottom: 0.5rem;
}

.footer-block a {
  color: #ccc;
  transition: color 0.3s;
}

.footer-block a:hover {
  color: var(--link-hover-color);
}

.footer-block .fa {
  margin-right: 0.5rem;
}

/* Social icons with color */
.footer-block .fa-whatsapp {
  color: #00e676;
}

.footer-block .fa-map-marker {
  color: #ffc107;
}

.footer-block .fa-facebook {
  color: #3b5998;
}

.footer-block .fa-youtube {
  color: #c4302b;
}

/* Responsive Footer adjustments */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
}
.myButton {
  background-color: #4CAF50; /* Grün */
  border: none;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 8px; /* Abgerundete Ecken */
}

.myButton:hover {
  background-color: #3e8e41; /* Dunkleres Grün beim Hover */
}

  /* Aktiver Effekt */
    .mybutton:active {
      background-color: #2e6e31;
      transform: translateY(2px); /* Button leicht nach unten verschieben */
    }

    /*Kontaktseite*/


#adressen {
    max-width: 500px; /* Passen Sie die Breite nach Bedarf an */
    margin: 20px auto; /* Zentriert das Formular horizontal */
    display: flex; /* Verwendet Flexbox für die Anordnung der Felder */
    flex-direction: column; /* Ordnet Felder untereinander an */
    align-items: center; /* Zentriert die Formularfelder horizontal im Formular */
    padding: 20px;
    border: 1px solid rgba(255, 222, 173, 0.3); /* Pfirsichfarbener Rahmen um den Haupt-Div */
    border-radius: 8px;
    background-color: #fff; /* Tabellenhintergrund soll weiss sein */
    box-shadow: 0 2px 4px rgba(255, 222, 173, 0.3); /* Pfirsichfarbener Schatten */
    color: #000; /* Textfarbe auf Schwarz setzen für den gesamten Container */
}

#adressen td p {
    padding: 0;
}

#adressen td {
    background-color: #fff; /* Sicherstellen, dass auch die Zellen einen weißen Hintergrund haben */
    border: 1px solid rgba(255, 222, 173, 0.3); /* Pfirsichfarbener Rahmen für die Tabellen-Zellen */
    padding: 5px 10px;
    color: #000; /* Sicherstellen, dass der Text in den Zellen schwarz ist */
}

/* Spezifische Anpassungen für .rand und .rand1, falls abweichend nötig */
#adressen td.rand {
    /* Hier keine Änderungen, da die Standard-td-Regel bereits den gewünschten Rahmen setzt. */
    /* Wenn dieses Element einen anderen Rahmen oder Padding braucht, hier definieren. */
}

#adressen td.rand1 {
    padding-right: 75px; /* Korrigiertes Padding */
    /* Hier keine Änderungen, da die Standard-td-Regel bereits den gewünschten Rahmen setzt. */
}

#adressen a:hover {
    color: #DC143C; /* Hover-Farbe bleibt wie gewünscht */
}



/* Reisekosten */
/* Grundlegende Formular-Container-Stile */
form {
    max-width: 900px; /* Maximale Breite des Formulars */
    margin: 20px auto; /* Zentriert das Formular horizontal und gibt vertikalen Abstand */
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.form-section {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee; /* Trennlinie zwischen Abschnitten */
}

.form-section:last-of-type {
    border-bottom: none; /* Keine Trennlinie nach dem letzten Abschnitt */
}

.form-section h3 {
    color: #5a0019;
    font-size: 1.6em;
    margin-bottom: 15px;
    border-left: 5px solid #007bff; /* Akzentlinie links von Überschriften */
    padding-left: 10px;
}

/* Flexbox-Layout für Formularreihen */
.form-row {
    display: flex; /* Aktiviert Flexbox */
    flex-wrap: wrap; /* Ermöglicht das Umbrechen von Elementen in die nächste Zeile bei Platzmangel */
    gap: 20px; /* Abstand zwischen den form-group Elementen in einer Reihe */
    margin-bottom: 15px; /* Abstand zwischen den Zeilen */
    align-items: flex-start; /* Elemente am oberen Rand der Reihe ausrichten */
}

/* Stil für einzelne Formulargruppen (Felder + Labels) */
.form-group {
    flex: 1; /* Lässt jede Gruppe den verfügbaren Platz gleichmäßig aufteilen */
    min-width: 250px; /* Mindestbreite, bevor ein form-group Element umbricht */
    display: flex;
    flex-direction: column; /* Label über dem Input */
    position: relative; /* Für Positionierung von Fehlermeldungen etc. */
}

/* Labels */
.form-group label {
    display: block; /* Stellt sicher, dass Labels auf einer neuen Zeile beginnen (falls nicht schon standard) */
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
    white-space: nowrap; /* Verhindert Zeilenumbruch bei kurzen Labels */
}

/* Pflichtfeld-Markierung */
.form-group label.required-field::after {
    content: ' *';
    color: red;
    margin-left: 3px;
}

/* Stil für Input-Felder und Textareas */
.form-group input[type="text"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%; /* Füllt die Breite der form-group aus */
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box; /* Wichtig: Padding und Border werden in die Breite einbezogen */
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #007bff; /* Blauer Rahmen beim Fokus */
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25); /* Leichter Schatten beim Fokus */
    outline: none; /* Entfernt den Standard-Outline */
}

/* Spezielle Stile für Radio-Buttons in "Art der Anfrage" */
.form-group.radio-group {
    flex-direction: row; /* Radio-Button und Label nebeneinander */
    align-items: center; /* Vertikal zentriert */
    min-width: unset; /* Überschreibt die Mindestbreite von .form-group, da sie kleiner sein können */
    flex-basis: auto; /* Erlaubt dem Element, seine Inhaltsgröße zu haben */
    margin-right: 20px; /* Abstand zwischen den einzelnen Radio-Optionen */
}

.form-group.radio-group:last-child {
    margin-right: 0; /* Kein Abstand nach dem letzten Radio-Button */
}

.form-group.radio-group input[type="radio"] {
    width: 18px; /* Standardgröße für Radio-Button */
    height: 18px;
    margin-right: 8px; /* Abstand zwischen Radio-Button und seinem Label */
    cursor: pointer;
}

.form-group.radio-group label {
    margin-bottom: 0; /* Keine untere Marge, da sie nebeneinander sind */
    font-weight: normal; /* Normaler Font-Weight für Radio-Labels */
    cursor: pointer;
}

/* Stil für Checkbox-Container */
.checkbox-container {
    display: flex;
    align-items: flex-start; /* Checkbox am Anfang des Textes ausrichten */
    margin-bottom: 15px;
    font-size: 0.95em;
    color: #555;
}

.checkbox-container input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px; /* Leichte Anpassung für vertikale Ausrichtung mit Text */
    min-width: 18px; /* Stellt sicher, dass die Checkbox nicht zu klein wird */
    min-height: 18px;
    cursor: pointer;
}

.checkbox-container a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.checkbox-container a:hover {
    text-decoration: underline;
}

/* Stil für Ergebnis- und Nachrichtenbereiche */
.result-section, #countdownMessage {
    background-color: #e9ecef; /* Helle Hintergrundfarbe */
    border: 1px solid #ced4da;
    border-radius: 5px;
    padding: 15px;
    margin-top: 20px;
    text-align: center;
    font-size: 1.1em;
    color: #333;
}

.result-section h3 {
    border-left: none; /* Keine Akzentlinie für diese H3, da es eine Infobox ist */
    padding-left: 0;
    margin-top: 0;
    margin-bottom: 10px;
}

/* Stil für Buttons */
#submitButton {
    padding: 12px 25px;
    background-color: #28a745; /* Grün für Senden */
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 20px; /* Abstand nach oben */
    display: block; /* Macht den Button zu einem Block-Element */
    margin-left: auto; /* Zentriert den Button, wenn er ein Block-Element ist */
    margin-right: auto; /* Zentriert den Button, wenn er ein Block-Element ist */
}

#submitButton:hover:not(:disabled) {
    background-color: #218838;
}

#submitButton:disabled {
    background-color: #6c757d; /* Grau, wenn deaktiviert */
    cursor: not-allowed;
}

/* Responsives Design Anpassungen */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column; /* Stapelt die form-groups untereinander auf kleinen Bildschirmen */
        gap: 0; /* Kein Spaltenabstand, da sie gestapelt sind */
    }

    .form-group {
        width: 100%; /* Jede form-group nimmt die volle Breite ein */
        min-width: unset; /* Mindestbreite auf mobilen Geräten zurücksetzen */
        margin-bottom: 15px; /* Abstand zwischen gestapelten Gruppen */
    }

    /* Spezielle Anpassung für gestapelte Radio-Buttons auf kleinen Bildschirmen */
    .form-group.radio-group {
        flex-direction: row; /* Bleiben Sie nebeneinander, aber mit Umbruch */
        flex-wrap: wrap;
        margin-bottom: 10px;
        margin-right: 0; /* Entfernt den externen rechten Abstand */
        justify-content: flex-start; /* Links ausrichten */
    }

    .form-group.radio-group input[type="radio"] {
        margin-right: 5px; /* Etwas weniger Abstand */
    }

    .form-group.radio-group label {
        margin-right: 15px; /* Abstand zwischen den Label-Texten */
    }
}

@media (max-width: 480px) {
    .form-group.radio-group {
        flex-direction: column; /* Hier die Radio-Buttons wirklich untereinander stapeln */
        align-items: flex-start;
    }

    .form-group.radio-group label {
        margin-right: 0;
        margin-bottom: 5px; /* Abstand zwischen gestapelten Radio-Labels */
    }
}
/* Beispiel CSS für Meldungsrahmen */
.form-section.success-message {
    background-color: #d4edda; /* Helles Grün */
    color: #155724; /* Dunkles Grün */
    border: 1px solid #c3e6cb;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}
.form-section.error-messages {
    background-color: #f8d7da; /* Helles Rot */
    color: #721c24; /* Dunkles Rot */
    border: 1px solid #f5c6cb;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}
/* Für rote Sternchen bei erforderlichen Feldern */
.required-field::after {
    content: " *";
    color: red;
    margin-left: 5px;
}

/* mobile style*/
@media screen and (max-width:800px) {
    body {
        font-size: 90%;
        color: black;
    }
}
@media screen and (max-width:600px) {
#main aside, #main article {
    width: 100%;
    display: block;
    margin: 0.625em 0em 0.625em 0em;
}
}
/* mobile style Tabelle*/
@media (max-width: 500px) {
    .table {
        display: flex;
        overflow: hidden;
        position: relative;
        

        &::after {
            content: '';
            width: 10px;
            background: linear-gradient(to left, rgba(255, 222, 173, 0.2) 0%, rgba(255, 222, 173, 0) 100%) 0 center;

//            background: linear-gradient(to left, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 100%) 0 center;
            background-repeat: no-repeat;
            position: absolute;
            right: 0;
            top: 0;
            bottom: 0;
            z-index: 1;
        }
        
        thead {
            display: flex;
            flex-shrink: 0;
            //min-width: min-content;
            position: relative;

            &::after {
                content: '';
                width: 10px;
                background: linear-gradient(to right, rgba(255, 222, 173, 0.2) 0%, rgba(255, 222, 173, 0) 100%) 0 center;

//                background: linear-gradient(to right, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 100%) 0 center;
                background-repeat: no-repeat;
                position: absolute;
                left: 100%;
                top: 0;
                bottom: 0;
                z-index: 1;
            }
        }
        
        tbody {
            display: flex;
            position: relative;
            overflow-x: auto;
            overflow-y: hidden;
            -webkit-overflow-scrolling: touch;
        }
        
        tr {
            display: flex;
            flex-direction: column;
            //min-width: min-content;
            flex-shrink: 0;
            position: relative;
            z-index: -1;
        }
        
        td {
            border-right: 0;
        }
        
        th {
            text-align: left;
        }
        
        th,
        th:last-child {
            border-right: 1px solid $darkblue;
        }
        
        td, th {
            border-bottom: 1px solid $darkblue;
            
            &:first-child {
                width: auto;
            }

            &:last-child {
                border-bottom: 0;
            }
        }
    }
}
  /* Ende mobile style Tabelle*/
