/* simfairY — Pastell-Lila Theme
   Design-Regel: KEINE Rahmen, Kanten, Boxen.
   Trennung nur durch Weissraum und Typografie. */

:root {
    --primary: #B388FF;
    --primary-mid: #CE93D8;
    --primary-light: #E1BEE7;
    --accent: #7C4DFF;
    --accent-deep: #AA00FF;
    --bg: #FFFFFF;
    --bg-soft: #FAFAFA;
    --text: #212121;
    --text-mid: #757575;
    --success: #81C784;
    --warning: #FFB74D;
    --error: #E57373;
    --radius: 16px;
    --max-width: 1100px;
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-deep);
}

/* --- Navigation --- */
.navbar {
    padding: 0.75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-brand {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
    flex-shrink: 0;
}

/* Hauptnavigation (Desktop) */
.nav-main {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-main a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-main a:hover {
    color: var(--accent);
}

/* Rechte Seite: Flagge + Login + Burger */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Login-Button — immer sichtbar */
.btn-login {
    padding: 0.5rem 1.25rem;
    background: var(--accent);
    color: #fff !important;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: background 0.2s;
}

.btn-login:hover {
    background: var(--accent-deep);
    color: #fff !important;
}

/* Burger — nur Mobile */
.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    flex-direction: column;
    gap: 5px;
}

.burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.burger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.open span:nth-child(2) {
    opacity: 0;
}

.burger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Language Dropdown */
.lang-dropdown {
    position: relative;
}

.lang-current {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.3rem;
    line-height: 1;
    border-radius: 8px;
    transition: background 0.2s;
}

.lang-current:hover {
    background: var(--bg-soft);
}

.lang-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    padding: 0.5rem;
    min-width: 160px;
    max-height: 360px;
    overflow-y: auto;
    z-index: 200;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.lang-menu.open {
    display: grid;
}

.lang-menu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text);
    text-decoration: none;
    transition: background 0.15s;
}

.lang-menu a:hover {
    background: var(--bg-soft);
}

.lang-menu a.active {
    background: var(--primary-light);
    color: var(--accent);
    font-weight: 600;
}

.lang-menu a span {
    font-size: 0.75rem;
    color: var(--text-mid);
}

/* --- Mobile --- */
@media (max-width: 768px) {
    .burger {
        display: flex;
    }

    .nav-main {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 260px;
        height: 100vh;
        background: var(--bg);
        box-shadow: -4px 0 24px rgba(0,0,0,0.1);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 0;
        z-index: 150;
    }

    .nav-main.open {
        display: flex;
    }

    .nav-main a {
        padding: 1rem 0;
        font-size: 1.1rem;
    }
}

/* --- Hero --- */
.hero {
    text-align: center;
    padding: 6rem 2rem 4rem;
    background: linear-gradient(160deg, #f3e5f5 0%, var(--bg) 60%);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.hero h1 span {
    color: var(--accent);
}

.hero .claim {
    font-size: 1.3rem;
    color: var(--text-mid);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* --- Container --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 2rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.section-subtitle {
    color: var(--text-mid);
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
}

/* --- Feature Grid (kein border, kein shadow) --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
    margin: 2rem 0;
}

.feature-item {
    padding: 1rem 0;
}

.feature-item .icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.feature-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--text-mid);
    font-size: 0.95rem;
}

/* --- Steps (So funktioniert's) --- */
.steps {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.step {
    text-align: center;
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    padding: 1.5rem 0;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--accent);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step h3 {
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--text-mid);
    font-size: 0.9rem;
}

/* --- Plan Cards (kein border!) --- */
.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 2rem;
}

.plan-card {
    padding: 2rem 1.5rem;
    background: var(--bg-soft);
    border-radius: var(--radius);
    text-align: center;
    transition: transform 0.2s;
}

.plan-card:hover {
    transform: translateY(-3px);
}

.plan-card h3 {
    color: var(--accent);
    margin-bottom: 1rem;
}

.plan-card .price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text);
    margin: 1rem 0;
}

.plan-card .price small {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-mid);
}

.plan-card .details {
    list-style: none;
    margin: 1.5rem 0;
    text-align: left;
}

.plan-card .details li {
    padding: 0.4rem 0;
    color: var(--text-mid);
    font-size: 0.9rem;
}

.plan-card .details li::before {
    content: "\2713\00a0";
    color: var(--success);
    font-weight: 700;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    text-align: center;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-deep);
    color: #fff;
}

.btn-soft {
    background: var(--primary-light);
    color: var(--accent);
}

.btn-soft:hover {
    background: var(--primary-mid);
    color: #fff;
}

.btn-block {
    display: block;
    width: 100%;
}

/* --- Forms (minimale Gestaltung, kein border) --- */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    background: var(--bg-soft);
    color: var(--text);
    transition: box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(179, 136, 255, 0.3);
}

.form-card {
    max-width: 440px;
    margin: 2rem auto;
    padding: 2.5rem 2rem;
}

.form-card h2 {
    text-align: center;
    color: var(--text);
    margin-bottom: 2rem;
    font-weight: 700;
}

.alert {
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.alert-error {
    background: #fce4ec;
    color: var(--error);
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
}

.alert-warning {
    background: #fff3e0;
    color: #e65100;
}

/* --- Dashboard / Portal --- */
.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.portal-card {
    padding: 1.5rem;
    background: var(--bg-soft);
    border-radius: var(--radius);
}

.portal-card h3 {
    font-size: 1rem;
    color: var(--text-mid);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.portal-card .value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
}

/* Usage Bar */
.usage-bar {
    height: 8px;
    border-radius: 4px;
    background: #f0e6ff;
    margin: 0.75rem 0 0.25rem;
    overflow: hidden;
}

.usage-bar .fill {
    height: 100%;
    border-radius: 4px;
    background: var(--primary);
    transition: width 0.4s ease;
}

.usage-bar .fill.warning {
    background: var(--warning);
}

.usage-bar .fill.critical {
    background: var(--error);
}

.usage-label {
    font-size: 0.8rem;
    color: var(--text-mid);
}

/* SIM Status */
.status {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-active { background: #e8f5e9; color: #2e7d32; }
.status-paused { background: #fff3e0; color: #e65100; }
.status-expired { background: #fce4ec; color: #c62828; }
.status-ordered { background: #f0e6ff; color: var(--accent); }
.status-cancelled { background: var(--bg-soft); color: var(--text-mid); }

/* --- Table (kein border) --- */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.data-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    color: var(--text-mid);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 1rem;
    color: var(--text);
}

.data-table tbody tr {
    transition: background 0.2s;
}

.data-table tbody tr:hover {
    background: var(--bg-soft);
}

/* --- FAQ --- */
.faq-item {
    padding: 1.5rem 0;
}

.faq-item h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    cursor: pointer;
    color: var(--text);
}

.faq-item p {
    color: var(--text-mid);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* --- Footer --- */
.footer {
    margin-top: auto;
    padding: 3rem 2rem 2rem;
    text-align: center;
    color: var(--text-mid);
    font-size: 0.85rem;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    margin: 0 1rem;
    color: var(--text-mid);
}

.footer-links a:hover {
    color: var(--accent);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .hero { padding: 3rem 1.5rem 2rem; }
    .navbar { padding: 0.75rem 1rem; }
    .container { padding: 2rem 1.25rem; }
    .steps { flex-direction: column; align-items: center; }
    .plan-grid { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; gap: 2rem; }
}
