/* Grundlayout */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, Helvetica, Arial, sans-serif;
    color: #f5f1e5;
    background-color: #000000;
    background-image: url("Images/Middle_texture_darky.jpg");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

body {
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.page-wrapper {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    background: transparent;
}

/* Hero-Bereich */
.hero {
    position: relative;
/*    min-height: 60vh; */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Kein zusätzlicher dunkler Rand mehr – kein Overlay */
.hero::before {
    content: none;
}

/* Header / Logo (für Unterseiten) */
.site-header {
    padding: 1.5rem 1.5rem 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(5, 3, 3, 0.85);
}

.brand {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.brand-link {
    display: inline-flex;
}

.logo-shield {
    max-height: 96px;
    height: auto;
    width: auto;
}

.logo-text {
    max-height: 60px;
    height: auto;
    width: auto;
}

/* Brand im Hero der Startseite */
.hero-brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.hero-logo {
    max-height: 192px; /* größer */
		filter:drop-shadow(6px -4px 2px hsla(0deg, 0%, 0%, 5)) drop-shadow(-6px 4px 2px hsla(0deg, 0%, 0%, 5));
}

.hero-logo-text {
    max-height: 120px; /* größer */
		filter:drop-shadow(6px -4px 2px hsla(0deg, 0%, 0%, 5)) drop-shadow(-6px 4px 2px hsla(0deg, 0%, 0%, 5));
}

/* Hero-Inhalt */
.hero-overlay {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem 1.5rem;
    max-width: 900px;
}

.hero-subtitle {
    margin: 0 0 1.5rem;
    font-size: 1.05rem;
    line-height: 1.5;
    color: #f8e7c0;
    filter:drop-shadow(6px -4px 2px hsla(0deg, 0%, 0%, 5)) drop-shadow(-6px 4px 2px hsla(0deg, 0%, 0%, 5));
}

.btn-primary {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 999px;
    border: 1px solid #f0c15b;
    background: linear-gradient(135deg, #8c5a10, #c49332);
    color: #111;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.95rem;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.7);
    transition: transform 0.15s ease, box-shadow 0.15s ease,
                background 0.15s ease;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.9);
    background: linear-gradient(135deg, #c49332, #f0c15b);
    color: #111;
}

/* Hauptbereiche */
main {
    flex: 1;
}

/* Inhalt Startseite */
.content-section {
    max-width: 960px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 1rem;
}

.content-inner {
    background: rgba(0, 0, 0, 0.78); /* leicht transparenter Textbereich */
    border-radius: 10px;
    padding: 2rem 1.5rem 1rem;
}

/* Inhalt Rechtsseiten */
.legal-section {
    max-width: 960px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 1rem;
}

.legal-box {
    background: rgba(0, 0, 0, 0.78); /* leicht transparenter Textbereich */
    border-radius: 10px;
    padding: 2rem 1.5rem 1rem;
}

.content-section h2,
.legal-section h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #f0c15b;
}

.content-section p,
.legal-section p,
.legal-section li,
.legal-page p {
    font-size: 0.97rem;
    line-height: 1.7;
    color: #f5f1e5;
}

/* Legal-Seiten (Impressum/Datenschutz) */
.legal-page h1 {
    margin-top: 0;
    margin-bottom: 1.25rem;
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #f0c15b;
}

.legal-page h2 {
    font-size: 1.25rem;
}

.back-link {
    margin-top: 2rem;
}

/* Kontakt-Layout */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.contact-grid h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
    color: #f0c15b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Links */
a {
    color: #f0c15b;
    text-decoration: none;
}

a:hover,
a:focus-visible {
    text-decoration: underline;
}

/* Bilder-Schutz: kein Drag, keine Selektion (Rechtsklick via JS) */
img {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}

/* Footer */
.site-footer {
    padding: 1.25rem 1.5rem 1.75rem;
    text-align: center;
    background: rgba(5, 3, 3, 0.9);
    border-top: 1px solid rgba(240, 193, 91, 0.3);
    font-size: 0.85rem;
    color: #d8c9aa;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

/* Visuell versteckter Text (für SEO/Barrierefreiheit) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .brand {
        flex-direction: column;
        gap: 0.75rem;
    }

    .logo-shield {
        max-height: 80px;
    }

    .logo-text {
        max-height: 42px;
    }

    .hero {
        min-height: 55vh;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-brand {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-logo {
        max-height: 150px;
    }

    .hero-logo-text {
        max-height: 90px;
    }
}

@media (max-width: 480px) {
    .content-section,
    .legal-section {
        padding-inline: 1.1rem;
    }
}


/* Layout-Anpassung Startseite: 
   - Abstand zwischen Hero und erster Textbox halbieren
   - Profil- und Kontakt-Box optisch verbinden (kein Abstand oben an der zweiten Box)
*/
main > .content-section:first-of-type {
    padding-top: 0.25rem;
}

main > .content-section + .content-section {
    padding-top: 0;
}

/* Profil- und Kontakt-Panel optisch verbinden */
#profil.content-section {
    padding-bottom: 0;              /* unten kein Außenabstand */
}

#kontakt.content-section {
    padding-top: 0;                 /* oben kein Außenabstand */
}

/* In der Mitte keine Rundungen, damit es wie EINE Box wirkt */
#profil .panel-box {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

#kontakt .panel-box {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/* Abstand zwischen Button und erster Box deutlich verringern */
.hero-overlay {
    padding-bottom: 1.5rem;  /* vorher 2rem – deutlich weniger Platz nach unten */
}

/* Profil-Box ein Stück nach oben ziehen */
#profil.content-section {
    margin-top: -1.25rem;    /* zieht die Box etwa 1.25rem nach oben */
}
