/* ============================== */
/*  Easy4Time App Theme           */
/*  /var/www/zeiterfassung/...    */
/* ============================== */

/* ---------- Design-Variablen ---------- */
:root {
    --bg-body: #0b1120;
    --bg-elevated: #020617;
    --bg-card: #020617;
    --bg-card-alt: #020816;

    --accent: #38bdf8;
    --accent-soft: rgba(56, 189, 248, 0.12);
    --accent-strong: #0ea5e9;

    --success: #22c55e;
    --success-soft: rgba(34, 197, 94, 0.18);
    --danger: #ef4444;
    --danger-soft: rgba(239, 68, 68, 0.15);

    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
    --text-strong: #f9fafb;

    --border-subtle: #1e293b;
    --shadow-soft: 0 22px 60px rgba(15, 23, 42, 0.8);

    --radius-lg: 22px;
    --radius-md: 14px;
    --radius-sm: 8px;
    --radius-pill: 999px;
}

/* ============================== */
/*  RESET / BASE                  */
/* ============================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
                 "SF Pro Text", sans-serif;
    background:
        radial-gradient(circle at top, #0f172a 0, #020617 45%, #020617 100%);
    color: var(--text-main);
    font-size: 16px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ============================== */
/*  BRAND / LOGO (zentral)       */
/* ============================== */

.brand-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.4rem;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: radial-gradient(circle at 20% 0, #38bdf8, #0369a1 40%, #0f172a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #f9fafb;
    box-shadow:
        0 0 0 1px rgba(148, 163, 184, 0.4),
        0 10px 30px rgba(15, 23, 42, 0.9);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-align: left;
}

.brand-name {
    font-weight: 650;
    letter-spacing: 0.01em;
    color: var(--text-strong);
    font-size: 0.9rem;
}

.brand-tagline {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Fallback für altes <img class="logo"> */
.logo {
    max-width: 140px;
    margin: 4px auto 12px;
}

/* ============================== */
/*  LAYOUT / WRAPPER              */
/* ============================== */

.center-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
}

.login-box {
    background: radial-gradient(circle at -10% 0,
                 rgba(56, 189, 248, 0.16), transparent 55%),
                radial-gradient(circle at 110% 40%,
                 rgba(168, 85, 247, 0.18), transparent 55%),
                rgba(15, 23, 42, 0.96);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148, 163, 184, 0.45);
    padding: 22px 26px 26px;
    text-align: center;
    max-width: 980px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.login-box-content {
    background: transparent;
    width: 100%;
    margin-top: 14px;
}

.login-box h1 {
    font-size: 1.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-strong);
}

.login-box p {
    font-size: 0.95rem;
    color: var(--text-main);
}

/* ============================== */
/*  INTRO / STARTSEITE            */
/* ============================== */

.intro-box {
    max-width: 900px;
}

.intro-brand {
    margin-bottom: 12px;
    justify-content: flex-start;
}

.intro-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.intro-title {
    font-size: 2.0rem;
    margin: 12px 0 8px;
    color: var(--text-strong);
}

.intro-sub {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 16px;
}

.intro-text {
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--text-main);
    margin-bottom: 22px;
}

/* Feature-Liste im Grid */
.feature-list {
    list-style: none;
    margin: 24px 0 32px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 6px 24px;
    text-align: left;
    font-size: 0.95rem;
    color: var(--text-main);
}

.feature-list li {
    position: relative;
    padding-left: 1.1rem;
}

.feature-list li::before {
    content: "•";
    position: absolute;
    left: 0.1rem;
    top: 0;
    color: var(--accent);
}

/* ============================== */
/*  AUTH / LOGIN / REGISTER       */
/* ============================== */

.auth-main {
    max-width: 480px;
}

.auth-text {
    margin-top: 10px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 8px;
}

.auth-back {
    margin-top: 18px;
}

/* Fehlermeldung im Dark-Theme */
.alert-error {
    margin-top: 8px;
    margin-bottom: 12px;
    padding: 0.75rem 1.1rem;
    border-radius: 10px;
    border: 1px solid rgba(248, 113, 113, 0.75);
    background-color: rgba(127, 29, 29, 0.85);
    color: #fee2e2;
    text-align: center;
    font-size: 0.9rem;
}

/* ============================== */
/*  FORM FIELDS / LABELS          */
/* ============================== */

input[type="text"],
input[type="password"],
input[type="time"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    margin-top: 6px;
    margin-bottom: 10px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: rgba(15, 23, 42, 0.98);
    color: var(--text-main);
    font-size: 0.95rem;
    font-family: inherit;
}

input::placeholder,
textarea::placeholder {
    color: #6b7280;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.45);
}

label {
    display: block;
    margin-top: 8px;
    margin-bottom: 4px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-main);
}

