/* ============================================================
   MAIN.CSS — findedeinhandwerker.de
   CSS Custom Properties + Font-Face + Basis-Typografie
   ============================================================ */


/* ---- FONTS ---- */

/* Kurdis — lokal, lizenziert, liegt unter assets/fonts/ */
@font-face {
    font-family: 'Kurdis';
    src: url('../fonts/Kurdis-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Kurdis';
    src: url('../fonts/Kurdis-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Kurdis';
    src: url('../fonts/Kurdis-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* Inter — lokal eingebunden (DSGVO) */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}


/* ---- CSS CUSTOM PROPERTIES ---- */

:root {
    /* Farben */
    --primary:              #2E382E;    /* Black Olive — Header, Nav, Headlines */
    --primary-light:        #3D4B3D;    /* Hover-States, aktive Nav-Elemente */
    --primary-dark:         #1F261F;    /* Footer, tiefe Hintergründe */
    --accent:               #50C9CE;    /* Teal — Logo, Links, Badges, Karten */
    --accent-light:         #7DD8DC;    /* Teal hell — Hover, Background-Tints */
    --accent-dark:          #3BA8AD;    /* Teal dunkel — aktive States */
    --cta-warm:             #E8913A;    /* Warm-Orange — primäre Buttons/CTAs */
    --cta-warm-hover:       #D07A2B;    /* CTA Hover */
    --bg:                   #FFFFFF;    /* Haupt-Hintergrund */
    --bg-alt:               #F5F7F8;    /* Alternativ-Hintergrund (Sektionen) */
    --text:                 #2E382E;    /* Fließtext (= Primary) */
    --text-light:           #6B7B80;    /* Subtitles, Meta-Infos */
    --border:               #E8ECED;    /* Linien, Trennelemente */
    --success:              #16A34A;    /* Verifiziert-Badge, Online-Status */
    --warning:              #EA580C;    /* Hinweise, Warnungen */
    --error:                #DC2626;    /* Validierungsfehler */

    /* Schatten */
    --shadow-card:          0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-card-hover:    0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-nav:           0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-modal:         0 20px 60px rgba(0, 0, 0, 0.15);

    /* Border-Radius */
    --radius:               8px;
    --radius-lg:            12px;
    --radius-xl:            20px;
    --radius-pill:          999px;

    /* Abstände */
    --space-xs:             4px;
    --space-sm:             8px;
    --space-md:             16px;
    --space-lg:             24px;
    --space-xl:             40px;
    --space-2xl:            64px;
    --space-3xl:            96px;

    /* Container */
    --container-max:        1200px;
    --container-padding:    24px;

    /* Übergänge */
    --transition:           0.2s ease;
    --transition-slow:      0.35s ease;

    /* Navigation */
    --nav-height:           72px;

    /* Z-Index-Schichten */
    --z-nav:                100;
    --z-dropdown:           200;
    --z-modal:              300;
    --z-toast:              400;
}


/* ---- TYPOGRAFIE ---- */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Kurdis', 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    line-height: 1.2;
    color: var(--primary);
}

h1 { font-size: clamp(28px, 5vw, 56px); }
h2 { font-size: clamp(22px, 3vw, 36px); }
h3 { font-size: clamp(18px, 2.5vw, 24px); }
h4 { font-size: clamp(16px, 2vw, 20px); font-weight: 700; }
h5 { font-size: 16px; font-weight: 700; }
h6 { font-size: 14px; font-weight: 600; }

p {
    line-height: 1.65;
    color: var(--text);
}

p + p {
    margin-top: var(--space-md);
}

strong, b {
    font-weight: 600;
}

small {
    font-size: 14px;
    color: var(--text-light);
}

/* Subtitles / Lead-Text */
.fdh-lead {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.6;
}

.fdh-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-light);
}


/* ---- STERNE-BEWERTUNG ---- */

.fdh-sterne {
    display: inline-flex;
    gap: 2px;
    font-size: 16px;
}

.fdh-stern-voll { color: #F59E0B; }
.fdh-stern-leer { color: var(--border); }

.fdh-bewertungen-anzahl {
    font-size: 14px;
    color: var(--text-light);
    margin-left: 4px;
}


/* ---- PROFIL-BADGES ---- */

.fdh-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.stufe-basis   { background: var(--bg-alt); color: var(--text-light); }
.stufe-starter { background: rgba(80, 201, 206, 0.12); color: var(--accent-dark); }
.stufe-premium { background: rgba(232, 145, 58, 0.12); color: #B86E20; }
.stufe-top     { background: var(--primary); color: white; }


/* ---- INNUNGS-SIEGEL ---- */

.fdh-innung-siegel {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 13px;
    font-weight: 600;
    color: var(--success);
}

.fdh-innung-siegel svg {
    width: 16px;
    height: 16px;
}


/* ---- VERFÜGBARKEITS-AMPEL ---- */

.fdh-verfuegbar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
}

.fdh-verfuegbar::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.fdh-verfuegbar.verfuegbar { color: var(--success); }
.fdh-verfuegbar.verfuegbar::before { background: var(--success); }

.fdh-verfuegbar.begrenzt { color: var(--warning); }
.fdh-verfuegbar.begrenzt::before { background: var(--warning); }

.fdh-verfuegbar.belegt { color: var(--error); }
.fdh-verfuegbar.belegt::before { background: var(--error); }
