/*
Theme Name: Lied-Hoch Theme
Description: Full Custom Theme - Bootstrap 5 Overrides, WCAG 2.1, ACF Support
Version: 1.3
Author: Northern Concepts Werbeagentur
*/

/* ==========================================================================
   1. FONTS & VARIABLEN
   ========================================================================== */

/* Playfair Display - Lokal */
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/playfair-display-v40-latin-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/playfair-display-v40-latin-700.woff2') format('woff2');
}

/* Lato - Lokal */
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/lato-v25-latin-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/lato-v25-latin-700.woff2') format('woff2');
}

:root {
    --lh-blue: #003056;
    --lh-red: #7a1b1b;
    --lh-gold: #c5a059;
    --lh-cream: #fdfaf5;
    --lh-white: #ffffff;
    --lh-text: #212529;
    --lh-light-text: rgba(255,255,255,0.85);
    --lh-bg-termine: #f8f9fa;
    --lh-font-serif: 'Playfair Display', serif;
    --lh-font-sans: 'Lato', sans-serif;
}

/* ==========================================================================
   2. TYPOGRAFIE & BASICS
   ========================================================================== */

body {
    font-family: var(--lh-font-sans);
    color: #444;
    background-color: var(--lh-white);
    font-size: 1.15rem;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

p, .text-muted, .footer-text {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

h1, h2, h3, h4, .section-title, .brand-main-title {
    font-family: var(--lh-font-serif);
    font-weight: 700;
}

 .brand-main-title {
     font-size: 1.2rem;
}

 .brand-sub-title {
     font-size: 1.1rem;
}

h1 {
    font-family: var(--lh-font-serif) !important;
    font-size: clamp(2.2rem, 5vw, 3rem);
    color: var(--lh-blue);
    margin-top: 0.5rem;
	margin-bottom: 0.5rem;
    line-height: 1.25;
}

h2 {
	font-size: clamp(1.3rem, 2.5vw, 1.75rem);
    color: #484848;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 15px;
    display: block;
}

h2::after, .h2::after, .album-archive-content h2::after, .album-main-content h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: var(--lh-gold);
    border-radius: 2px;
}

.small, small, .event-meta, .footer-copy {
    font-size: 0.95rem;
}

.section-title {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.text-gold { color: var(--lh-gold) !important; }
.text-blue { color: var(--lh-blue) !important; }
.bg-cream { background-color: #f9f7f2; }
.bg-gold { background-color: var(--lh-gold); }
.letter-spacing-1 { letter-spacing: 1px; }



/* ==========================================================================
   STARTSEITEN-SPEZIFISCHE TYPOGRAFIE (SEO-Konform & Visuell Stark)
   ========================================================================== */

/* Wir nutzen die Body-Klasse .home, um nur die Startseite zu beeinflussen */

.home section h2 {
    /* H2 soll aussehen wie H1 */
    font-family: var(--lh-font-serif) !important;
    font-size: clamp(2.2rem, 5vw, 3rem) !important;
    color: var(--lh-blue);
    line-height: 1.1;
    font-weight: 700;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

.home section h3 {
    /* H3 soll aussehen wie die (vergrößerte) H2 */
    font-family: var(--lh-font-serif);
    font-size: clamp(1.1rem, 2.0vw, 1.35rem);
    color: #484848;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 15px;
    display: block;
}

/* Den Strich bei der H2 auf der Startseite entfernen */
.home section h2::after {
    display: none !important;
    content: none !important;
}

/* Sicherstellen, dass die H3 auf der Startseite den Strich bekommt */
.home section h3::after {
    display: block !important;
    content: "" !important;
}


/* ==========================================================================
   3. LAYOUT & ABSTÄNDE (FIXED HEADER KORREKTUR)
   ========================================================================== */

/* Wir definieren eine zentrale Variable für die Header-Höhe */
:root {
    --header-height: 120px; /* Hier kannst du global schrauben */
}

/* --- Globaler Fix gegen horizontales Scrollen --- */
html, body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* Verhindert, dass Bootstrap Rows den Rand sprengen */
.container, .container-fluid {
    overflow: hidden;
}

/* Fix für die Navbar, falls das Padding sie verbreitert */
.navbar {
    max-width: 100vw;
}

/* Automatischer Zeilenumbruch für extrem lange Wörter oder URLs */
p, span, a, h1, h2, h3 {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

main, 
.album-main-content, 
.album-archive-content, 
.page-template-default main {
    /* Wir addieren die Header-Höhe zum gewünschten Abstand */
    padding-top: calc(var(--header-height) + 40px) !important;
    min-height: 80vh;
}

/* Spezialfall Home: Wenn ein Hero-Bild vorhanden ist */
.home main {
    padding-top: 0 !important;
}


/* Korrektur für Anker-Links */
*[id] {
    scroll-margin-top: calc(var(--header-height) + 20px);
}

/* ==========================================================================
   4. NAVIGATION & NAVBAR
   ========================================================================== */

.navbar {
    background-image: linear-gradient(rgba(0, 48, 86, 0.85), rgba(0, 48, 86, 0.95)), url('images/header-bg.jpg');
    background-size: cover;
    background-position: center;
    
    /* Der goldene Abschlussstrich */
    border-bottom: 3px solid var(--lh-gold) !important;
    
    /* Schatten leicht anpassen, damit er unter dem Goldstrich liegt */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    
    padding: 15px 0 !important;
}

.navbar-nav .nav-link:hover {
    color: var(--lh-gold) !important;
    font-family: var(--lh-font-sans);
    letter-spacing: 1px;
}

/* ==========================================================================
   5. HERO & BANNER
   ========================================================================== */

.hero-wrapper {
    min-height: 65vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: var(--lh-white);
    position: relative;
    padding: 140px 0 80px;
    letter-spacing: -1px;
	margin-top: 40px;
}

.hero-wrapper h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    max-width: 800px;
    line-height: 1.1;
    color: var(--lh-white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-wrapper .lead, .hero-wrapper p {
    color: var(--lh-light-text);
}

.cta-banner {
    min-height: 350px;
    background-blend-mode: overlay;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cta-banner h3 {
    font-size: 2rem;
    color: var(--lh-white);
}

/* ==========================================================================
   6. KOMPONENTEN (CARDS & BUTTONS)
   ========================================================================== */

/* Buttons */
.btn {
    border-radius: 4px;
    padding: 12px 28px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-gold { background-color: var(--lh-gold); color: var(--lh-white) !important; border: none; }
.btn-gold:hover, .btn-gold:focus { background-color: #b08d4a; transform: translateY(-2px); }

.btn-outline-gold { border: 2px solid var(--lh-gold); color: var(--lh-gold); background: transparent; }
.btn-outline-gold:hover { background-color: var(--lh-gold); color: var(--lh-white) !important; }

.btn-dark-red { background-color: var(--lh-red); color: var(--lh-white) !important; border: none; }
.btn-dark-red:hover { background-color: #5a1414; transform: translateY(-2px); }

/* Event Cards */
#termine { background-color: var(--lh-bg-termine); }

.event-card {
    background-color: #ffffff !important;
    border: 1px solid #eee;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
    border-color: var(--lh-gold);
}

.event-card .fw-bold.small {
    font-family: var(--lh-font-sans);
    letter-spacing: 0.5px;
    border: none !important;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.event-image-wrapper img { transition: transform 0.3s ease; }
.event-card:hover .event-image-wrapper img { transform: scale(1.1); }

.date-badge {
    position: absolute;
    top: 15px; left: 15px;
    background: var(--lh-white);
    color: var(--lh-blue);
    padding: 8px 15px;
    text-align: center;
    font-weight: bold;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    line-height: 1.2;
    z-index: 2;
}

.date-badge small { text-transform: uppercase; font-size: 0.7rem; display: block; }
.date-badge-box { background: #f8f9fa; padding: 10px 5px; border-radius: 4px; }
.event-meta svg { vertical-align: -2px; }

.event-description { line-height: 1.8; font-size: 1.1rem; color: #444; }
.event-description p { margin-bottom: 1.5rem; }

/* Impression Cards */
.impression-card { transition: transform 0.3s ease; }
.impression-card img { aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; }

/* ==========================================================================
   7. SEKTIONEN (UEBER UNS & VIDEO)
   ========================================================================== */

/* Über Uns */
.about-text-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--lh-blue) !important;
    opacity: 0.95;
}

.about-text-content p:first-of-type { font-weight: 500; color: var(--lh-blue); }

.about-image-wrapper {
    position: relative;
    padding: 0;
    display: inline-block;
}

#ueber-uns img {
    max-width: 90%;
    height: auto;
    border-radius: 35px;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    z-index: 1;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: none !important;
}

.about-shape-decorator {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 60%;
    height: 70%;
    border: 2px solid var(--lh-gold);
    opacity: 0.4;
    border-radius: 45px;
    z-index: 0;
    transform: rotate(-3deg);
}

#ueber-uns .about-image-wrapper:hover img { transform: scale(1.02) rotate(1deg); }

.about-features-grid { border-top: 1px solid rgba(0,0,0,0.05); padding-top: 2rem; }
.feature-icon {
    display: flex; align-items: center; justify-content: center;
    background: #fff; width: 32px; height: 32px; border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Video Section */
.video-section { position: relative; background: #000; overflow: hidden; }
.video-section video { filter: brightness(0.7); object-fit: cover; }
.video-foreground { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }

.video-section iframe {
    position: absolute;
    top: 50%; left: 50%;
    width: 100%; height: 100%;
    min-height: 100vh; min-width: 177.77vh;
    transform: translate(-50%, -50%);
}

.play-button-trigger { transition: transform 0.3s ease; }
#yt-placeholder:hover .play-button-trigger { transform: scale(1.1); }

/* ==========================================================================
   8. FOOTER
   ========================================================================== */

footer.site-footer {
    background-image: linear-gradient(rgba(0, 48, 86, 0.85), rgba(0, 48, 86, 0.95)), url('images/footer-bg.jpg');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    padding: 80px 0 40px;
	
	/* Der goldene Abschlussstrich */
    border-top: 3px solid var(--lh-gold) !important;
    
    /* Schatten leicht anpassen, damit er unter dem Goldstrich liegt */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    
    padding: 15px 0 !important;
}

footer .footer-heading {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
}

footer .footer-heading::after {
    content: '';
    display: block;
    width: 30px; height: 2px;
    background-color: var(--lh-gold);
    margin-top: 10px;
}

footer .footer-text, footer .footer-contact p, footer .footer-copy {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8) !important;
}

footer .footer-nav li, footer .footer-legal ul li { list-style: none; margin-bottom: 0.75rem; }

footer .footer-nav li a, footer .footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

footer .footer-nav li a:hover, footer .footer-legal a:hover {
    color: var(--lh-gold);
    padding-left: 5px;
}

footer .footer-contact i { color: #ffffff; font-size: 1.1rem; flex-shrink: 0; }
footer .footer-divider { margin: 3rem 0 2rem; border-color: rgba(255, 255, 255, 0.1); }

footer .footer-socials a {
    font-size: 1.3rem; color: #ffffff; background: rgba(255, 255, 255, 0.1);
    width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; transition: all 0.3s ease;
}

footer .footer-socials a:hover { background: var(--lh-gold); color: var(--lh-blue); transform: translateY(-3px); }

.grayscale-logo {
    filter: grayscale(100%); opacity: 0.7; transition: all 0.4s ease;
    max-height: 80px; width: auto;
}
.grayscale-logo:hover { filter: grayscale(0%); opacity: 1; transform: scale(1.05); }

.footer-legal ul { display: flex; gap: 20px; justify-content: flex-end; }

/* ==========================================================================
   9. FORMS (PAGE BUILDER & CF7)
   ========================================================================== */

.lh-pb .form-group { margin-bottom: 1.5rem; }
.lh-pb .form-group label { display: block; color: #106aaf; font-weight: 700; font-size: 0.95rem; margin-bottom: 0.5rem; }

.lh-pb .wpcf7-form-control:not(.wpcf7-submit), .wpcf7-form-control:focus {
    display: block; width: 100%; padding: 0.75rem 1rem; font-size: 1rem;
    line-height: 1.5; border-radius: 1rem !important; transition: all 0.15s ease;
}

.lh-pb .wpcf7-form-control:not(.wpcf7-submit) {
    color: #495057; background-color: #fff; border: 1px solid #ced4da;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.075);
}

.lh-pb .wpcf7-form-control:not(.wpcf7-submit):focus, .wpcf7-form-control:focus {
    color: #212529; border-color: #106aaf; outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(16, 106, 175, 0.25);
}

.lh-pb .wpcf7-submit {
    background-color: #106aaf !important; color: #fff !important; border: none !important;
    padding: 0.75rem 2.5rem !important; font-weight: 700 !important; border-radius: 2rem !important;
    text-transform: uppercase; letter-spacing: 1px; transition: all 0.3s ease !important;
    box-shadow: 0 4px 6px rgba(16, 106, 175, 0.2); cursor: pointer;
}

.lh-pb .wpcf7-submit:hover { background-color: #134e7a !important; transform: translateY(-2px); box-shadow: 0 6px 12px rgba(16, 106, 175, 0.3); }

.wpcf7-not-valid-tip { color: #dc3545; font-size: 0.875em; font-weight: bold; margin-top: 0.25rem; display: block; }

.lh-pb .wpcf7-response-output {
    margin: 20px 0 0 0 !important; padding: 15px !important; border-radius: 1rem !important;
    border: 2px solid #106aaf !important; color: #106aaf !important; font-weight: 600; text-align: center;
}

.lh-pb .wpcf7-mail-sent-ng .wpcf7-response-output, .lh-pb .wpcf7-validation-errors .wpcf7-response-output {
    border-color: #ffc107 !important; color: #856404 !important;
}

/* Checkbox DS-GVO */
.lh-pb .lh-pb-checkbox { display: flex; align-items: flex-start; gap: 12px; margin-top: 1rem; }
.lh-pb .lh-pb-checkbox input[type="checkbox"] {
    width: 20px; height: 20px; margin-top: 2px; cursor: pointer;
    border: 2px solid #ced4da; border-radius: 4px; accent-color: #106aaf;
}
.lh-pb .lh-pb-checkbox label { font-size: 0.9rem; color: #495057; cursor: pointer; }
.lh-pb .lh-pb-checkbox label a { color: #106aaf; text-decoration: underline; font-weight: 600; }

/* ==========================================================================
   10. BARRIEREFREIHEIT (WCAG)
   ========================================================================== */

a:focus, button:focus, .btn:focus {
    outline: 3px solid var(--lh-gold) !important;
    outline-offset: 4px;
}

.visually-hidden-focusable:not(:focus):not(:active) {
    clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px;
    overflow: hidden; position: absolute; white-space: nowrap; width: 1px;
}

.visually-hidden-focusable:focus {
    z-index: 9999; top: 10px; left: 10px; background: var(--lh-red);
    color: #fff; padding: 15px; text-decoration: none; border-radius: 4px;
}

/* ==========================================================================
   11. RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@media (min-width: 992px) {
    #ueber-uns .ps-lg-5 { padding-left: 4rem !important; }
}

@media (max-width: 991px) {
    .hero-wrapper { min-height: 70vh; text-align: center; }
    .hero-wrapper .d-flex { justify-content: center; }
    .cta-banner { margin-top: 30px; min-height: 300px; }
}

@media (max-width: 767px) {
    .footer-legal ul { justify-content: center; margin-top: 15px; }
}