/* Default CSS */
/* Struktur */
@charset "utf-8";

html,
body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.5rem;
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #EFEFEF;
    color: #303030;
    border-radius: 5px;
}

#index {
    width: 66rem;
    margin: auto;
    min-height: 100%;
}

#menu_oben {
    height: 3rem;
    padding: 1rem;
    display: grid;
    grid-template-columns: 0.75fr 2.25fr;
    grid-template-rows: auto auto;
}

#menu_oben_rechts {
    justify-self: end;
    align-self: center;
}

#menu_oben_rechts>span:not(:last-child):after {
    content: " |";
}

#header {
    position: relative;
    text-align: center;
}

/* Sorgt dafür, dass das neue HTML5-Schnittstellen-Element das Layout nicht bricht */
#header picture {
    display: block;
}

/* Findet das Bild nun auch innerhalb des picture-Containers */
#header picture img,
#header>img {
    border: 1rem solid #fff;
}

#navigation_mobil {
    display: none;
}

#inhalt {
    border: 0px #000 solid;
    background-color: #fff;
}

.inhalt_uebersicht {
    padding: 2rem;
}

.inhalt_uebersicht>h2 {
    display: block;
    margin-top: 2rem;
}

#navigationsleiste {
    padding: 1rem 1.5rem;
}

#navigationsleiste>.nav_leiste_more::before {
    content: ">";
}

.trenner {
    text-align: right;
    position: relative;
    height: 2rem;
}

.trennlinie {
    background-color: #930;
    height: 0.1rem;
    margin-left: 2rem;
}

/* Der Container erzwingt den Umbruch */
.google_werbung {
    grid-column: 1 / -1;
    /* Nimmt alle Spalten von Anfang bis Ende ein */
    width: 100%;
    margin: 20px 0;
    text-align: center;
}

/* Der Block selbst passt sich an den 100%-Container an */
.google_werbung_block {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    margin: 0 auto !important;
    height: 90px !important;
}


#footer {
    height: 2.5rem;
    vertical-align: bottom;
    text-align: center;
    background-color: #930;
    color: #FFF;
}

#footer>div>div {
    display: -webkit-inline-box;
}

#footer_unten {
    height: 2.5rem;
    vertical-align: bottom;
    padding: 0.25rem;
}

.hidden {
    display: none;
}

#titel_in_bild {
    position: absolute;
    bottom: 1.5rem;
    color: white;
    text-shadow: 0 0 5px black;
    left: 2rem;
    text-align: left;
}

.foto_titel {
    font-size: 0.75rem;
}

#titelbild {
    display: block;
    width: 100%;
    /* Verhindert, dass das Bild jemals breiter als 1024px wird, 
       damit es perfekt bündig mit dem Inhalt abschließt */
    max-width: 1024px;
    height: auto;

    /* Zentriert das Bild, falls der Monitor breiter als 1024px ist */
    margin: 0 auto;

    /* Bringt den vermissten Abstand zum darunter liegenden Inhalt zurück! 
       Passe die 20px gerne an, bis es exakt wie vorher aussieht */
    margin-bottom: 10px;
}

/* Schriften */
h1 {
    font-size: 2rem;
    margin: 0;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1rem;
}

.text {
    padding: 1rem 3rem 1rem 1rem;
    margin: 0.5rem;
    white-space: normal;
    text-align: justify;
    hyphens: auto;
    display: block;
    font-size: 0.875rem;
    overflow: auto;
    min-height: 62rem;
}

.text_klein {
    font-size: 0.75rem;
}

.text_sehrklein {
    font-size: 0.5rem;
}

/* Grundelemente */

a:hover {
    color: #000000;
    text-decoration: underline;
}

a {
    color: #7F3E1B;
    text-decoration: none;
}

td {
    padding: 0;
    margin: 0;
    border: 0;
}

table {
    padding: 0;
    margin: 0;
    border: 0;
}

.clear {
    clear: both;
    border: 0 solid #000;
}

.gelb {
    background-color: #FC0;
}

meter::-webkit-meter-bar {
    background: #FFF;
}

