/* Feronix ATLAS Kundenportal — Corporate Stylesheet
   Navy navigation, blaugrauer Hintergrund, weiße Karten (an ATLAS angelehnt, getrennt) */

:root {
    --navy: #0f1f3a;
    --navy-light: #1c3057;
    --bg: #e6ebf2;
    --card: #ffffff;
    --border: #c9d3e3;
    --text: #1a2233;
    --text-muted: #5a6680;
    --accent: #2d6cdf;
    --accent-dark: #1f5299;
    --warn: #b8741a;
    --legal: #6a4b8a;
    --success: #2e7d4f;
    --radius: 6px;
    --shadow: 0 1px 3px rgba(15, 31, 58, 0.08);
    --maxw: 1180px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    font-size: 15px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Topbar */
.topbar {
    background: var(--navy);
    color: #fff;
    border-bottom: 2px solid var(--accent);
}
.topbar__inner {
    max-width: var(--maxw);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.75rem 1.25rem;
    flex-wrap: wrap;
}
.brand { display: flex; flex-direction: column; line-height: 1.1; color: #fff; }
.brand:hover { text-decoration: none; }
.brand__name { font-weight: 700; font-size: 1.15rem; letter-spacing: 0.02em; }
.brand__tagline { font-size: 0.78rem; color: #9fb3d9; }

.topnav { margin-left: auto; }
.topnav__toggle {
    display: none;
    background: none; border: none; color: #fff;
    font-size: 1.4rem; cursor: pointer;
}
.topnav__list {
    display: flex; align-items: center; gap: 0.35rem;
    list-style: none; flex-wrap: wrap;
}
.topnav__list a {
    color: #cdd8ee; padding: 0.4rem 0.7rem; border-radius: var(--radius);
    font-size: 0.92rem;
}
.topnav__list a:hover { background: var(--navy-light); color: #fff; text-decoration: none; }
.topnav__list a.is-active { background: var(--accent); color: #fff; }
.topnav__cta { border: 1px solid #3a5a8c; }
.topnav__cta--ghost { background: transparent; }
.topnav__cta:not(.topnav__cta--ghost) { background: var(--accent); border-color: var(--accent); }

.langswitch { position: relative; }
.langswitch__btn {
    background: var(--navy-light); color: #fff; border: 1px solid #3a5a8c;
    padding: 0.35rem 0.6rem; border-radius: var(--radius); cursor: pointer;
    font-size: 0.82rem;
}
.langswitch__menu {
    position: absolute; right: 0; top: 100%; margin-top: 0.25rem;
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow);
    list-style: none; min-width: 160px; z-index: 100;
}
.langswitch__menu li a {
    display: block; padding: 0.4rem 0.7rem; color: var(--text); font-size: 0.85rem;
}
.langswitch__menu li a:hover { background: var(--bg); text-decoration: none; }

/* Main */
.main { min-height: calc(100vh - 280px); }

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: #fff; padding: 4rem 1.25rem;
}
.hero__inner { max-width: var(--maxw); margin: 0 auto; }
.hero__title { font-size: 2.2rem; font-weight: 700; max-width: 720px; line-height: 1.2; }
.hero__subtitle { margin-top: 1rem; font-size: 1.1rem; color: #cdd8ee; max-width: 640px; }
.hero__cta { margin-top: 1.75rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Buttons */
.btn {
    display: inline-block; padding: 0.6rem 1.2rem; border-radius: var(--radius);
    font-size: 0.95rem; font-weight: 600; cursor: pointer; border: 1px solid transparent;
    text-decoration: none; transition: background 0.15s;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); text-decoration: none; }
.btn--ghost { background: transparent; color: #fff; border-color: #4a6a9c; }
.btn--ghost:hover { background: rgba(255,255,255,0.08); text-decoration: none; }
.btn--block { display: block; width: 100%; text-align: center; }

/* Features */
.features { padding: 3rem 1.25rem; }
.features__inner { max-width: var(--maxw); margin: 0 auto; }
.features__title { font-size: 1.6rem; margin-bottom: 1.5rem; color: var(--navy); }
.features__grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}
.feature-card {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.25rem; box-shadow: var(--shadow);
}
.feature-card h3 { color: var(--navy); margin-bottom: 0.5rem; font-size: 1.05rem; }
.feature-card p { color: var(--text-muted); font-size: 0.92rem; }

/* Flow */
.flow { padding: 2rem 1.25rem 3rem; background: #dfe5ee; }
.flow__inner { max-width: var(--maxw); margin: 0 auto; }
.flow__inner h2 { color: var(--navy); margin-bottom: 1rem; }
.flow__steps { list-style: decimal; padding-left: 1.25rem; }
.flow__steps li { margin-bottom: 0.6rem; }

/* Page */
.page { padding: 2.5rem 1.25rem; }
.page__inner { max-width: var(--maxw); margin: 0 auto; }
.page__inner--narrow { max-width: 640px; }
.page h1 { color: var(--navy); margin-bottom: 0.75rem; }
.lead { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.arch { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1rem; margin: 1.5rem 0; overflow-x: auto; }
.arch pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.85rem; color: var(--text); white-space: pre; }
.checklist { list-style: none; padding: 0; margin: 1.25rem 0; }
.checklist li { padding: 0.5rem 0 0.5rem 1.5rem; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 700; }

/* Products */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.product-card {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.25rem; box-shadow: var(--shadow);
}
.product-card header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.product-card h3 { color: var(--navy); font-size: 1.05rem; }
.badge { background: var(--navy-light); color: #fff; font-size: 0.72rem; padding: 0.2rem 0.5rem; border-radius: 3px; }
.product-card .hint { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.5rem; }
.note { color: var(--text-muted); font-size: 0.88rem; margin-top: 1rem; font-style: italic; }

/* Flow diagram */
.flow-diagram { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1rem; margin: 1.5rem 0; overflow-x: auto; }
.flow-diagram pre { font-family: "SFMono-Regular", Consolas, monospace; font-size: 0.85rem; white-space: pre; }

/* Callouts */
.callout { padding: 1rem 1.25rem; border-radius: var(--radius); margin: 1.25rem 0; font-size: 0.92rem; }
.callout--warning { background: #fdf3e3; border-left: 4px solid var(--warn); }
.callout--legal { background: #f0eaf6; border-left: 4px solid var(--legal); font-style: italic; }

/* Forms */
.form { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.5rem; box-shadow: var(--shadow); }
.form h2 { color: var(--navy); margin-bottom: 1rem; font-size: 1.15rem; }
.form label { display: block; margin-bottom: 0.85rem; font-weight: 500; font-size: 0.92rem; }
.form input, .form select {
    display: block; width: 100%; margin-top: 0.3rem; padding: 0.55rem 0.7rem;
    border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.95rem;
    background: #fff;
}
.form input:focus, .form select:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.form .checkbox { display: flex; align-items: center; gap: 0.5rem; font-weight: 400; }
.form .checkbox input { width: auto; margin: 0; }
.form__nav { display: flex; gap: 0.75rem; margin-top: 1rem; }
[x-cloak] { display: none !important; }

/* Accounts */
.accounts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.account-card {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.25rem; box-shadow: var(--shadow);
}
.account-card header h3 { color: var(--navy); margin-bottom: 0.75rem; }
.account-card__row { display: flex; justify-content: space-between; padding: 0.4rem 0;
    border-bottom: 1px solid var(--border); }
.account-card__row:last-of-type { border-bottom: none; margin-bottom: 0.75rem; }
.account-card__row strong { color: var(--text); }

.empty-state { color: var(--text-muted); font-style: italic; padding: 1.5rem; text-align: center;
    background: var(--card); border: 1px dashed var(--border); border-radius: var(--radius); }

/* Footer */
.footer { background: var(--navy); color: #cdd8ee; padding: 2.5rem 1.25rem 1.25rem; margin-top: 2rem; }
.footer__inner { max-width: var(--maxw); margin: 0 auto; display: grid;
    grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer__brand { font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.footer__disclaimer { font-size: 0.82rem; color: #9fb3d9; }
.footer__col h4 { color: #fff; margin-bottom: 0.5rem; font-size: 0.95rem; }
.footer__col ul { list-style: none; }
.footer__col li { margin-bottom: 0.3rem; }
.footer__col a { color: #cdd8ee; font-size: 0.88rem; }
.footer__col a:hover { color: #fff; }
.footer__bottom { max-width: var(--maxw); margin: 1.5rem auto 0; padding-top: 1rem;
    border-top: 1px solid #2a3f63; font-size: 0.82rem; color: #9fb3d9; text-align: center; }

/* Form extensions: stepper, grid, checkbox-cards, upload-cards */
.form__step { min-height: 300px; }
.form__grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem; margin-bottom: 1rem;
}
.form__span2 { grid-column: span 2; }
.form__required::after { content: ""; }
.form__nav { display: flex; justify-content: space-between; gap: 0.75rem; margin-top: 1.25rem; }

.page__inner--wide { max-width: 900px; }

/* Stepper */
.stepper {
    display: flex; gap: 0; margin-bottom: 1.5rem; overflow-x: auto;
    border-bottom: 2px solid var(--border);
}
.stepper__item {
    display: flex; align-items: center; gap: 0.4rem;
    padding: 0.6rem 0.75rem; font-size: 0.85rem; color: var(--text-muted);
    white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.stepper__item--active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.stepper__item--done { color: var(--success); }
.stepper__num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--border); color: var(--text); font-size: 0.78rem; font-weight: 700;
}
.stepper__item--active .stepper__num { background: var(--accent); color: #fff; }
.stepper__item--done .stepper__num { background: var(--success); color: #fff; }

/* Checkbox grid (procedures) */
.checkbox-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem; margin: 1rem 0;
}
.checkbox-card {
    display: flex; flex-direction: column; gap: 0.25rem;
    padding: 0.85rem; border: 2px solid var(--border); border-radius: var(--radius);
    cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.checkbox-card:hover { border-color: var(--accent); background: #f4f7fb; }
.checkbox-card input[type="checkbox"] { margin-bottom: 0.4rem; }
.checkbox-card__title { font-weight: 600; font-size: 0.92rem; color: var(--navy); }
.checkbox-card__desc { font-size: 0.82rem; color: var(--text-muted); }

/* Upload grid */
.upload-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.75rem; margin: 1rem 0;
}
.upload-card {
    display: flex; flex-direction: column; gap: 0.3rem;
    padding: 0.85rem; border: 2px dashed var(--border); border-radius: var(--radius);
    cursor: pointer; transition: border-color 0.15s;
}
.upload-card:hover { border-color: var(--accent); }
.upload-card__title { font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.upload-card__desc { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.upload-card input[type="file"] { font-size: 0.82rem; }

/* Tables */
.table {
    width: 100%; border-collapse: collapse; background: var(--card);
    border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; font-size: 0.9rem;
}
.table thead { background: var(--navy); color: #fff; }
.table th { padding: 0.6rem 0.75rem; text-align: left; font-weight: 600; font-size: 0.85rem; }
.table td { padding: 0.55rem 0.75rem; border-top: 1px solid var(--border); }
.table tbody tr:hover { background: #f4f7fb; }

/* Audit list */
.audit-list { list-style: none; padding: 0; }
.audit-item {
    display: flex; gap: 0.75rem; align-items: baseline;
    padding: 0.5rem 0; border-bottom: 1px solid var(--border);
    font-size: 0.88rem; flex-wrap: wrap;
}
.audit-time { color: var(--text-muted); font-size: 0.82rem; white-space: nowrap; min-width: 110px; }
.audit-type {
    background: var(--navy-light); color: #fff; font-size: 0.72rem;
    padding: 0.15rem 0.4rem; border-radius: 3px; white-space: nowrap;
}
.audit-summary { flex: 1; }
.audit-actor { color: var(--text-muted); font-size: 0.82rem; }

/* Detail grid */
.detail-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem; background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1rem; margin: 1rem 0;
}
.detail-grid div { font-size: 0.9rem; }

/* Success callout */
.callout--success { background: #e8f5e9; border-left: 4px solid var(--success); }

/* Responsive */
@media (max-width: 768px) {
    .topnav__toggle { display: block; }
    .topnav__list {
        display: none; flex-direction: column; width: 100%; padding: 0.5rem 0;
    }
    .topnav__list--open { display: flex; }
    .topnav__list li { width: 100%; }
    .topnav__list a { display: block; }
    .footer__inner { grid-template-columns: 1fr; }
    .hero__title { font-size: 1.6rem; }
}
