/* ═══════════════════════════════════════════════════════════════════════════
   Frontend CSS – Professionelles Corporate Design
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Variablen & Reset ────────────────────────────────────────────────────── */
:root {
    --cms-primary:    #0d6efd;
    --cms-dark:       #1a1d2e;
    --cms-nav-bg:     #1a1d2e;
    --cms-footer-bg:  #12141f;
    --cms-gray-100:   #f8f9fa;
    --cms-transition: 0.25s ease;
    --cms-radius:     0.5rem;
    --cms-shadow:     0 2px 16px rgba(0,0,0,.08);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #2d3748;
    background: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ── Navbar ───────────────────────────────────────────────────────────────── */
#mainNav {
    background-color: var(--cms-nav-bg) !important;
    padding: .75rem 0;
    transition: background var(--cms-transition), box-shadow var(--cms-transition);
}

#mainNav .navbar-brand {
    font-size: 1.2rem;
    letter-spacing: -.3px;
    color: #fff !important;
}

#mainNav .nav-link {
    color: rgba(255,255,255,.75) !important;
    padding: .45rem .85rem !important;
    border-radius: var(--cms-radius);
    font-size: .925rem;
    transition: color var(--cms-transition), background var(--cms-transition);
}
#mainNav .nav-link:hover,
#mainNav .nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,.1);
}
#mainNav .nav-link.active {
    font-weight: 600;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero-section {
    min-height: 540px;
    background: linear-gradient(135deg, var(--cms-dark) 0%, #2a3f6e 100%);
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10,12,25,.65) 0%, rgba(10,12,25,.55) 100%);
}

.hero-section .display-4 {
    font-weight: 800;
    letter-spacing: -.5px;
    text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.hero-section .lead { text-shadow: 0 1px 4px rgba(0,0,0,.25); }

/* ── Page Header (Seiten außer Startseite) ────────────────────────────────── */
.page-header {
    background: linear-gradient(135deg, var(--cms-dark) 0%, #2a3f6e 100%);
    color: #fff;
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}
.page-header h1 { font-weight: 800; }

/* ── CMS Content (WYSIWYG-Ausgabe) ───────────────────────────────────────── */
.cms-content h2, .cms-content h3, .cms-content h4 {
    font-weight: 700;
    margin-top: 1.75rem;
    margin-bottom: .75rem;
    color: var(--cms-dark);
}
.cms-content p { margin-bottom: 1rem; }
.cms-content ul, .cms-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.cms-content img { max-width: 100%; height: auto; border-radius: var(--cms-radius); }
.cms-content table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.cms-content table th,
.cms-content table td { padding: .6rem .85rem; border: 1px solid #dee2e6; }
.cms-content table th { background: #f8f9fa; font-weight: 600; }
.cms-content blockquote {
    border-left: 4px solid var(--cms-primary);
    padding: .75rem 1.25rem;
    background: #f8f9fa;
    margin: 1.5rem 0;
    border-radius: 0 var(--cms-radius) var(--cms-radius) 0;
}

/* ── Galerie ──────────────────────────────────────────────────────────────── */
.gallery-thumb {
    display: block;
    overflow: hidden;
    border-radius: var(--cms-radius);
    cursor: pointer;
    position: relative;
}

.gallery-img {
    aspect-ratio: 1;
    object-fit: cover;
    width: 100%;
    transition: transform 0.35s ease;
}

.gallery-thumb:hover .gallery-img { transform: scale(1.06); }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13,23,50,.55);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    opacity: 0;
    transition: opacity var(--cms-transition);
    border-radius: var(--cms-radius);
}
.gallery-thumb:hover .gallery-overlay { opacity: 1; }

.gallery-caption {
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    padding: .2rem .6rem;
    background: rgba(0,0,0,.5);
    border-radius: 20px;
    max-width: 90%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Gallery filter buttons */
.gallery-filter .btn { transition: all var(--cms-transition); }

/* ── Kontakt ──────────────────────────────────────────────────────────────── */
.contact-icon-wrap {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background-color: var(--cms-primary) !important;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
    background-color: var(--cms-footer-bg);
    margin-top: auto;
}

.footer-top { background-color: var(--cms-footer-bg); }
.footer-bottom { background-color: rgba(0,0,0,.2); }

.footer-link {
    color: rgba(255,255,255,.55);
    text-decoration: none;
    font-size: .9rem;
    display: inline-block;
    padding: .1rem 0;
    transition: color var(--cms-transition);
}
.footer-link:hover { color: #fff; }

.social-icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.7);
    font-size: 1rem;
    text-decoration: none;
    transition: background var(--cms-transition), color var(--cms-transition);
}
.social-icon:hover {
    background: var(--cms-primary);
    color: #fff;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
    border-radius: var(--cms-radius);
    font-weight: 500;
    transition: all var(--cms-transition);
}
.btn-primary {
    background-color: var(--cms-primary);
    border-color: var(--cms-primary);
}
.btn-primary:hover {
    filter: brightness(1.1);
}

/* ── Karten ───────────────────────────────────────────────────────────────── */
.card {
    border-radius: var(--cms-radius) !important;
    transition: box-shadow var(--cms-transition);
}

/* ── Utility ──────────────────────────────────────────────────────────────── */
.opacity-90 { opacity: .9; }
.ls-1 { letter-spacing: .06em; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 767.98px) {
    .hero-section { min-height: 380px; }
    .hero-section .display-4 { font-size: 2rem; }
    .page-header { padding-top: 2rem !important; padding-bottom: 2rem !important; }
    .page-header h1 { font-size: 1.75rem; }
}
