﻿/* =========================================================
   HERO – CDL Section (Fachübersichten)
   ========================================================= */

.hero-cdl {
    position: relative;
    margin: 3rem auto;
    padding: clamp(2.5rem, 5vw, 4.5rem) 2rem;
    border-radius: 24px;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(18px) saturate(140%);
    box-shadow: inset 0 1px rgba(255,255,255,0.6), 0 12px 36px rgba(0,0,0,0.06), 0 0 0 1px rgba(255,255,255,0.35);
    overflow: hidden;
}

.hero-cdl--section {
    background: linear-gradient( 180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.82) );
}

.hero-title {
    font-size: clamp(2.2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--text-strong);
    text-align: center;
}

.hero-divider {
    width: 160px;
    height: 2px;
    margin: 1.8rem auto 1.4rem;
    border: none;
    background: linear-gradient( 90deg, transparent, var(--primary), transparent );
    opacity: 0.55;
}

.hero-sub {
    max-width: 60ch;
    margin: 0 auto;
    font-weight: 500;
    color: color-mix(in srgb, var(--text) 75%, var(--primary) 25%);
}

/* =========================================================
   Glassy Hero (legacy DG)
   ========================================================= */

.glassy-hero {
    position: relative;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(18px) saturate(140%);
    border-radius: 28px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08), inset 0 1px rgba(255,255,255,0.6);
    overflow: hidden;
}

/* DG-spezifischer Hero */
.dg-hero {
    max-width: 1200px;
    margin: 4rem auto 0;
    padding: 4rem 2rem;
}


.hero-title {
    font-size: clamp(2.2rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--text-strong);
}

.hero-sub {
    max-width: 65ch; /* statt inline style */
    margin: 0 auto;
    font-weight: 500;
    color: color-mix(in srgb, var(--text) 75%, var(--primary) 25%);
}

/* =========================================================
   Text Gradient – CDL Utility
   ========================================================= */

.text-gradient {
    background: linear-gradient( 120deg, var(--primary), var(--secondary, var(--primary)) );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