meter::-webkit-meter-optimum-value {
    background: linear-gradient(to bottom, #62c462, #51a351);
}

meter::-webkit-meter-suboptimum-value {
    background: linear-gradient(to bottom, #fbb450, #f89406);
}

meter::-webkit-meter-even-less-good-value {
    background: linear-gradient(to bottom, #ee5f5b, #bd362f);
}

.kein_rand {
    border: 0px;
}

.keine_werbung {
    margin: 2rem;
    border: 1px solid;
    padding: 2rem;
}

.abkuerzen {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.allgemeiner_text {
    margin: 0 5rem;
}

.rechts {
    text-align: right;
    padding-right: 0.5rem;
}

.liste_icon>img {
    width: 1.5rem;
    vertical-align: top;
}

.liste_icon {
    text-align: right;
    width: 100%;
}

.liste_ueberschrift {
    display: grid;
    grid-template-columns: auto 5rem;
    grid-gap: 1rem;
}

/* Ausflugsziel.css */

#ausflugsziel_inhalt {
    margin-bottom: 6rem;
}

#div_kontakt,
#div_offen {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    grid-column-gap: 0.5rem;
}

#div_kontakt>div>h3,
#div_offen>div>h3 {
    display: block;
    margin: 0.25rem 0;
}

.versteckter_abschnitt {
    margin: 1rem 3rem 1rem 1rem;
    font-size: 0.75rem;
    padding: 0.5rem 1.5rem;
}

#text_ausflugsziel {
    padding: 1rem 3rem 1rem 1rem;
    margin: 0.5rem;
    white-space: normal;
    text-align: justify;
    hyphens: auto;
    display: block;
    overflow: auto;
}

#text_sonderziel {
    padding: 0rem 5rem;
    margin: 0.5rem;
    white-space: normal;
    hyphens: auto;
    display: block;
    overflow: auto;
}

/* =========================================================================
   ERWEITERT & MODERNISIERT: Infobox für Aktionstage (Mühlentag 2026)
   ========================================================================= */
.muehlentag_infobox {
    background-color: #fcfbfa;
    /* Sanfter, warmer Naturton-Hintergrund */
    border-left: 4px solid #8b5a2b;
    /* Markanter Braun-Ton als Akzent-Kante */
    border-top: 1px solid #eaeaea;
    border-right: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
    border-radius: 0 6px 6px 0;
    /* Ecken rechts leicht abrunden */
    padding: 1.25rem;
    margin: 2rem 0;
    /* Abstand nach oben und unten zum Fließtext */
}

.muehlentag_infobox h4 {
    color: #8b5a2b;
    /* Überschrift im passenden Braun */
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.15rem;
    font-weight: 700;
}

/* Flexbox sorgt dafür, dass Bild und Text exakt auf einer Linie sitzen */
.hinweise_sonderziel_zeile {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.hinweise_sonderziel_zeile img,
.hinweise_sonderziel_icon>img {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.75rem;
    object-fit: contain;
    vertical-align: top;
}

.muehlentag_zusatztext {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #eaeaea;
    /* Gestrichelte Trennlinie für Freitext */
    font-style: italic;
    /* Hebt den individuellen Aktionstext ab */
    color: #555;
}

/* ========================================================================= */

#text_3 {
    padding: 3rem;
    margin: 0.5rem;
}

.erstes_bild>a>img {
    border: 1px solid #ccc;
    padding: 0.25rem;
}

#zugriffe {
    font-size: 0.75rem;
    padding: 0.5em;
}

#zugriffe a {
    color: #FFF;
}

.leaflet-map {
    width: 100%;
    height: 500px;
    position: relative;
    outline: currentcolor none medium;
    border: 1px solid #000;
}

.leaflet-map-vorschau {
    background-image: url(../images/backgrounds/karte_vorschau.jpg);
    position: absolute;
    height: 500px;
    width: 100%;
}

.leaflet-map-vorschau-overlay {
    background-color: black;
    opacity: 50%;
    position: absolute;
    width: 100%;
    height: 500px;
}

.leaflet-map-vorschau-text {
    text-align: center;
    line-height: 500px;
    color: #FFF;
    font-size: 4em;
}

.bild_in_karte>img {
    width: 15em;
    border: 1px solid #000;
}

#ausflugsziel_kartenansicht {
    margin: 1rem 0 0 0;
}

#ausflugsziel_details_container {
    display: grid;
    grid-template-rows: auto auto;
    padding: 1rem 3rem 1rem 1rem;
    margin: 0.5rem;
}

#ausflugsziel_icon_titel_container {
    display: grid;
    grid-template-columns: 3em 2fr;
}

#ausflugsziel_icon_titel_container>div>a>img {
    width: 3em;
}

.ziel_icon {
    align-self: center;
    justify-self: center;
    line-height: 1em;
    /* Tippfehler korrigiert: "line-heigth" -> "line-height" */
}

.ziel_ueberschrift_klein {
    align-self: center;
    font-size: 1.5em;
    font-weight: 600;
}

#ausflugsziel_attribute_container {
    display: grid;
    grid-template-columns: auto auto;
}

#ausflugsziel_symbole_skalen_container {
    justify-self: end;
    margin: 0 0 0 1em;
}

#ausflugsziel_attribute_container.suchergebnis {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: 2.5rem auto;
}

