/* ==========================================================================
   1. Globale Layout- und Interaktionselemente
   ========================================================================== */
body {
    background-color: #f4f6f9;
    color: #2c3e50;
    margin: 0;
    padding: 0;
}

.tab-content,
.section,
.metric-tab {
    display: none;
}

.tab-content.active,
.section.active,
.metric-tab.active {
    display: block;
}

textarea.auto-expand {
    resize: none;
    overflow-y: hidden;
    min-height: 42px;
    line-height: 1.4;
}

.gantt-bar {
    transition: all 0.3s ease;
}

/* ==========================================================================
   2. Tabellen & Karten
   ========================================================================== */
.card {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
}

.card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
}

.table-container {
    max-height: 260px;
    overflow-y: auto;
    margin-top: 10px;
    border: 1px solid #e5e7eb;
}

.chart-container {
    position: relative;
    height: 260px;
    width: 100%;
}

/* ==========================================================================
   3. Druckansicht (Protokolle & Berichte)
   ========================================================================== */
.print-content {
    display: none;
}

@media print {
    .no-print {
        display: none !important;
    }

    body {
        background-color: #ffffff !important;
        color: #000000 !important;
        padding: 0 !important;
        font-size: 11pt;
    }

    .max-w-4xl,
    .max-w-7xl,
    .container {
        max-width: 100% !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
    }

    input, textarea, select {
        border: none !important;
        background: transparent !important;
        appearance: none;
    }

    .kapitel-item {
        break-inside: avoid;
        page-break-inside: avoid;
        margin-bottom: 15px !important;
        border: 1px solid #000000 !important;
        padding: 12px !important;
    }

    .print-content {
        display: block !important;
        white-space: pre-wrap !important;
        word-break: break-word !important;
        font-family: inherit !important;
        font-size: 10pt !important;
        color: #000000 !important;
    }

    textarea.auto-expand {
        display: none !important;
    }

    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}