/* "form-control" Klassik + Dark-Anpassung */
.form-control,
select,
input[type="text"],
input[type="password"],
input[type="time"],
input[type="date"],
textarea {
    background: #0f172a;
    border: 1px solid #334155;
    color: #e2e8f0;
}

.form-control:focus,
select:focus,
input:focus,
textarea:focus {
    border-color: #3b82f6;
    outline: none;
}

/* ============================== */
/*  BUTTONS                       */
/* ============================== */

.btn-action,
.btn-secondary-action,
.btn-neutral-action,
.btn-destructive-action {
    padding: 12px 22px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-pill);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    text-decoration: none;
    transition: all 0.16s ease-out;
    gap: 6px;
}

.btn-wide {
    width: 100%;
}

/* Grundfarben */
.btn-action {
    background: #22c55e;
    border: 1px solid #16a34a;
    color: #fff;
}
.btn-action:hover {
    background: #2dd46f;
}

.btn-secondary-action {
    background: #0ea5e9;
    border: 1px solid #0284c7;
    color: #fff;
}
.btn-secondary-action:hover {
    background: #28b5f7;
}

.btn-neutral-action {
    background: #1e293b;
    border: 1px solid #334155;
    color: #e2e8f0;
}
.btn-neutral-action:hover {
    background: #283548;
}

.btn-destructive-action {
    background: #dc2626;
    border: 1px solid #b91c1c;
    color: #fff;
}
.btn-destructive-action:hover {
    background: #ef4444;
}