#ausflugsziel_attribute_container.suchergebnis>span {
    line-height: 2rem;
}

.symbol_legende {
    display: grid;
    grid-template-columns: 2rem auto;
    grid-column-gap: 0.25rem;
    align-items: center;
}

.skalen {
    line-height: 1.5em;
}

.naechstes_bild {
    display: none;
}

.liste_sonderziele {
    margin: 2rem;
}

.wintersport {
    display: grid;
    grid-template-columns: auto auto;
}

.wintersport_tabelle {
    display: grid;
    grid-template-columns: 2rem auto auto;
}

.wintersport_tabelle>span>img {
    width: 1.5rem;
    vertical-align: middle;
}

.wintersport_tabelle>span {
    align-self: center;
    line-height: 2rem;
}

.dot {
    height: 1rem;
    width: 1rem;
    border-radius: 50%;
    display: inline-block;
    vertical-align: middle;
}

.dot.green {
    background-color: #0F0;
}

.dot.blue {
    background-color: #00F;
}

.dot.red {
    background-color: #F00;
}

.dot.black {
    background-color: #000;
}

.sonderziele_element_ziel {
    margin: 1rem;
}

.sonderziele_element_bild_text {
    display: grid;
    grid-template-columns: 12rem auto;
    grid-gap: 1rem;
}

.nahverkehr {
    font-size: 1rem;
}

.archiviert {
    font-size: 0.75rem;
    color: red;
}

/* Admin */

.admin_fehlende_bilder_liste {
    display: grid;
    grid-template-columns: 2rem auto 12rem 2rem 2rem;
    grid-column-gap: 0.5rem;
}

.admin_fehlende_bilder_liste:nth-child(2n+1) {
    background-color: #fff5dd;
}

.admin_verweise_liste {
    display: grid;
    grid-template-columns: 2rem auto 14rem 2rem 2rem;
    grid-column-gap: 0.5rem;
    font-size: 0.75rem;
}

.admin_verweise_liste:nth-child(2n+1) {
    background-color: #fff5dd;
}

.admin_tote_verweise_liste {
    display: grid;
    grid-template-columns: 2rem 14rem auto 2rem 2rem;
    grid-column-gap: 0.5rem;
    font-size: 0.75rem;
}

.admin_tote_verweise_liste:nth-child(2n+1) {
    background-color: #fff5dd;
}

.admin_tote_url_liste {
    display: grid;
    grid-template-columns: 2rem 14rem auto 8rem 2rem 2rem;
    grid-column-gap: 0.5rem;
    font-size: 0.75rem;
}

.admin_tote_url_liste:nth-child(2n+1) {
    background-color: #fff5dd;
}

.admin_ziele_liste:nth-child(2n+1) {
    background-color: #fff5dd;
}

.admin_ziele_liste {
    display: grid;
    grid-template-columns: 2rem auto 6rem 10rem 2rem 2rem 2rem;
    grid-column-gap: 0.5rem;
    font-size: 0.75rem;
}

.admin_form {
    width: 80%
}

.admin_liste_attribute {
    display: grid;
    grid-template-columns: 2rem 6rem auto;
    grid-column-gap: 0.5rem;
    font-size: 0.75rem;
}

.admin_liste_typen {
    display: grid;
    grid-template-columns: 2rem 4rem auto;
    grid-column-gap: 0.5rem;
}

.admin_liste_attribute>span {
    height: 4rem;
}

.admin_liste_typen>span {
    height: 2rem;
}

.farbe_rot {
    color: #F00;
}

.farbe_gruen {
    color: #360;
}

.status_0 {
    color: #060;
}

.status_2 {
    color: #CCC;
}

.status_3 {
    color: #666;
}

.attribute-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

/* Karte */

#inhalt.inhalt_kartenansicht {
    margin: 0;
    padding: 0;
}

#content_wrapper.wrapper_kartenansicht {
    background-color: #FFF;
}

#index.index_kartenansicht {
    width: 100%;
}

.inhalt_kartenansicht>#inhalt_ausflugsziel {
    margin-bottom: 0;
}

/* Formular */

.formularzeile {
    display: grid;
    grid-template-columns: 10rem auto;
    grid-column-gap: 0.5rem;
}

label {
    color: #7F3E1B;
    float: left;
    text-align: right;
}

label:after {
    content: ": "
}

input,
select,
textarea,
button {
    padding: .5rem 1rem .5rem 1rem;
    border-radius: 3px;
    border: 1px solid #7F3E1B;
    vertical-align: middle;
    box-shadow: inset 0 1px 3px #eee;
    color: #666;
    font-size: 100%;
    background-color: transparent;
    outline: none;
}

