/*
Theme Name: Breuer Design Custom
Author: Daniel Brueckner
Description: Custom Black Theme mit Hero-Morphing und One-Page-Logik.
Version: 1.2
*/

/* --- 1. BASIS EINSTELLUNGEN --- */
html {
    scroll-behavior: smooth;
    /* Offset für Anker-Links, damit die Überschrift nicht unter der Navi klebt */
    scroll-padding-top: 90px; 
}

body {
    background-color: #000000 !important;
    color: #ffffff !important;
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    overflow-x: hidden;
}

/* --- 2. HEADER & NAVIGATION --- */
header#site-header {
    background-color: transparent;
    transition: all 0.5s ease-in-out;
    z-index: 10000;
}

/* Zustand: Wenn gescrollt wurde ODER auf einer Unterseite (Impressum etc.) */
header.scrolled, 
header.subpage-header {
    background-color: rgba(0, 0, 0, 0.95) !important;
    border-bottom: 1px solid #222;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

/* Das kleine Logo im Header */
#header-logo-container {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.4s ease-in-out;
}

/* Logo einblenden wenn gescrollt oder Unterseite */
header.scrolled #header-logo-container,
header.subpage-header #header-logo-container {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

#small-header-logo {
    height: 45px;
    width: auto;
    object-fit: cover;
    object-position: top;
    border-radius: 4px;
}

/* Navigation allgemein */
.navbar-nav ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
}

.navbar-nav li a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 500;
    transition: color 0.3s ease;
    display: block;
}

.navbar-nav li a:hover {
    color: #007bff !important;
}

/* --- 3. RESPONSIVE NAVIGATION (MOBILE vs DESKTOP) --- */

/* MOBILE: Burger Menü (bis 991px) */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: rgba(10, 10, 10, 0.98);
        padding: 20px;
        margin-top: 15px;
        border-radius: 8px;
        border: 1px solid #333;
    }
    
    .navbar-nav ul {
        flex-direction: column !important; /* Untereinander */
        text-align: center;
        gap: 10px;
    }
    
    .navbar-nav li {
        width: 100%;
        border-bottom: 1px solid #222;
        padding-bottom: 8px;
    }
}

/* DESKTOP: (ab 992px) */
@media (min-width: 992px) {
    .navbar-nav ul {
        flex-direction: row !important; /* Nebeneinander */
        gap: 25px;
    }
    
    .navbar-nav li {
        border-bottom: none;
    }
}

/* HERO AREA STYLING */
#hero-area {
    min-height: 100vh;
    padding-top: 100px; /* Platz für die Navi */
    background-color: #000;
}

#big-hero-img {
    width: 1024px;
    max-width: 95vw;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(255,255,255,0.05);
}

.hero-seo-text {
    color: #f8f8f8;
}

.hero-seo-text h1 {
    letter-spacing: 2px;
}

.hero-seo-text ul li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ccc;
}

/* HEADER LOGO TRANSITION */
#header-logo-container {
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease-in-out;
}

/* Wenn gescrollt wird, zeigen wir das kleine Logo im Header */
header.scrolled #header-logo-container,
header.subpage-header #header-logo-container {
    opacity: 1;
    visibility: visible;
}

#small-header-logo {
    height: 40px;
    width: auto;
}

/* NAVIGATION LINKS */
.navbar-nav ul {
    display: flex !important;
    list-style: none !important;
    gap: 20px;
}

/* --- 6. FOOTER --- */
#footer {
    border-color: #222 !important;
}

.social-media-link-item-medium {
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: inline-block;
}

.social-media-link-item-medium:hover {
    transform: translateY(-3px);
    opacity: 0.7;
}

#footer a.text-secondary {
    color: #888 !important;
    transition: color 0.3s;
}

#footer a.text-secondary:hover {
    color: #ffffff !important;
}

.text-muted {
    color: #555 !important;
}

/* WordPress Admin Bar Fix */
.admin-bar .fixed-top {
    top: 32px !important;
}
@media (max-width: 782px) {
    .admin-bar .fixed-top {
        top: 46px !important;
    }
}