/* Icon-Buttons (Tabellen) */
.btn-icon {
  display:inline-block;
  padding:4px 10px;
  margin:0 2px;
  font-size:13px;
  line-height:1.2;
  border-radius:6px;
  border:1px solid rgba(148,163,184,0.7);
  background: rgba(15, 23, 42, 0.95);
  color: var(--text-main);
  cursor:pointer;
}
.btn-icon.ok  { border-color:#22c55e; color:#bbf7d0; }
.btn-icon.ok:hover  { background:var(--success-soft); }
.btn-icon.add { border-color:var(--accent); color:#bae6fd; }
.btn-icon.add:hover { background:var(--accent-soft); }
.btn-icon.del { border-color:#ef4444; color:#fecaca; }
.btn-icon.del:hover { background:var(--danger-soft); }

/* größere Buttons (z.B. Checkin/Checkout) */
.btn-big {
    font-size: 1.05rem;
    padding: 12px 18px;
}

/* Button-Gruppen */
.btn-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
}

/* ============================== */
/*  TEXT / UTILS                  */
/* ============================== */

.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mt-30 { margin-top: 30px; }

/* ============================== */
/*  INFOBOXEN / MELDUNGEN         */
/* ============================== */

.alert-info {
    color: #bfdbfe;
    margin-top: 1rem;
    padding: 0.75rem 1.25rem;
    border: 1px solid rgba(59, 130, 246, 0.7);
    border-radius: 10px;
    background-color: rgba(30, 64, 175, 0.7);
    text-align: center;
    font-size: 0.9rem;
}

/* ============================== */
/*  USER-DATEN-TABELLE            */
/* ============================== */

.user-table {
    margin: 0 auto 30px auto;
    width: 100%;
    max-width: 1000px;
    border-collapse: collapse;
    font-size: 0.9rem;
    color: var(--text-main);
}
.user-table td {
    padding: 8px 12px;
    vertical-align: top;
}
.user-table td.label {
    font-weight: 600;
    width: 160px;
    white-space: nowrap;
    color: var(--text-muted);
}

/* ============================== */
/*  ZEITEN-TABELLE                */
/* ============================== */

.table-wrapper {
    overflow-x: auto;
    width: 100%;
    margin-top: 14px;
}

.table-easytime {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #1f2937;
    font-size: 0.85rem;
    table-layout: fixed;
    word-wrap: break-word;
    color: var(--text-main);
    background: rgba(15, 23, 42, 0.95);
}

.table-easytime th,
.table-easytime td {
    border: 1px solid #1f2937;
    padding: 4px 6px;
    text-align: left;
    line-height: 1.3;
}

.table-easytime th {
    background-color: #020617;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Zeilenfarben */
.table-easytime tbody tr:nth-child(even) {
    background-color: rgba(15, 23, 42, 0.85);
}
.table-easytime tbody tr.samstag {
    background-color: rgba(22, 101, 52, 0.55);
}
.table-easytime tbody tr.sonntag {
    background-color: rgba(30, 64, 175, 0.55);
}
.table-easytime tbody tr.feiertag {
    background-color: rgba(185, 28, 28, 0.55);
}

/* ============================== */
/*  LEGENDE                       */
/* ============================== */

.legende-box {
    text-align: center;
    margin-top: 18px;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 8px;
}
.legende-label {
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
    color: var(--text-main);
}
.legende-tag {
    padding: 6px 12px;
    margin-right: 5px;
    border-radius: 999px;
    color: #0f172a;
    font-size: 0.8rem;
}
.legende-tag.samstag  { background-color: #4ade80; }
.legende-tag.sonntag  { background-color: #60a5fa; }
.legende-tag.feiertag { background-color: #f97373; }

/* ============================== */
/*  FOOTER  (GLOBAL, CLEAN)       */
/* ============================== */

.footer-easytime {
    margin-top: 40px;
    padding: 24px 10px 18px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, #38bdf8, #0ea5e9, #0f172a);
    box-shadow: 0 4px 14px rgba(56,189,248,0.4);
}

.footer-brand-text {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

.footer-links {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
}

.footer-links a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.15s ease-out;
}

.footer-links a:hover {
    color: var(--accent-strong);
    text-decoration: underline;
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.8;
}

/* Light Theme Anpassungen */
body.theme-light .footer-logo {
    color: #fff;
    background: linear-gradient(135deg, #0ea5e9, #0284c7, #145b8a);
}

/* ============================== */
/*  DASHBOARD-Layout              */
/* ============================== */

.dashboard-page { }

.dashboard-main {
    text-align: left;
}

.dashboard-header {
    margin-bottom: 18px;
}
.dashboard-header h1 {
    margin-bottom: 4px;
}
.dashboard-header-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* KPI-Karten im Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    width: 100%;
    margin: 10px auto 24px;
}

.dashboard-card {
    background: var(--bg-card-alt);
    border-radius: 18px;
    padding: 18px 20px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
    color: var(--text-main);
    text-align: left;
}

.dashboard-card-title {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.dashboard-kpi-value {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.dashboard-kpi-value.green {
    color: var(--success);
}
.dashboard-kpi-value.red {
    color: var(--danger);
}

.dashboard-card-text {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.dashboard-pdf-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}

/* Aktionen unterhalb */
.dashboard-actions {
    margin-top: 10px;
}

/* ============================== */
/*  GENERISCHE CARD (E4T)         */
/* ============================== */

.card-e4t {
    background: #020816;
    border-radius: 18px;
    padding: 18px 20px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 12px 32px rgba(0,0,0,0.55);
    color: #e5e7eb;
    text-align: left;
}

.card-e4t h3 {
    margin-bottom: 6px;
    font-size: 1rem;
}

/* ============================== */
/*  CHECKIN-SEITE                 */
/* ============================== */

.checkin-main {
    max-width: 900px;
}

.checkin-subline {
    margin-bottom: 18px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.checkin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 16px;
}

.checkin-today-meta p {
    margin: 2px 0;
}

.checkin-form {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-top: 10px;
}

.checkin-mode {
    min-width: 220px;
}

.checkin-muted {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.checkin-message {
    margin-top: 12px;
}

.checkin-form-card,
.checkin-table-card {
    margin-top: 16px;
}

.checkin-back {
    margin-top: 18px;
    text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
    .checkin-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================== */
/*  THEME-TOGGLE BUTTON           */
/* ============================== */

.theme-toggle {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 200;
    padding: 4px 10px;
    font-size: 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.7);
    background: rgba(15, 23, 42, 0.95);
    color: var(--text-main);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.theme-toggle span {
    font-size: 0.9rem;
}

/* ============================== */
/*  RESPONSIVE                    */
/* ============================== */

@media (max-width: 900px) {
    .center-wrapper {
        padding: 16px;
    }
    .login-box {
        padding: 18px 18px 22px;
        border-radius: 18px;
    }
    .logo {
        max-width: 130px;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 15px;
    }
    .center-wrapper {
        padding: 12px;
    }
    .login-box {
        padding: 16px 14px 20px;
    }
    .theme-toggle {
        top: 8px;
        right: 8px;
    }
}

/* ============================== */
/*  LIGHT THEME                   */
/* ============================== */

body.theme-light {
    --bg-body: #f3f4f6;
    --bg-elevated: #ffffff;
    --bg-card: #ffffff;
    --bg-card-alt: #f9fafb;

    --text-main: #111827;
    --text-muted: #6b7280;
    --text-strong: #0f172a;

    --border-subtle: #e5e7eb;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.15);
}

body.theme-light {
    background: radial-gradient(circle, #e5e7eb 0%, #f9fafb 40%, #e5e7eb 100%);
    color: var(--text-main);
}

body.theme-light .login-box {
    background: #ffffff;
    border-color: #e5e7eb;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
}

body.theme-light .card-e4t,
body.theme-light .dashboard-card {
    background: #ffffff;
    border-color: #e5e7eb;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    color: #0f172a;
}

body.theme-light .table-easytime {
    background: #ffffff;
    color: #111827;
    border-color: #e5e7eb;
}
body.theme-light .table-easytime th {
    background: #f3f4f6;
    color: #374151;
    border-color: #e5e7eb;
}
body.theme-light .table-easytime td {
    background: #ffffff;
    color: #111827;
    border-color: #e5e7eb;
}
body.theme-light .table-easytime tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

body.theme-light .footer-easytime {
    color: #6b7280;
}

body.theme-light .theme-toggle {
    background: #ffffff;
    color: #111827;
}
.app-brand {
    width: 100%;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 8px;
}
/* ============================== */
/*  ADMIN SPEZIFISCHE ERGÄNZUNGEN */
/* ============================== */

/* Admin-Box Anpassung */
.admin-box {
    text-align: left; /* Überschreibt center in .login-box */
}

/* Hilfsklasse für kleine, gedämpfte Texte */
.small-muted {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

/* Formular-Wrapper */
.et-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 2-Spalten-Layout für das Formular */
.et-grid-2 {
    display: grid;
    grid-template-columns: 1fr; /* Default: 1 Spalte für mobile Ansicht */
    gap: 24px;
    margin-bottom: 10px;
}
@media (min-width: 768px) {
    .et-grid-2 {
        grid-template-columns: 1fr 1fr; /* 2 Spalten ab 768px */
    }
}

/* Card/Section für Formulargruppen, basiert auf .card-e4t */
.et-card {
    /* Kopiert die Basis-Card-Eigenschaften */
    background: var(--bg-card-alt);
    border-radius: 18px;
    padding: 18px 20px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
    color: var(--text-main);
    text-align: left;
}
.et-card h3 {
    font-size: 1.1rem;
    color: var(--text-strong);
    margin-bottom: 12px;
}

/* Checkbox-Stil-Anpassung */
.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
}
.form-check-label {
    margin-top: 0;
    margin-bottom: 0;
}
.form-check-input {
    width: auto !important;
    height: auto !important;
    margin: 0;
    padding: 0;
    border-radius: var(--radius-sm);
    appearance: none; /* Deaktiviert den Standard-Browser-Stil */
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 18px !important;
    height: 18px !important;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.7);
    cursor: pointer;
    position: relative;
    top: 2px;
    transition: all 0.15s;
}
.form-check-input:checked {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
}
/* Visualisierung des Häkchens */
.form-check-input:checked::before {
    content: "✓";
    display: block;
    color: white;
    font-size: 14px;
    line-height: 1;
    text-align: center;
}


/* Aktions-Button-Gruppe */
.et-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}
@media (min-width: 640px) {
    .et-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .et-actions .btn-wide:nth-child(1), /* Speichern */
    .et-actions .btn-wide:nth-child(2) { /* Zurück */
        grid-column: span 1;
    }
    /* Dokumente und Passwort zurücksetzen über volle Breite */
    .et-actions .btn-wide:nth-child(3),
    .et-actions .btn-wide:nth-child(4) {
        grid-column: 1 / -1;
    }
}
@media (min-width: 1000px) {
    .et-actions {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
    .et-actions .btn-wide:nth-child(3),
    .et-actions .btn-wide:nth-child(4) {
        grid-column: span 1;
    }
}
/* ============================== */
/* Einheitliche Input-Feldgrößen */
/* ============================== */

input.form-control,
select.form-control,
textarea.form-control {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;

    height: 44px;
    padding: 10px 14px;

    background: var(--bg-input);
    color: var(--text-main);

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;

    font-size: 0.95rem;
    box-sizing: border-box;
}

/* Damit Date-Picker & Number-Inputs nicht kleiner werden */
input[type="date"].form-control,
input[type="number"].form-control,
input[type="time"].form-control {
    padding: 8px 14px;
    height: 44px;
}

/* Selects auch sauber darstellen */
select.form-control {
    appearance: none;
    background-position: right 12px center;
    background-repeat: no-repeat;
}

/* ============================== */
/* Einheitliche Input-Feldgrößen */
/* ============================== */

input.form-control,
select.form-control {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;

    height: 44px;
    padding: 10px 14px;

    background: var(--bg-input);
    color: var(--text-main);

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;

    font-size: 0.95rem;
    box-sizing: border-box;
}

/* Textareas: dynamisch höher, mehrere Zeilen sichtbar */
textarea.form-control {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;

    height: auto !important;
    min-height: 150px;       /* hier siehst du 6–7 Zeilen */
    max-height: 350px;       /* danach kommt Scrollbar */
    padding: 10px 14px;

    background: var(--bg-input);
    color: var(--text-main);

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;

    font-size: 0.95rem;
    box-sizing: border-box;
    line-height: 1.4;
    resize: vertical;        /* User darf höher/kleiner ziehen */
}
