:root {
    --navy-900: #071c33;
    --navy-800: #0b2947;
    --navy-700: #113559;
    --teal: #12a5a5;
    --teal-bright: #2fd6c0;
    --teal-hover: #0e8f8f;
    --ink: #0e2a47;
    --ink-soft: #5b7086;
    --line: #e3e8ee;
    --danger-bg: #fdeceb;
    --danger-ink: #97231c;
    --success-bg: #e7f7f2;
    --success-ink: #146b57;
    --radius: 10px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Poppins", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: #fff;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.page { display: flex; flex-direction: column; min-height: 100vh; }

.split {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 44%) minmax(0, 56%);
}

/* ---------- Brand-Panel (links) ---------- */

.brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 44px 44px 40px;
    color: #fff;
    background-color: #001432;
    background-image: url("/assets/brand-bg.webp");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
}

/* Fallback fuer Browser ohne WebP */
.no-webp .brand-panel { background-image: url("/assets/brand-bg.jpg"); }

.brand-inner { position: relative; z-index: 1; max-width: 460px; }

.logo { display: inline-block; margin-bottom: 44px; }

.logo img {
    display: block;
    width: 260px;
    height: auto;
}

.brand-claim {
    margin: 0 0 20px;
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -0.02em;
}

.brand-claim .accent {
    display: block;
    margin-top: 6px;
    color: var(--teal-bright);
}

.brand-lead {
    margin: 0 0 32px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.78);
    max-width: 40ch;
}

.features { list-style: none; margin: 0; padding: 0; }

.features li {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.feature-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    color: var(--teal-bright);
    background: rgba(47, 214, 192, 0.09);
    border: 1px solid rgba(47, 214, 192, 0.22);
}

.feature-icon svg { width: 22px; height: 22px; }

.brand-art {
    position: relative;
    z-index: 0;
    margin-top: auto;
    padding-top: 28px;
}

@media (max-height: 840px) {
    .brand-art { padding-top: 18px; }
    .features li { margin-bottom: 14px; }
    .logo { margin-bottom: 28px; }
}

.brand-art img {
    display: block;
    width: 100%;
    max-width: 560px;
    max-height: 220px;
    height: auto;
    object-fit: contain;
    object-position: left bottom;
    opacity: 0.9;
}

.features strong {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.features p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.66);
    max-width: 34ch;
}

/* ---------- Formular-Panel (rechts) ---------- */

.form-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 26px 40px 56px;
    background: #fdfdfe;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    align-self: flex-end;
    font-size: 0.9rem;
    color: var(--ink-soft);
}

.lang-switch .globe { width: 20px; height: 20px; color: var(--ink); }

.lang-switch select {
    font: inherit;
    font-weight: 500;
    color: var(--ink);
    background: transparent;
    border: 0;
    padding: 4px 2px;
    cursor: pointer;
}

.lang-switch select:focus-visible { outline: 2px solid var(--teal); border-radius: 6px; }

.form-inner {
    width: 100%;
    max-width: 600px;
    margin: auto 0;
    padding: 40px 0;
}

