/* =============================
   Farbsystem & Grundlayout
   ============================= */
:root {
    --clr-primary: #1e88e5;
    --clr-accent: #ff5252;
    --clr-bg: #f5f7fa;
    --clr-fg: #333;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--clr-bg);
    color: var(--clr-fg);
}

/* =============================
   Navbar & Navigation
   ============================= */

.navbar-modern {
    background: rgba(248,249,250,0.5);
    backdrop-filter: blur(8px);
    transition: background .3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.navbar-modern:hover {
    background: rgba(248,249,250,1);
}

/* Nav-Links */
.nav-link {
    position: relative;
    color: var(--clr-fg) !important;
    transition: transform .2s;
}

.nav-link:hover {
    transform: scale(1.05);
}

/* Underline für einfache Nav-Links */
.nav-link:not(.dropdown-toggle)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--clr-accent);
    bottom: 4px;
    left: 50%;
    transition: .3s;
}

.nav-link:not(.dropdown-toggle):hover::after,
.nav-link:not(.dropdown-toggle).active::after {
    width: 100%;
    left: 0;
}

/* Underline für aktiven Dropdown-Toggle via zusätzlichem Span */
.nav-link.dropdown-toggle {
    position: relative;
}

.nav-link .dropdown-underline {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--clr-accent);
    bottom: 4px;
    border-radius: 2px;
    z-index: 2;
}

.nav-link.dropdown-toggle .dropdown-underline.show {
    display: block;
    animation: underline-in 0.3s;
}

@keyframes underline-in {
    from { width: 0; left: 50%; }
    to { width: 100%; left: 0; }
}

/* Caret wie Bootstrap, aber farblich anpassbar */
.navbar .dropdown-toggle::after {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: .255em;
    vertical-align: .255em;
    content: "";
    border-top: .3em solid;
    border-right: .3em solid transparent;
    border-bottom: 0;
    border-left: .3em solid transparent;
    border-top-color: #666;
    transition: border-top-color 0.2s;
}

/* Caret bei aktivem/angezeigtem Dropdown */
.navbar .nav-item.active > .dropdown-toggle::after,
.navbar .nav-item.show > .dropdown-toggle::after,
.navbar .dropdown.show > .dropdown-toggle::after {
    border-top-color: #e53935;
}

/* Dropdown-Menü */
.dropdown-menu {
    background: rgba(255,255,255,0.95);
    border: 1px solid var(--clr-accent);
}


/* =============================
   Hero & Sections
   ============================= */

.hero-section {
    position: relative;
    height: 35vh;
    max-height: 400px;
    overflow: hidden;
    background-image: url('/media/nhdpljdl/11.jpg?cc=0.11382070579475047,0.2785146705857256,0.12028295614711597,0.2811021960882808&amp;width=1920&amp;height=480&amp;v=1dbdfe02961b860');
    background-size: cover;
    background-position: center;
}

.section {
    padding: 4rem 0;
}

.section-light {
    background: #fff;
}

.section-dark {
    background: #e9ecef;
    color: var(--clr-fg);
}

/* =============================
   Cards & Bilder
   ============================= */

.cards-modern .card {
    border: none;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: transform .3s, box-shadow .3s;
}

.cards-modern .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.2);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    filter: grayscale(30%);
    transition: transform .3s;
}

.card-img-top:hover {
    transform: scale(1.05);
    filter: none;
}

/* =============================
   Footer
   ============================= */

footer {
    background: #6c757d;
    color: #f8f9fa;
    padding: 2rem 0;
}

footer a {
    color: #f8f9fa;
    text-decoration: none;
    transition: color .2s;
}

footer a:hover {
    color: var(--clr-accent);
}

.footer-links a {
    margin: 0 0.5rem;
    font-weight: 500;
}

.social-icons a {
    margin: 0 0.5rem;
    font-size: 1.25rem;
    color: #f8f9fa;
    transition: color .2s;
}

.social-icons a:hover {
    color: #ddd;
}

/* =============================
   Debug & Blöcke (Content)
   ============================= */

.debug-outline {
    outline: 1px dashed #cccccc;
    padding: 1rem;
    margin-bottom: 1rem;
    position: relative;
}

.debug-label {
    font-family: monospace;
    border-left: 4px solid #ff8800;
    font-size: 0.9em;
    font-style: italic;
    opacity: 0.7;
    margin-bottom: 0.3em;
}

.block {
    display: block;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Sprechende Block-Klassen für gezielte Gestaltung */
.block-umbBlockGridDemoHeadlineBlock {}
.block-umbBlockGridDemoRichTextBlock {}
.block-markdownText {}
.block-umbBlockGridDemoImageBlock {}
.block-vtlTwoColumnLayout {}
.block-imageGallery {}
.block-contentCardList {}
.block-children {}
.block-tabs {}

/* =============================
   Tabs-Komponenten
   ============================= */

.vtl-tabs-frame {
    border: 1px solid #e0e0e0;
    border-radius: 1.2rem;
    box-shadow: 0 2px 10px 0 rgba(40, 50, 70, 0.07);
    padding: 1.5rem 1.5rem 1.2rem 1.5rem;
    background: #fff;
    margin-bottom: 2rem;
}

.vtl-tabs-frame .nav-tabs {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 0.8rem 0.8rem 0 0;
    overflow: hidden;
    background: transparent;
}

.vtl-tabs-frame .nav-link {
    border: none;
    color: #42526e;
    font-weight: 500;
    transition: background 0.1s;
}

.vtl-tabs-frame .nav-link.active,
.vtl-tabs-frame .nav-link:focus {
    background: #f2f6fa;
    color: #163255;
    border: none;
    box-shadow: none;
}

/* Abstand zwischen Tabs & Inhalt */
.vtl-tabs-frame .tab-content {
    margin-top: 1.2rem;
    transition: height 0.33s cubic-bezier(0.4,0,0.2,1);
    overflow: hidden;
    position: relative;
}