.formularinput {
    padding: .25rem;
    margin: .25rem;
}

.search-container {
    background-color: #FFF;
    position: relative;
    border-radius: 3px;
    width: 20rem;
}

.search-container>input {
    box-sizing: border-box;
}

.search-box {
    width: 100%;
    border: 0;
}

.search-button {
    position: absolute;
    right: 4px;
    top: 4px;
    border-radius: 6px;
    border: 0;
    outline: 0;
    background-color: #930;
    color: #fff;
    font-size: .75rem;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
}

.fehler {
    color: #f00;
}

fieldset {
    border: 0;
}

.rechtsoben {
    text-align: right;
    vertical-align: top;
}

/* GPS */

#nahe_orte {
    margin: 2rem 0 0 0;
}

#nahe_orte a {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    width: 90%;
    display: block;
}

#nahe_orte_ueberschrift {
    padding: 0 0 0 1rem;
}

#gps_daten {
    padding: 0 1rem 1rem 1rem;
}

#grundbild {
    position: relative;
    z-index: 0;
    background-repeat: no-repeat;
    height: 112px;
    margin: 0 0 0 1rem;
}

#grundbild>img,
map {
    position: absolute;
}

#punkt_auf_karte {
    position: absolute;
    top: 0;
    left: 0;
    height: 0.25rem;
    width: 0.25rem;
}

/* Images */

img {
    border: 0px;
}

.bild_klein {
    border: 1px solid #000;
    margin: 0.125rem;
    text-align: left;
}

.bild_ziel {
    border: 1px solid #000;
    padding: 2px;
}

.erstes_bild {
    float: left;
    margin: 0.25rem 1.25rem 0.25rem 0;
}

.erstes_bild p {
    /* Bildunterschrift */
    font-size: 0.75rem;
    padding-left: 0.125rem;
}

.bild_galerie_vorschau {
    width: 80px;
    height: 80px;
    float: left;
    overflow: hidden;
    margin: 0.25rem;
    border: 1px solid #000;
}

#overlay {
    background-color: #000;
    -ms-filter: "Alpha(Opacity=75)";
    /* IE 8 */
    filter: alpha(opacity=75);
    /* IE5-7 */
    -moz-opacity: 0.75;
    /* Mozilla */
    opacity: 0.75;
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 5000px;
    z-index: 19;
}

.div_bildergalerie {
    padding: 2rem;
    display: table;
}

.bild_aktionen {
    color: #FFF;
    font-weight: 900;
    text-align: right;
    cursor: pointer;
}

.bild_unten {
    text-align: center;
}

.beitrag_bild_vorschau {
    position: fixed;
    top: 100px;
    left: 70px;
    z-index: 20;
}

.galerie_bild_gross {
    border: 1px solid #000;
    padding: 2px;
    background: #fff;
}

.symbol {
    width: 1.5rem;
    border: 1px solid #B2B2B2;
    border-radius: 3px;
    margin: 2px;
}

.symbol_overlay {
    width: 1.5rem;
    background-image: url(../images/symbole/icon_not.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.symbol_aktiv {
    background-color: #abf6be;
}

/* Suche */

#suche_vorschlaege {
    visibility: hidden;
}

#suche_vorschlaege>a {
    display: block;
    font-size: 0.875rem;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    width: 90%;
}

.suche_fehler {
    color: #900;
    font-style: italic;
    margin-left: 1rem;
}

.suche_formular {
    padding: 0.5em 0 0 0em;
    color: #7F3E1B;
}

#suchfeld {
    width: 12em;
}

.inhalt_suche {
    padding: 2rem;
}

.erweiterte_suche {
    padding: 2rem 0;
}

.zuruecksetzen {
    padding-left: 1rem;
}

#suche_erweitert_typen,
#suche_erweitert_attribute {
    border: 1px solid #E0E0E0;
    padding: 0.25rem;
    border-radius: 3px;
    box-sizing: border-box;
    margin: 0.25rem;
}

.suchlink {
    padding: 1rem 0 0 1rem;
}

.suche_ergebnis {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.markierung_suchstring {
    background-color: #FF9;
}

.suchstring_gefunden {
    color: #7F3E1B;
}

.suchergebnis_text {
    display: grid;
    grid-template-columns: 6rem auto;
    grid-column-gap: 0.5rem;
    margin: 0 3em;
}

.suchergebnis_weitere_infos {
    font-size: 0.75em;
}

.element_suchergebnis {
    padding: 0.25em;
}

img.eignung {
    width: 4rem;
}

.attribute_container.suchergebnis_flag {
    margin: 2em;
    display: grid;
    grid-template-columns: 5rem auto;
}

.attribute_container.suchergebnis_flag>span {
    line-height: 5rem;
}

/* Meinung */

.eine_meinung {
    margin: 0.5rem 0.25rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid #F0F0F0;
    border-radius: 3px;
}

/* Startseite */

/* =========================================================================
   STARTSEITE RASTER: Abstände zwischen den Boxen optimiert
   ========================================================================= */
#startseite_aktuelles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
    grid-gap: 1.5rem;
    /* NEU: Erzeugt links, rechts, oben und unten Luft zwischen den Boxen */
    padding: 1rem;
    /* Schützt vor dem Ankleben am äußeren Bildschirmrand */
}