.form-inner h1 {
    margin: 0 0 8px;
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.subheading {
    margin: 0 0 34px;
    font-size: 1.02rem;
    color: var(--ink-soft);
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 600;
}

/* Eingabefeld mit Icon */
.field {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.field-icon {
    position: absolute;
    left: 18px;
    display: grid;
    place-items: center;
    color: #9aa9b9;
    pointer-events: none;
}

.field-icon svg { width: 21px; height: 21px; }

.field input {
    width: 100%;
    padding: 17px 18px 17px 54px;
    font: inherit;
    font-size: 1rem;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.field input::placeholder { color: #a6b2bf; }

.field input:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(18, 165, 165, 0.14);
}

.field-eye {
    position: absolute;
    right: 8px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    color: #9aa9b9;
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

.field-eye:hover { color: var(--ink); }
.field-eye svg { width: 21px; height: 21px; }

/* Auge: durchgestrichen, solange das Passwort verborgen ist */
.field-eye .eye-slash { opacity: 1; }
.field-eye.is-visible .eye-slash { opacity: 0; }

.hint {
    margin: -12px 0 20px;
    font-size: 0.85rem;
    color: var(--ink-soft);
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 4px 0 26px;
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--ink);
    cursor: pointer;
}

.checkbox input {
    width: 19px;
    height: 19px;
    margin: 2px 0 0;
    flex: none;
    accent-color: var(--teal);
    cursor: pointer;
}

.checkbox.terms {
    margin: 4px 0 26px;
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.checkbox.terms a { color: var(--teal); font-weight: 500; }

.link {
    color: var(--teal);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.link:hover { text-decoration: underline; }

.prose {
    margin: 0 0 22px;
    font-size: 0.95rem;
    color: var(--ink-soft);
}

.prose.small { font-size: 0.85rem; margin-bottom: 18px; }

.inline-form { margin: -6px 0 20px; }

.btn-link {
    padding: 0;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--teal);
    background: none;
    border: 0;
    cursor: pointer;
    text-decoration: underline;
}

.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 18px 20px;
    font: inherit;
    font-size: 1.08rem;
    font-weight: 600;
    color: #fff;
    background: var(--teal);
    border: 0;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.15s, transform 0.05s;
}

.btn-primary svg { width: 22px; height: 22px; }
.btn-primary:hover { background: var(--teal-hover); }
.btn-primary:active { transform: translateY(1px); }

.divider {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 30px 0;
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

.switch-box {
    display: block;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.switch-box:hover {
    border-color: var(--teal);
    box-shadow: 0 6px 20px -14px rgba(18, 165, 165, 0.6);
}

.switch-question {
    display: block;
    font-size: 1rem;
    color: var(--ink);
}

.switch-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--teal);
}

.switch-action .arrow { width: 19px; height: 19px; }

.support {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 26px 0 0;
    font-size: 0.95rem;
    color: var(--ink-soft);
}

.support .help { width: 19px; height: 19px; flex: none; }
.support a { color: var(--teal); font-weight: 500; text-decoration: none; }
.support a:hover { text-decoration: underline; }

/* ---------- Meldungen ---------- */

.alert {
    padding: 13px 16px;
    margin-bottom: 20px;
    border-radius: var(--radius);
    font-size: 0.93rem;
}

.alert-error { background: var(--danger-bg); color: var(--danger-ink); }
.alert-success { background: var(--success-bg); color: var(--success-ink); }

/* ---------- Footer ---------- */

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 40px;
    font-size: 0.9rem;
    color: var(--ink-soft);
    background: #fff;
    border-top: 1px solid var(--line);
}

.site-footer nav { display: flex; gap: 30px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* ---------- Dashboard ---------- */

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 28px;
    background: var(--navy-800);
    color: #fff;
}

.topbar .logo { margin: 0; }
.topbar .logo { min-width: 0; }
.topbar .logo img { width: 150px; max-width: 100%; }

.topbar-right { display: flex; align-items: center; gap: 14px; flex: none; }

.user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.78);
}

.user-avatar {
    display: grid;
    place-items: center;
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #fff;
    background: rgba(47, 214, 192, 0.16);
    border: 1px solid rgba(47, 214, 192, 0.35);
}

.user-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 220px;
}

.btn-ghost svg.logout { width: 20px; height: 20px; display: none; }

.btn-ghost {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.16); }

.app-main { max-width: 960px; margin: 0 auto; padding: 44px 28px; }
.app-main h1 { margin: 0 0 6px; font-size: 1.85rem; font-weight: 700; letter-spacing: -0.02em; }
.lead { margin: 0 0 34px; color: var(--ink-soft); }

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 22px;
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 24px;
}

.card h2 { margin: 0 0 16px; font-size: 1.05rem; font-weight: 600; }
.card-muted { background: transparent; border-style: dashed; }

.card dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 18px;
    margin: 0;
    font-size: 0.93rem;
}

.card dt { color: var(--ink-soft); }
.card dd { margin: 0; text-align: right; }

.badge {
    display: inline-block;
    margin-top: 12px;
    padding: 4px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--teal);
    background: rgba(18, 165, 165, 0.1);
    border-radius: 999px;
}

/* ---------- Statische Seiten ---------- */

.page-simple { max-width: 720px; margin: 0 auto; padding: 60px 28px; }
.page-simple h1 { font-size: 1.9rem; font-weight: 700; letter-spacing: -0.02em; }
.page-simple .back { display: inline-block; margin-top: 24px; color: var(--teal); font-weight: 600; text-decoration: none; }

/* ---------- Responsiv ---------- */

@media (max-width: 1100px) {
    .brand-panel { padding: 36px 32px 24px; }
    .form-panel { padding: 24px 28px 48px; }
    .brand-claim { font-size: 1.8rem; }
    .form-inner h1 { font-size: 1.8rem; }
}

/* Schmale Displays: nur Initialen statt Name, Abmelden als Icon. */
@media (max-width: 640px) {
    .topbar { padding: 12px 16px; gap: 10px; }
    .topbar .logo img { width: 118px; }
    .user-name { display: none; }
    .btn-ghost { padding: 9px 11px; }
    .btn-ghost .btn-ghost-label { display: none; }
    .btn-ghost svg.logout { display: block; }
    .app-main { padding: 28px 18px; }
}

