/* active minds Kundenportal — Stylesheet */

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

:root {
    --am-blue:   #99C706;
    --am-light:  #f0f6e4;
    --am-border: #cce080;
    --am-green:  #2e7d32;
    --am-red:    #c62828;
    --am-orange: #e65100;
    --radius: 6px;
    --shadow: 0 2px 8px rgba(80,120,0,0.12);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: #1a1a1a;
    background: var(--am-light);
    min-height: 100vh;
}

/* ── Header ── */
.portal-header {
    background: #2a2a2a;
    color: #fff;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.portal-header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.portal-header .logo img {
    height: 40px;
    width: 40px;
    object-fit: contain;
}
.portal-header .logo-text {
    font-weight: 700;
    font-size: 15px;
    color: #fff;
    letter-spacing: 0.01em;
    line-height: 1.2;
}
.portal-header .logo-text span {
    display: block;
    font-weight: 300;
    font-size: 12px;
    color: rgba(255,255,255,0.65);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.portal-header nav a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    margin-left: 20px;
    font-size: 14px;
    transition: color 0.15s;
}
.portal-header nav a:hover { color: var(--am-blue); }
.portal-header nav a.active { color: var(--am-blue); font-weight: 600; }

/* ── Layout ── */
.portal-wrap {
    max-width: 900px;
    margin: 32px auto;
    padding: 0 16px;
}

/* ── Card ── */
.card {
    background: #fff;
    border: 1px solid var(--am-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px 32px;
    margin-bottom: 24px;
}
.card h2 {
    color: #2a2a2a;
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--am-border);
}

/* ── Login-Karte (zentriert) ── */
.card-login {
    max-width: 420px;
    margin: 80px auto 0;
}
.card-login .brand {
    text-align: center;
    margin-bottom: 28px;
}
.card-login .brand img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    margin-bottom: 12px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.card-login .brand strong {
    display: block;
    font-size: 22px;
    color: #2a2a2a;
    font-weight: 700;
}
.card-login .brand span { color: #666; font-size: 14px; }

/* ── Formulare ── */
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 5px;
}
.form-group input[type=text],
.form-group input[type=email],
.form-group input[type=password] {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--am-border);
    border-radius: var(--radius);
    font-size: 15px;
    transition: border-color 0.15s;
}
.form-group input:focus {
    outline: none;
    border-color: var(--am-blue);
    box-shadow: 0 0 0 3px rgba(153,199,6,0.18);
}
.form-group .hint {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}
.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0;
    font-size: 14px;
    color: #444;
}

/* ── Buttons ── */
.btn {
    display: inline-block;
    padding: 9px 22px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: opacity 0.15s;
}
.btn:hover { opacity: 0.88; }
.btn-primary { background: var(--am-blue); color: #fff; }
.btn-secondary { background: #eef4d4; color: #3a5000; }
.btn-danger { background: var(--am-red); color: #fff; }
.btn-full { width: 100%; text-align: center; }

/* ── Alerts ── */
.alert {
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 14px;
    margin-bottom: 16px;
}
.alert-error   { background: #fdecea; color: var(--am-red);    border: 1px solid #f5c6c6; }
.alert-success { background: #e8f5e9; color: var(--am-green);  border: 1px solid #a5d6a7; }
.alert-info    { background: #e8f5e9; color: #1b5e20;           border: 1px solid #a5d6a7; }
.alert-warning { background: #fff3e0; color: var(--am-orange);  border: 1px solid #ffcc80; }

/* ── Tabellen ── */
.table-wrap { overflow-x: auto; }
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
th {
    background: var(--am-light);
    color: #3a5000;
    font-weight: 600;
    text-align: left;
    padding: 9px 12px;
    border-bottom: 2px solid var(--am-border);
}
td {
    padding: 9px 12px;
    border-bottom: 1px solid #eef2f7;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: #f5fae8; }
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.badge-ok      { background: #e8f5e9; color: var(--am-green); }
.badge-offen   { background: #fff3e0; color: var(--am-orange); }
.badge-storno  { background: #f5f5f5; color: #777; }

/* ── Stammdaten-Grid ── */
.data-grid {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 8px 16px;
    font-size: 14px;
}
.data-grid dt { color: #666; font-weight: 500; padding: 4px 0; }
.data-grid dd { color: #1a1a1a; padding: 4px 0; font-weight: 400; }

/* ── Dashboard-Kacheln ── */
.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.dash-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #fff;
    border: 1px solid var(--am-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px 16px;
    text-decoration: none;
    color: #3a5000;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.15s, box-shadow 0.15s;
}
.dash-tile:hover { background: var(--am-light); box-shadow: 0 4px 14px rgba(80,120,0,0.18); }
.dash-tile svg { margin-bottom: 12px; opacity: 0.75; }

/* ── OTP-Eingabe ── */
.otp-input {
    text-align: center;
    letter-spacing: 0.35em;
    font-size: 26px;
    font-weight: 700;
    width: 180px;
    margin: 0 auto;
    display: block;
}

/* ── Passwort-Hinweis ── */
.pw-hint {
    background: var(--am-light);
    border: 1px solid var(--am-border);
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: 13px;
    color: #444;
    margin-bottom: 16px;
}
.pw-hint code {
    background: #d6eaa0;
    padding: 1px 5px;
    border-radius: 3px;
    font-family: monospace;
}

/* ── Rechtstexte (Impressum, Datenschutz) ── */
.legal-text h3 {
    font-size: 16px;
    font-weight: 700;
    color: #2a2a2a;
    margin: 28px 0 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--am-border);
}
.legal-text h4 {
    font-size: 14px;
    font-weight: 700;
    color: #3a5000;
    margin: 18px 0 6px;
}
.legal-text h5 {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin: 14px 0 4px;
}
.legal-text p { margin-bottom: 10px; font-size: 14px; line-height: 1.6; }
.legal-text ul { margin: 6px 0 12px 20px; font-size: 14px; line-height: 1.6; }
.legal-text ul li { margin-bottom: 4px; }
.legal-text a { color: var(--am-blue); }
.legal-text a:hover { text-decoration: underline; }

/* ── Footer ── */
.portal-footer {
    text-align: center;
    font-size: 12px;
    color: #888;
    padding: 24px;
    margin-top: 16px;
}