.inhalt_startseite>h2 {
    padding: 0.5rem 1rem 0 1rem;
}

/* =========================================================================
   ERWEITERT: Ganze Box klickbar machen mit optimiertem Padding
   ========================================================================= */
.startseite_element_ziel,
.sonderziele_element_ziel {
    position: relative;
    /* Wichtig für die absolute Positionierung des Links */
    border: 1px solid transparent;
    /* Verhindert ein "Springen" der Box beim Hover-Border */
    border-radius: 6px;
    /* Leicht abgerundete Ecken für den Schatten-Effekt */
    padding: 1.25rem;
    /* Großzügiges, gleichmäßiges Padding für den Inhalt */
    transition: all 0.2s ease-in-out;
    /* Animiert alle Änderungen geschmeidig */
    cursor: pointer;
}

/* Die Startseiten-Elemente nutzen nun das saubere Grid-Gap für Abstände */
.startseite_element_ziel {
    margin-bottom: 0;
    /* Zurückgesetzt, da grid-gap das jetzt sauber übernimmt */
}

/* DEUTLICH ERHÖHTER HOVER-EFFEKT (FESTSTEHEND) */
.startseite_element_ziel:hover,
.sonderziele_element_ziel:hover {
    background-color: #f5f5f5;
    /* Deutlich sichtbares, sauberes Hellgrau */
    border-color: #e0e0e0;
    /* Sanfte Außenkante zur Abgrenzung */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    /* Schicker, weicher Tiefenschatten */
}

.startseite_element_zielgruppe {
    border-bottom: 0.5rem solid #EFEFEF;
    text-align: center;
    padding: 1rem 0.25rem;
}

.startseite_element_zielgruppe>a>img {
    margin: 1rem;
    width: 2rem;
}

.zeile_uebersicht {
    display: grid;
    grid-template-columns: 1.25rem auto;
    grid-column-gap: 0.25rem;
    margin-left: 1rem;
}

.zeile_uebersicht>div>a {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.zeile_uebersicht>div>img {
    width: 1.25rem;
}

.attribute_container.suchergebnis {
    margin: 2rem;
    display: grid;
    grid-template-columns: 2.5rem auto;
}

.attribute_container.suchergebnis>span {
    line-height: 2rem;
}

.ziel_titel {
    width: 15rem;
    padding: 0.125rem;
    margin-right: 2rem;
    float: left;
}

.bild_zuschnitt {
    width: 100%;
    height: 6rem;
    overflow: hidden;
    border: 1px solid;
    max-width: 280px;
}

.bild_zuschnitt_klein {
    width: 3rem;
    height: 3rem;
    float: left;
    overflow: hidden;
    margin: 0.25rem;
    border: 1px solid #000;
}

.info_rechts {
    font-size: 0.75rem;
    padding-right: 0.25rem;
}

#aktuell {
    font-size: 0.75rem;
    padding-top: 0.75rem;
}

.titel_ueberschrift {
    position: absolute;
    padding: 0 2rem 0 10rem;
    font-size: 3rem;
    line-height: normal;
    top: 30rem;
    text-align: right;
}

.text_neuigkeit {
    padding: 0.25rem;
}

/* =========================================================================
   Das unsichtbare Klickfeld, das sich über die Box legt
   ========================================================================= */
.text_neuigkeit .haupt_link::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    /* Legt sich über die gesamte Box */
}

/* Optische Aufwertung der Überschriften (Startseite & Listenansicht) */
.titel_neuigkeiten a,
.liste_ueberschrift a {
    position: relative;
    z-index: 6;
    font-weight: 700;
    /* Kräftigeres Schriftbild */
    color: #8b5a2b;
    /* Schicker, warmer Braunton */
    text-decoration: none;
    font-size: 1.1rem;
    /* Minimal größer als normaler Fließtext */
    transition: color 0.2s ease-in-out;
}