@media (max-width: 900px) {
    .split { grid-template-columns: 1fr; }
    .brand-panel { padding: 32px 24px 24px; }
    .brand-inner { max-width: none; }
    .logo { margin-bottom: 28px; }
    .logo img { width: 210px; }
    .features { display: none; }
    .form-panel { padding: 20px 22px 40px; }
    .form-inner { padding: 28px 0 0; }
    .site-footer { flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px 24px; }
    .site-footer nav { gap: 20px; }
}

/* Flachere Fenster: Illustration schrumpft, bleibt aber immer sichtbar. */
@media (max-height: 940px) { .brand-art img { max-height: 170px; } }
@media (max-height: 840px) { .brand-art img { max-height: 140px; } }
@media (max-height: 760px) { .brand-art img { max-height: 110px; } }

/* ---------- Einstellungen ---------- */

.tabs {
    display: flex;
    gap: 4px;
    margin: 0 0 28px;
    overflow-x: auto;
    border-bottom: 1px solid var(--line);
}

.tab {
    padding: 12px 16px;
    white-space: nowrap;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink-soft);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--teal); border-bottom-color: var(--teal); font-weight: 600; }

.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    margin-bottom: 22px;
    overflow: hidden;
}

.panel-head {
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
    background: #fbfcfd;
}

.panel-head h2 { margin: 0; font-size: 1.05rem; font-weight: 600; }
.panel-head p { margin: 4px 0 0; font-size: 0.88rem; color: var(--ink-soft); }

.panel-body { padding: 24px; }

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}

.grid.one { grid-template-columns: 1fr; }
.grid.street { grid-template-columns: 3fr 1fr; }
.grid.city { grid-template-columns: 1fr 1fr 1fr; }

.form-group { margin-bottom: 18px; min-width: 0; }
.form-group.full { grid-column: 1 / -1; }

.control { position: relative; display: flex; align-items: center; }

.control input,
.control select,
textarea {
    width: 100%;
    padding: 12px 14px;
    font: inherit;
    font-size: 0.95rem;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color 0.15s, box-shadow 0.15s;
}

textarea { resize: vertical; line-height: 1.5; }

.control input:focus,
.control select:focus,
textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(18, 165, 165, 0.14);
}

.control input:disabled { background: #f4f6f8; color: var(--ink-soft); }

.control.has-suffix input { padding-right: 92px; }

.suffix {
    position: absolute;
    right: 12px;
    font-size: 0.85rem;
    color: var(--ink-soft);
    pointer-events: none;
}

.form-group .hint { margin: 6px 0 0; font-size: 0.82rem; color: var(--ink-soft); }

.save-bar {
    display: flex;
    justify-content: flex-end;
    padding-top: 4px;
}

.btn-inline { width: auto; padding: 12px 22px; font-size: 0.95rem; }

/* Bild-Upload */

.avatar-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 22px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.avatar-preview,
.logo-preview {
    flex: none;
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--teal);
    background: rgba(18, 165, 165, 0.1);
    border: 1px solid var(--line);
}

.logo-preview {
    width: 130px;
    border-radius: 12px;
    object-fit: contain;
    background: #fbfcfd;
    padding: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--ink-soft);
    text-align: center;
}

.avatar-actions { min-width: 0; }
.avatar-actions .hint { margin: 8px 0 10px; font-size: 0.82rem; color: var(--ink-soft); }
.avatar-actions input[type="file"] { display: none; }

.file-label {
    display: inline-block;
    padding: 9px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 9px;
    cursor: pointer;
}

.file-label:hover { border-color: var(--teal); color: var(--teal); }

/* Platzhalter fuer spaetere Funktionen */

.soon {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    margin-bottom: 12px;
    border: 1px dashed var(--line);
    border-radius: 12px;
}

.soon strong { font-size: 0.95rem; font-weight: 600; }
.soon p { margin: 2px 0 0; font-size: 0.86rem; color: var(--ink-soft); }
.soon .badge { flex: none; }

