/* Einbinden der Schriftart */
@font-face {
    font-family: 'LavishlyYours-Regular';
    src: url('fonts/LavishlyYours-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Allgemeiner Stil */
body {
    font-family: 'Instrument Serif', serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
    background-color: #cac4b6;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

/* Zitat-Textbox Styles */
.zitat {
    padding: 10px;
    width: 99%;
    min-height: 120px;
    margin: 2rem auto;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    background-color: #306870;
    text-align: center;
    font-size: 2rem;
    color: #d9d2c3;
    font-family: 'LavishlyYours-Regular';
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

:root {
    --page-gap: 10px;
}

body.gap-large {
    --page-gap: 30px;
}

header {
    margin: var(--page-gap) auto 0 auto;
    background: url('bilder/rekt.jpg') no-repeat center center;
    background-size: contain;
    background-color: #629c76;
    font-family: 'Instrument Serif', serif;
    color: #d9d2c3;
    text-align: center;
    padding: 1rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    height: 150px;
}

header h1 {
    margin: 0;
    font-size: 2rem;
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.4);
}

nav {
    margin: var(--page-gap);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #306870;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    flex-wrap: wrap;
}

nav a {
    font-family: 'Instrument Serif', serif;
    color: #d9d2c3;
    text-decoration: none;
    padding: 1.2rem; /* 1rem * 1.2 = 1.2rem */
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7.2px; /* 6px * 1.2 = 7.2px */
    transition: background 0.5s,
                box-shadow 0.3s,
                border-radius 0.3s;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    border-radius: 0;
    font-size: 1.2em; /* Schriftgröße im Nav-Menü um 20% erhöht */
}

.nav-icon {
    width: 28.8px; /* 24px * 1.2 = 28.8px */
    height: 28.8px; /* 24px * 1.2 = 28.8px */
    margin-right: 9.6px; /* 8px * 1.2 = 9.6px */
    border-radius: 4px;
    object-fit: cover;
    vertical-align: middle;
}

nav a:hover,
nav a.active {
    color: #cac4b6;
    background: #055162;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

/* --- DROPDOWN LOGIK --- */
.dropdown {
    position: static;
    display: flex;
    align-items: center;
}

.dropdown > a {
    display: flex;
    align-items: center;
    gap: 7.2px; /* 6px * 1.2 = 7.2px */
}

/* Positionierung für den Flow */
.dropdown-content {
    display: none;
    list-style-type: none;
    padding: 12px; /* 10px * 1.2 = 12px */
    box-sizing: border-box;
    margin: var(--page-gap) auto 0 auto;
    max-width: 97.5%;
    
    background: #055162;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10;
    border-radius: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.dropdown-content li {
    text-align: center;
}

.dropdown-content li a {
    color: #cac4b6;
    padding: 0.72rem 1.2rem; /* 0.6rem * 1.2 = 0.72rem; 1rem * 1.2 = 1.2rem */
    font-size: 0.804rem; /* 0.67rem * 1.2 = 0.804rem */
    text-decoration: none;
    transition: background 0.5s,
                border-radius 0.5s;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Wiederhergestellter Hover-Effekt für Dropdown-Links */
.dropdown-content li a:hover {
    color: #d9d2c3;
    background: #306870; /* Eine dunklere Farbe für den Hover-Effekt im Dropdown */
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Aktivierung durch JS */
.dropdown-content.show {
    display: flex;
    margin-bottom: var(--page-gap);
}

.container {
    flex-wrap: wrap;
    margin: var(--page-gap) auto;
    padding: 1rem;
    background: #fbfaf8;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    margin-left: 11px;
    margin-right: 11px;
    padding-bottom: 115px;
    max-width: 97.5%;
    transition: margin-bottom 0.4s ease,
                margin-top 0.4s ease;
}

/* Breitenbegrenzung */
.container h2,
.container p,
.container ul,
.container ol,
.container address {
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
}

/* -----------------------------------------
   🌙 DARK MODE — FINAL (html.dark-mode!)
------------------------------------------ */

/* Seite */
html.dark-mode body {
    background-color: #000000;
}

/* Container */
html.dark-mode .container {
    background-color: #3e3f3a;
    color: #e0e0e0;
}

/* Headings & Menüfarben */
html.dark-mode h2,
html.dark-mode .menu-color-text {
    color: #9cdcfb;
}

/* Textlinks im Dark Mode */
html.dark-mode .container a,
html.dark-mode footer a {
    color: #cac4b6; /* Deine gewünschte Farbe für Dark Mode */
}

/* Textlinks Hover im Dark Mode */
html.dark-mode .container a:hover,
html.dark-mode footer a:hover {
    color: #9cdcfb; /* Deine gewünschte Hover-Farbe */
}

/* Formulare */
html.dark-mode .form-group input,
html.dark-mode .form-group textarea {
    background-color: #3d3e39;
    color: #f0f0f0;
    border: 1px solid #888;
}

/* -----------------------------------------
   ENDE DARKMODE
------------------------------------------ */

/* Icons im Dropdown */
.dropdown > a img {
    width: 33.6px; /* 28px * 1.2 = 33.6px */
    height: 33.6px; /* 28px * 1.2 = 33.6px */
    object-fit: contain;
    border-radius: 8px;
    padding: 4.8px; /* 4px * 1.2 = 4.8px */
    background: #306870;
    outline: 1.8px solid rgba(255, 255, 255, 0.18); /* 1.5px * 1.2 = 1.8px */
    box-shadow: 0 2.4px 0 rgba(0, 0, 0, 0.25), /* 2px * 1.2 = 2.4px */
                inset 0 2.4px 3.6px rgba(255, 255, 255, 0.20), /* 2px * 1.2 = 2.4px, 3px * 1.2 = 3.6px */
                inset 0 -2.4px 3.6px rgba(0, 0, 0, 0.25); /* 2px * 1.2 = 2.4px, 3px * 1.2 = 3.6px */
    transition: transform 120ms ease,
                box-shadow 120ms ease;
}

.dropdown > a:hover img {
    box-shadow: 0 3.6px 0 rgba(0, 0, 0, 0.30), /* 3px * 1.2 = 3.6px */
                inset 0 2.4px 4.8px rgba(255, 255, 255, 0.22), /* 2px * 1.2 = 2.4px, 4px * 1.2 = 4.8px */
                inset 0 -2.4px 4.8px rgba(0, 0, 0, 0.28); /* 2px * 1.2 = 2.4px, 4px * 1.2 = 4.8px */
}

.dropdown > a:active img {
    transform: translateY(1.2px); /* 1px * 1.2 = 1.2px */
    box-shadow: 0 1.2px 0 rgba(0, 0, 0, 0.22), /* 1px * 1.2 = 1.2px */
                inset 0 1.2px 2.4px rgba(0, 0, 0, 0.35); /* 1px * 1.2 = 1.2px, 2px * 1.2 = 2.4px */
}

.logo-fixed {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(calc(-50% + 20px));
    width: 120px;
    height: auto;
}

.hidden { display: none; }
.visible { display: block; }

h2 {
    color: #09748C;
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    font-family: 'LavishlyYours-Regular';
    text-align: left;
}

.audio-player {
    background-color: #cac4b6;
    border: 2px solid #4f8261;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 16px;
    max-width: 300px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.audio-player audio {
    width: 100%;
    object-fit: contain;
    border-radius: 8px;
    padding: 2px;
    background: #4f8261;
    outline: 1.5px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25),
                inset 0 2px 3px rgba(255, 255, 255, 0.20),
                inset 0 -2px 3px rgba(0, 0, 0, 0.25);
    transition: transform 120ms ease,
                box-shadow 120ms ease;
}

.audio-player button {
    background-color: #629c76;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    margin-top: 10px;
    cursor: pointer;
    font-size: 14px;
    font-family: "Arial", sans-serif;
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.4);
    transition: background-color 0.3s ease,
                transform 0.2s ease;
}

.audio-player button:hover {
    background-color: #306870;
}

.audio-player button:active {
    transform: scale(0.95);
}

.audio-player .track-title {
    font-size: 16px;
    color: #055162;
    margin-bottom: 10px;
    text-align: center;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.content {
    text-align: relative;
    padding-top: 10px;
}

footer {
    margin: 0 auto;
    background: #629c76;
    font-family: 'Instrument Serif', serif;
    color: #d9d2c3;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
}

.menu-color-text { color: #09748C; }

.profile-image,
.maps-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    float: right;
    margin: 20px;
    cursor: pointer;
}

/* MEDIA QUERIES */
@media (max-width: 768px) {
    :root { --page-gap: 6px; }
    nav { flex-direction: column; }

    .dropdown-content.show {
        display: block;
    }

    .dropdown-content { padding: 0; }
    .dropdown-content li { margin: 0; }

    .profile-image,
    .maps-image {
        float: none;
        display: block;
        margin: 10px auto;
    }
}

@media (max-width: 600px) {
    .dropdown-content {
        justify-content: flex-start;
        flex-direction: column;
        align-items: flex-start;
    }

    .dropdown-content li,
    .dropdown-content li a {
        text-align: left;
        width: 100%;
        justify-content: flex-start;
    }

    nav {
        flex-direction: row;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    nav .dropdown,
    nav #theme-switch-container {
        margin-right: 10px;
    }

    nav a {
        flex-basis: 100%;
        text-align: left;
    }
}

.fullscreen-image {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.fullscreen-image img {
    max-width: 90%;
    max-height: 90%;
}

.fullscreen-image.active {
    display: flex;
}

.form-group {
    margin-bottom: 15px;
    /* NEU: Zentriert den Platz des Formularfelds und lässt 10% Rand links/rechts */
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group button {
    /* NEU: Nimmt die volle Breite des zentrierten .form-group-Containers ein */
    width: 100%; 
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    text-align: left; /* NEU: Stellt sicher, dass Texte linksbündig sind */
}

.form-group textarea {
    resize: vertical;
    height: 100px;
}

.form-group button {
    /* NEU: Muss Block sein, um 100% Breite anzunehmen und zentriert auszusehen */
    display: block; 
    background-color: #689A7A;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    border: none;
    text-align: center; /* NEU: Stellt sicher, dass Button-Text linksbündig ist */
}

.form-group button:hover {
    background-color: #567F61;
}

#theme-switch-container {
    display: flex;
    align-items: center;
    padding-right: 1.2rem; /* 1rem * 1.2 = 1.2rem */
}

#theme-switch {
    width: 72px; /* 60px * 1.2 = 72px */
    height: 36px; /* 30px * 1.2 = 36px */
    background-color: #055162;
    border-radius: 18px; /* 15px * 1.2 = 18px */
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#switch-handle {
    width: 31.2px; /* 26px * 1.2 = 31.2px */
    height: 31.2px; /* 26px * 1.2 = 31.2px */
    background-color: #f0f0f0;
    border-radius: 50%;
    position: absolute;
    top: 2.4px; /* 2px * 1.2 = 2.4px */
    left: 2.4px; /* 2px * 1.2 = 2.4px */
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19.2px; /* 16px * 1.2 = 19.2px */
}

#theme-switch.night #switch-handle {
    transform: translateX(36px); /* 30px * 1.2 = 36px */
}

/* Navigation Links */
nav a,
.dropdown-content li a {
    text-decoration: none !important;
}

/* Textlinks */
.container a,
footer a {
    color: #055162;
    text-decoration: underline;
}

.container a:hover,
footer a:hover {
    color: #629c76;
}