/* Wenn man über die Box hovert, färbt sich die Überschrift noch ein Stück intensiver */
.startseite_element_ziel:hover .titel_neuigkeiten a,
.sonderziele_element_ziel:hover .liste_ueberschrift a {
    color: #4a2e13;
    /* Noch dunklerer, knackigerer Kontrastton beim Drübersurfen */
    text-decoration: underline;
    /* Unterstreichung signalisiert Klickbarkeit */
}

.bild_neuigkeit a,
.liste_ueberschrift a,
.titel_neuigkeiten img,
.liste_icon img {
    position: relative;
    z-index: 6;
}

.titel_neuigkeiten {
    display: grid;
    grid-template-columns: 2.5rem auto;
    white-space: nowrap;
    overflow: hidden;
    width: 16em;
    text-overflow: ellipsis;
    line-height: 1.3rem;
    /* Leicht erhöht, damit zweizeilige Titel nicht quetschen */
}

.titel_neuigkeiten>div>span {
    font-size: 0.75em;
}

.titel_neuigkeiten>div>img {
    width: 2rem;
}

.leaflet-map-startseite {
    width: 100%;
    height: 18.75rem;
    position: relative;
    outline: currentcolor none medium;
    border-top: 0.75em solid #EFEFEF;
    border-bottom: 0.75em solid #EFEFEF;
}

.termine_startseite>a {
    display: block;
}

/* Cookie */


#CookieBanner {
    z-index: 90010000;
    position: absolute;
    left: 50%;
    top: 25%;
    margin-left: -25rem;
}

.CookieBannerOverlay {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 90000000;
    background-color: black;
    opacity: 0.6;
    width: 100%;
    height: 100%;
}

.CookieContainer {
    position: fixed;
    left: initial;
    width: 50rem;
    height: auto;
    color: #999;
    background: #fff;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
    animation-duration: 0.8s;
    -webkit-animation-fill-mode: both;
    -moz-animation-fill-mode: both;
    -o-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation-name: fadeInRight;
    animation-name: fadeInRight;
    overflow: scroll;
}

.CookieContainerText {
    font-size: 0.75rem;
    padding: 1rem 1rem 1rem 1rem;
    line-height: normal;
}

.CookieContainerEinstellungen {
    padding: 0 0 1rem 0;
}

.CookieContainerEinstellungenItem>span {
    display: grid;
    grid-template-rows: auto;
}


.CookieContainerEinstellungenItem {
    padding: 0 0 0 1rem;
    font-size: 0.75rem;
}

.CookieContainerEinstellungenItem>.Item {
    display: grid;
    grid-template-columns: 2rem auto 2rem;
}


.CookieContainerEinstellungenItem>span.hilfetext {
    font-size: 0.7rem;
    line-height: normal;
    margin: 0 4rem 0.5rem 2rem;
    display: none;
}

.CookieContainerButton {
    padding: 0 1rem 1rem 1rem;
}

.CookieContainerButton>span>button {
    color: #000;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    padding: 8px 16px;
    background-color: #f1d600;
    text-align: center;
}

.CookieContainerButton>span>button.hell {
    color: #000;
    -webkit-border-radius: 5px;
    background-color: #fff;
}

/* Mobile */