.alert-info { background: #eaf2fd; color: #1b4f8f; }

img.user-avatar { object-fit: cover; }
a.user-chip { text-decoration: none; }
a.user-chip:hover .user-name { color: #fff; }

@media (max-width: 720px) {
    .grid, .grid.street, .grid.city { grid-template-columns: 1fr; }
    .panel-body { padding: 18px; }
    .panel-head { padding: 16px 18px; }
    .avatar-row { flex-direction: column; gap: 14px; }
    .save-bar { justify-content: stretch; }
    .btn-inline { width: 100%; }
    .soon { flex-direction: column; align-items: flex-start; gap: 8px; }
}

.card-text { margin: 0 0 14px; font-size: 0.9rem; color: var(--ink-soft); }
.card-link { font-size: 0.9rem; font-weight: 600; color: var(--teal); text-decoration: none; }
.card-link:hover { text-decoration: underline; }

/* ---------- Nutzermenü (Dropdown in der Topbar) ---------- */

.usermenu { position: relative; }

.usermenu-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px 6px 6px;
    font: inherit;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    cursor: pointer;
    max-width: 260px;
}

.usermenu-trigger:hover { background: rgba(255, 255, 255, 0.12); }

.usermenu-trigger .user-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.92rem;
}

.usermenu-trigger .chevron {
    width: 16px;
    height: 16px;
    flex: none;
    transition: transform 0.15s;
}

.usermenu.is-open .usermenu-trigger .chevron { transform: rotate(180deg); }

.usermenu-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 260px;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 18px 40px -20px rgba(16, 21, 28, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.14s, transform 0.14s, visibility 0.14s;
    z-index: 50;
}

.usermenu.is-open .usermenu-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.usermenu-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 12px 14px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--line);
}

.usermenu-head .user-avatar.lg { width: 42px; height: 42px; font-size: 0.95rem; }

.usermenu-id { min-width: 0; }
.usermenu-id strong { display: block; font-size: 0.95rem; color: var(--ink); }

.usermenu-id span {
    display: block;
    font-size: 0.82rem;
    color: var(--ink-soft);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.usermenu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    font: inherit;
    font-size: 0.92rem;
    text-align: left;
    color: var(--ink);
    text-decoration: none;
    background: none;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
}

.usermenu-item:hover { background: #f2f5f8; }
.usermenu-item svg { width: 18px; height: 18px; }

.usermenu-item.danger { color: var(--danger-ink); }
.usermenu-item.danger:hover { background: var(--danger-bg); }

.usermenu-sep { height: 1px; margin: 6px 4px; background: var(--line); }

/* Avatar im Menü-Trigger */
.usermenu-trigger .user-avatar {
    width: 32px;
    height: 32px;
    font-size: 0.78rem;
}

/* gewählter Dateiname unter dem Upload-Button */
.chosen-file {
    margin: 8px 0 0;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--teal);
    word-break: break-all;
}

@media (max-width: 640px) {
    .usermenu-trigger { max-width: none; padding: 5px; }
    .usermenu-trigger .user-name { display: none; }
    .usermenu-panel { width: 240px; }
}

/* ---------- Dashboard-Kacheln ---------- */

.tiles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);   /* Handy: 2 Spalten */
    gap: 16px;
}

.tile {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.05s;
}

.tile:hover,
.tile:focus-visible {
    outline: none;
    border-color: var(--tile, var(--teal));
    box-shadow: 0 12px 28px -18px rgba(18, 165, 165, 0.55);
    box-shadow: 0 12px 28px -18px color-mix(in srgb, var(--tile, var(--teal)) 65%, transparent);
}

.tile:active { transform: translateY(1px); }

.tile-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    color: var(--tile, var(--teal));
    background: #eef2f6;
    background: color-mix(in srgb, var(--tile, var(--teal)) 13%, #fff);
}

.tile-icon svg { width: 26px; height: 26px; }

/* rote Benachrichtigungs-Badge oben am Icon */
.tile-badge {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 21px;
    height: 21px;
    padding: 0 6px;
    display: grid;
    place-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    background: #e5484d;
    border: 2px solid #fff;
    border-radius: 999px;
    box-shadow: 0 1px 3px rgba(16, 21, 28, 0.25);
}

.tile-body { display: flex; flex-direction: column; gap: 3px; }

.tile-title { font-size: 1.02rem; font-weight: 600; color: var(--ink); }
.tile-desc { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.4; }

.tile-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 3px 9px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--ink-soft);
    background: #f2f5f8;
    border-radius: 999px;
}

@media (min-width: 560px) {
    .tiles { grid-template-columns: repeat(3, 1fr); }   /* Tablet: 3 Spalten */
}

@media (min-width: 960px) {
    .tiles { grid-template-columns: repeat(4, 1fr); gap: 18px; }  /* Desktop: 4 Spalten */
}

/* Begrüßung blendet sich nach ein paar Sekunden aus und klappt weg */
.greeting {
    overflow: hidden;
    max-height: 240px;
    transition: opacity 0.45s ease, transform 0.45s ease, max-height 0.5s ease;
}

.greeting.is-gone {
    opacity: 0;
    transform: translateY(-8px);
    max-height: 0;
}

@media (prefers-reduced-motion: reduce) {
    .greeting { transition: none; }
}
