/* =========================================================
   BASIS
========================================================= */

body {
    margin: 0;
    padding: 0; /* ❗ kein globales Padding */
    font-family: -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    background-color: #f8fafc;
    color: #1f2937; /* Tailwind gray-800 */
}


/* =========================================================
   FIXED HEADER OFFSET
========================================================= */

/*
   Höhe von:
   - oberem Header (~88px)
   - Navigation (~72px)

   Gesamt ≈ 160px
*/

:root {
    --header-offset: 160px;
}


/* =========================================================
   HERO / HEADER
========================================================= */

/*
   Wichtig:
   - kein margin-top
   - Padding gehört zur Höhe
   - verhindert Überlappung mit fixed Header
*/

.hero-height {
    min-height: calc(100vh - var(--header-offset));
    padding-top: var(--header-offset);
    box-sizing: border-box;
}


/* =========================================================
   SCROLL OFFSET FÜR ANKER
========================================================= */

/* verhindert, dass Sections unter dem Header verschwinden */

section {
    scroll-margin-top: var(--header-offset);
}


/* =========================================================
   TYPOGRAFIE
========================================================= */

h1 {
    font-size: 1.25rem;
    margin-top: 0;
}

p {
    font-size: 15px;
    margin-top: 5px;
    margin-bottom: 10px;
    color: inherit;

    /* 🔥 DeepSite / HuggingFace Live-Preview Fix */
    display: block !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
}


/* =========================================================
   KARTEN / CONTAINER
========================================================= */

.card {
    max-width: 620px;
    margin: 0 auto;
    padding: 16px;
    border: 1px solid #d1d5db;
    border-radius: 16px;
    background-color: #ffffff;
}

.card p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   SERVICE DETAILS (Accordion)
========================================================= */

.toggle-details {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: opacity 0.3s ease;
}

.toggle-details:hover {
    opacity: 0.8;
}

.service-details {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.3s ease;
}

.service-details.active,
.service-details.open {
    max-height: 2000px; /* sicher für lange Texte */
    opacity: 1;
    margin-top: 1rem;
}


/* =========================================================
   FARB-HILFSKLASSEN
========================================================= */

.bg-secondary {
    background-color: #2d2d2d !important;
}