@media (max-width: 800px) {
    #index {
        position: relative;
        width: 100%;
        border: none;
    }

    #header picture img,
    #header>img {
        max-width: 100% !important;
        /* Verhindert, dass das Bild über den Bildschirmrand hinausragt */
        height: auto !important;
        /* Hält das Seitenverhältnis perfekt proportional */
        border: 0.25rem solid #fff !important;
        /* Reduziert den dicken weißen Rahmen für Handys */
        box-sizing: border-box !important;
        /* Rechnet den Rahmen in die Gesamtbreite mit ein */
    }

    #header {
        display: flex;
        flex-direction: column;
        /* Stapelt Bild und Textbox untereinander */
    }

    /* Setzt das Bild an die erste Stelle im Stapel */
    #header picture {
        order: 1;
    }

    #menu_oben {
        height: 3rem;
        padding: 1rem;
        display: contents;
    }

    #menu_oben_rechts {
        width: 100%;
        height: 50rem;
        border: 0px #000 solid;
        display: none;
    }

    #menu_oben_rechts>span:not(:last-child):after {
        content: " ";
    }

    #menu_oben_rechts>span {
        display: block;
        margin: 0.25rem 2rem;
        background-color: #FFF;
        padding: 0.5rem;
    }

    #menu_oben_rechts>span.weitere_menupunkte {
        margin: 1rem 2rem;
    }

    #CookieBanner {
        left: 5%;
        top: 10%;
        margin-left: 0;
    }

    .CookieContainer {
        width: 90%;
        height: 80%;
    }

    .CookieContainer {
        width: 90%;
    }

    .CookieContainerButton>span>button {
        width: 100%;
        margin-top: 1rem;
    }

    #navigation_mobil {
        font-size: 2rem;
        color: #fff;
        padding: 0 0.5rem;
        display: block;
        position: absolute;
        top: 0rem;
        right: 1rem;
        background-color: #CCC;
        opacity: 0.8;
        border-radius: 3px;
        padding: 0.1rem 0.2rem;
    }

    #navigationsleiste {
        padding: 0.5rem 1rem;
        background-color: #efefef;
        margin-top: 0;
    }

    #navigationsleiste>span {
        display: block;
    }

    #navigationsleiste>.nav_leiste_more::before {
        content: ">";
    }

    .search-container {
        margin: 1.5rem;
        width: 15rem;
    }

    .search-button {
        top: -28px;
    }

    h1 {
        font-size: 1.5rem;
    }

    #div_kontakt,
    #div_offen {
        display: block;
    }

    #div_kontakt,
    #div_offen,
    #div_karte>div {
        margin-bottom: 2rem;
    }

    #ausflugsziel_details_container {
        display: flex;
        flex-direction: column;
        /* Stapelt die Blöcke sauber untereinander */
        padding: 1.5rem 1rem;
        /* Schützt vor dem Ankleben am Bildschirmrand */
        margin: 0;
        background-color: #fff;
    }

    /* Der obere Bereich mit Icon und der h1-Überschrift */
    #ausflugsziel_icon_titel_container {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    /* Das große Kategorie-Icon (z.B. die Mühle) */
    #ausflugsziel_icon_titel_container .ziel_icon a img {
        width: 3.5rem !important;
        height: auto;
    }

    /* Die eigentliche Überschrift */
    .ziel_ueberschrift_klein h1 {
        font-size: 2rem !important;
        line-height: 2rem;
        font-weight: 700;
        color: #4a2e13;
        margin: 0;
    }

    .skalen.text_klein {
        font-size: 1rem;
    }

    /* Bereich für Sterne, Aktualisierungsdatum und die runden Buttons */
    #ausflugsziel_attribute_container {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    /* Linker Part: Sterne-Bewertung + "Aktuell vom..." textlich ordnen */
    #ausflugsziel_attribute_container>div:first-child {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

    /* Rechter Part (wird mobil nach unten geschoben): Die Funktionsbuttons */
    #ausflugsziel_symbole_skalen_container {
        justify-self: start;
        /* Richtet die Buttons linksbündig aus */
        margin: 0;
        display: flex;
        flex-wrap: wrap;
        /* Erlaubt sauberen Umbruch, falls es viele Buttons sind */
        gap: 0.5rem;
        /* Gleichmäßiger Abstand zwischen den Buttons */
    }

    /* Verhindert, dass die kleinen Kriterien-Buttons/Bilder gequetscht werden */
    #ausflugsziel_symbole_skalen_container img,
    #ausflugsziel_symbole_skalen_container .symbol {
        width: 2.2rem !important;
        /* Angenehme Touch-Größe für Smartphones */
        height: 2.2rem !important;
        object-fit: contain;
        margin: 0.25rem;
        /* Abstand wird jetzt sauber über Flex-Gap geregelt */
    }

    /* Setzt die Textbox an die zweite Stelle (direkt unter das Bild) */
    #titel_in_bild {
        order: 2;
        position: relative;
        left: 0;
        bottom: 0;
        padding: 0.25rem 1rem;
        color: #303030;
        text-shadow: none;
        text-align: left;
        background-color: #efefef;
        border-top: #fff 0.5rem solid;
        border-bottom: #fff 0.5rem solid;
    }

    /* 2. Blendet die doppelte Überschrift in der mobilen Version komplett aus */
    #titel_in_bild h1 {
        display: none;
    }

    /* 3. Formatiert die Bildunterschrift für die mobile Ansicht unter dem Bild */
    .foto_titel {
        font-size: 0.75rem;
        color: #666;
        /* Ein dezentes Grau */
        display: block;
    }

    .foto_titel {
        font-size: 0.75rem;
        color: #666;
        /* Dezentes Grau für die Bildunterschrift */
        display: block;
    }

    label {
        text-align: left;
        display: contents;
    }

    label::after {
        content: "";
    }

    .formularzeile {
        grid-template-columns: auto;
    }

    .versteckter_abschnitt {
        margin: 0 1rem;
    }

    .kontaktausgabe {
        padding: 0;
        margin-bottom: 2rem;
    }

    button {
        margin-top: 2rem;
    }

    .zeile_uebersicht>div>a {
        width: 680px;
    }

    .suchstring_gefunden {
        line-height: normal;
    }

    #footer {
        height: 10rem;
    }

    .footer_teiler {
        display: none;
    }

    #zugriffe {
        display: grid;
        grid-auto-rows: auto;
    }

    .zeile_uebersicht {
        margin-left: 0rem;
        background: #EFEFEF;
        grid-template-columns: 3rem auto;
    }

    .suchergebnis_text {
        margin-left: 0rem;
    }

    #text_ausflugsziel {
        text-align: left;
    }

    .sonderziele_element_bild_text {
        display: block;
    }

    .sonderziele_element_ziel {
        margin: 1rem 0rem;
        background-color: #F0F0F0;
        padding: 1rem;
    }

    /* OPTIMIERT: Gibt dem Sonderziel-Text auf Handys links/rechts den vollen Platz */
    #text_sonderziel {
        padding: 0rem 0.5rem;
    }

    /* =========================================================================
       HANDY-OPTIMIERUNG: Mühlentag Infobox & Icons (Abgesetzt wie auf PC)
       ========================================================================= */
    .muehlentag_infobox {
        background-color: #fcfbfa;
        /* Sanfter, warmer Naturton-Hintergrund */
        border-left: 4px solid #8b5a2b;
        /* Das markante Braun als Akzent-Kante */
        border-top: 1px solid #eaeaea;
        border-right: 1px solid #eaeaea;
        border-bottom: 1px solid #eaeaea;
        border-radius: 0 6px 6px 0;
        /* Ecken rechts leicht abrunden */
        padding: 1rem;
        /* Kompakteres, mobiles Innen-Padding */
        margin: 1.5rem 0;
        /* Abstand nach oben und unten zum Text */
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        /* Dezentester Schatten für die Box-Tiefe */
    }

    .muehlentag_infobox h4 {
        color: #8b5a2b;
        /* Überschrift im passenden Braun */
        font-size: 1.05rem;
        /* Überschrift dezent herabstufen */
        margin-top: 0;
        margin-bottom: 0.75rem;
        font-weight: 700;
    }

    .hinweise_sonderziel_zeile {
        display: flex;
        /* Erzwingt die moderne Zeilen-Ausrichtung */
        align-items: flex-start;
        /* Richtet Icons oben aus, falls Text zweizeilig wird */
        margin-bottom: 0.6rem;
    }

    /* Die Icons werden geschrumpft, damit sie nicht den Bildschirm fressen! */
    .hinweise_sonderziel_zeile img,
    .hinweise_sonderziel_icon>img {
        width: 1.1rem !important;
        /* Perfekte, dezente Größe für mobile Displays */
        height: 1.1rem !important;
        margin-right: 0.6rem;
        margin-top: 0.15rem;
        /* Schiebt das Icon optisch auf die erste Textzeile */
        object-fit: contain;
    }

    .hinweise_sonderziel_zeile span {
        font-size: 0.9rem;
        /* Text minimal feiner für Mobilgeräte */
        line-height: 1.3rem;
    }

    /* Mobile Anpassung für den Freitext (Handwerkliche Vorführungen) */
    .muehlentag_zusatztext {
        margin-top: 1rem;
        padding-top: 0.75rem;
        border-top: 1px dashed #eaeaea;
        /* Gestrichelte Trennlinie wie im PC-Original */
        font-style: italic;
        /* Hebt den individuellen Aktionstext ab */
        color: #555;
        font-size: 0.9rem;
    }

    /* ========================================================================= */

    .titel_neuigkeiten a,
    .liste_ueberschrift a {
        font-size: 1.25rem;
        line-height: 1.5rem;
        display: inline-block;
        margin-bottom: 0.5rem;
        color: #4a2e13;
    }

    .titel_neuigkeiten {
        width: 100%;
        white-space: normal;
    }

    #admin_form_table,
    #admin_form_table tbody,
    #admin_form_table>tr,
    #admin_form_table>tbody>tr {
        display: block;
        width: 100%;
    }

    #admin_form_table>tr>td,
    #admin_form_table>tbody>tr>td {
        display: block;
        width: 100% !important;
        text-align: left !important;
        box-sizing: border-box;
    }

    #admin_form_table td.rechtsoben {
        padding-top: 15px;
        padding-bottom: 5px;
        font-weight: bold;
        background-color: #f5f5f5;
    }

    .admin_form {
        width: 100% !important;
    }

    /* Verschachtelte Tabellen (Öffnungszeiten/Preise) stapeln */
    #admin_form_table table,
    #admin_form_table table tr,
    #admin_form_table table td {
        display: block;
        width: 100% !important;
    }

    /* Den grauen Hintergrund für den Submit-Bereich entfernen */
    #admin_form_table tr:last-child td.rechtsoben {
        background-color: transparent;
    }
}