/* ============================================================
   teluna.de – Haupt-Stylesheet (keine externen Ressourcen)
   ============================================================ */

:root {
    --primary: #2c3e50;
    --primary-dark: #1a252f;
    --secondary: #3498db;
    --secondary-dark: #217dbb;
    --success: #27ae60;
    --danger: #e74c3c;
    --warning: #f39c12;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --text: #444;
    --heading: #2c3e50;
    --muted: #7f8c8d;
    --bg: #f4f6f8;
    --card-bg: #ffffff;
    --border: #e3e8ec;
    --shadow: 0 2px 6px rgba(0,0,0,0.08);
    --shadow-hover: 0 6px 18px rgba(0,0,0,0.14);
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --radius: 8px;
}

/* Darkmode */
[data-theme="dark"] {
    --primary: #0f1821;
    --primary-dark: #0a1118;
    --secondary: #4da3dc;
    --secondary-dark: #6db7e3;
    --success: #2ecc71;
    --danger: #e74c3c;
    --warning: #f5b041;
    --dark: #d7dee5;
    --text: #c9d3dc;
    --heading: #e8edf2;
    --muted: #8b98a5;
    --bg: #12181f;
    --card-bg: #1b242d;
    --border: #2c3a46;
    --shadow: 0 2px 6px rgba(0,0,0,0.35);
    --shadow-hover: 0 6px 18px rgba(0,0,0,0.5);
}
[data-theme="dark"] .site-header { background: linear-gradient(135deg, #0a1118, #16202b); }
[data-theme="dark"] .site-footer { background: #0f1821; }
[data-theme="dark"] .search-section { box-shadow: var(--shadow); }
[data-theme="dark"] .info-item { background: var(--bg); }
[data-theme="dark"] .report-comment { background: var(--bg); }

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

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

.main-content { flex: 1; padding-bottom: 40px; }

/* ---------- Header ---------- */
.site-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    padding: 22px 0 16px;
}

.header-inner { display: flex; flex-direction: column; }

.header-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 2rem; font-weight: 700; }
.brand:hover { color: #fff; text-decoration: none; }
.brand-icon { font-size: 1.8rem; }
.brand-name { letter-spacing: 1px; }

.tagline { color: rgba(255,255,255,0.85); font-size: 0.95rem; flex: 1; min-width: 160px; }

.header-actions { display: flex; gap: 8px; margin-left: auto; }

.icon-btn {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    width: 42px;
    height: 42px;
    font-size: 1.15rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.icon-btn:hover { background: rgba(255,255,255,0.25); }

.nav-toggle { display: none; }

.main-nav { display: flex; gap: 22px; margin-top: 12px; flex-wrap: wrap; }
.main-nav a { color: rgba(255,255,255,0.8); font-weight: 500; padding: 4px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: #fff; text-decoration: none; border-bottom-color: var(--secondary); }
.main-nav a.active { color: #fff; border-bottom-color: var(--secondary); }

/* ---------- Hero (Startseite) ---------- */
.hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    padding: 40px 0 44px;
    margin-bottom: 8px;
}
.hero-inner { text-align: center; }
.hero-title {
    font-size: 2.1rem;
    line-height: 1.25;
    color: #fff;
    font-weight: 700;
    margin-bottom: 10px;
}
.hero-accent { color: #7ec8f0; }
.hero-sub { color: rgba(255,255,255,0.88); font-size: 1.08rem; margin-bottom: 20px; }
.hero-search {
    display: flex;
    max-width: 640px;
    margin: 0 auto;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    border-radius: var(--radius);
    overflow: hidden;
}
.hero-search input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    font-size: 1.1rem;
    min-width: 0;
}
.hero-search input:focus { outline: 2px solid var(--secondary); outline-offset: -2px; }
.hero-search button {
    padding: 16px 30px;
    background: var(--secondary);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background 0.2s;
}
.hero-search button:hover { background: var(--secondary-dark); }
.hero-hint { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-top: 12px; }

/* ---------- Homepage-Sektionen & Karten ---------- */
.home-section { padding: 26px 0 6px; }

.section-title { font-size: 1.5rem; color: var(--heading); margin: 10px 0 18px; }
.sub-title { font-size: 1.1rem; color: var(--heading); margin-bottom: 10px; }

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.category-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    display: block;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); text-decoration: none; color: inherit; }
.cat-icon { font-size: 2rem; display: block; margin-bottom: 10px; }
.cat-title { font-size: 1.05rem; color: var(--heading); margin-bottom: 6px; }
.cat-text { font-size: 0.9rem; color: var(--muted); }

.number-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}
.number-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    display: block;
}
.number-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); text-decoration: none; }
.nc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.nc-time { font-size: 0.8rem; color: var(--success); font-weight: 500; }
.nc-number { font-size: 1.25rem; font-weight: 700; color: var(--secondary); word-break: break-all; }
.nc-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 0.88rem; color: var(--muted); margin: 8px 0; flex-wrap: wrap; }
.nc-carrier { color: var(--text); }

.chip-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 14px;
    box-shadow: var(--shadow);
    transition: background 0.15s, transform 0.15s;
}
.chip:hover { background: var(--secondary); color: #fff; text-decoration: none; transform: translateY(-2px); }
.chip-code { font-weight: 700; color: var(--secondary); }
.chip:hover .chip-code { color: #fff; }
.chip-label { font-size: 0.88rem; color: var(--muted); }
.chip:hover .chip-label { color: #eaf2fb; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.link-list { list-style: none; column-count: 2; column-gap: 20px; }
.link-list li { padding: 6px 0; break-inside: avoid; }
.link-list a { font-weight: 500; }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.blog-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-left: 4px solid var(--secondary);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    display: block;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); text-decoration: none; }
.blog-card-title { font-size: 1.05rem; color: var(--heading); margin-bottom: 6px; }
.blog-card-text { font-size: 0.9rem; color: var(--muted); margin-bottom: 8px; }
.blog-card-more { font-size: 0.9rem; color: var(--secondary); font-weight: 600; }

/* ---------- Suchbereich ---------- */
.search-section {
    padding: 40px 0;
    background: var(--card-bg);
    box-shadow: var(--shadow);
}

.search-section form {
    display: flex;
    max-width: 640px;
    margin: 0 auto;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    border-radius: var(--radius);
    overflow: hidden;
}

.search-section input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    font-size: 1.1rem;
    min-width: 0;
}

.search-section input:focus { outline: 2px solid var(--secondary); outline-offset: -2px; }

.search-section button {
    padding: 16px 30px;
    background: var(--secondary);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background 0.2s;
}

.search-section button:hover { background: var(--secondary-dark); }

.search-hint { text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: 12px; }

/* ---------- Statistiken ---------- */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    padding: 40px 0 20px;
}

.stat-box {
    background: var(--card-bg);
    padding: 24px;
    text-align: center;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.stat-box .number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
}

.stat-box .label { font-size: 0.9rem; color: var(--muted); }

/* ---------- Abschnitte ---------- */
.card {
    background: var(--card-bg);
    padding: 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin: 20px 0;
    content-visibility: auto;
    contain-intrinsic-size: auto 220px;
    contain: layout style;
}

.number-list { list-style: none; }
.number-list li {
    padding: 12px 8px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.number-list li:last-child { border-bottom: none; }
.number-list a { font-weight: 600; font-size: 1.05rem; }
.number-meta { color: var(--muted); font-size: 0.9rem; }
.recent-time { font-weight: 500; color: var(--success); }

.blog-teaser article {
    background: var(--card-bg);
    padding: 20px 24px;
    margin-bottom: 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--secondary);
    content-visibility: auto;
    contain-intrinsic-size: auto 120px;
    contain: layout style;
}
.blog-teaser h3 a { color: var(--primary); }
.blog-teaser .excerpt { color: var(--muted); margin-top: 6px; }

/* ---------- Buttons & Formulare ---------- */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--secondary);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background 0.2s;
    text-decoration: none;
}
.btn:hover { background: var(--secondary-dark); color: #fff; text-decoration: none; }
.btn-sm { padding: 6px 14px; font-size: 0.85rem; }
.btn-block { display: block; width: 100%; }
.btn-outline { background: transparent; border: 1px solid var(--secondary); color: var(--secondary); }
.btn-outline:hover { background: var(--secondary); color: #fff; }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #c0392b; }
.btn-success { background: var(--success); }
.btn-success:hover { background: #1e8449; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--primary); }
.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: 2px solid var(--secondary); outline-offset: -1px;
}
.form-group textarea { min-height: 110px; resize: vertical; }

/* ---------- Nummern-Detail ---------- */
.number-hero {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
    margin: 24px 0;
    border-top: 5px solid var(--secondary);
    content-visibility: auto;
    contain-intrinsic-size: auto 240px;
    contain: layout style;
}
.number-hero .number-big {
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--heading);
    word-break: break-all;
}
.number-hero .number-sub { color: var(--muted); margin-top: 4px; }

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin: 20px 0;
}
.info-item { background: var(--bg); padding: 14px; border-radius: 6px; }
.info-item .info-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); }
.info-item .info-value { font-weight: 600; color: var(--primary); }

/* Risiko-Balken */
.risk-meter { margin: 18px 0; }
.risk-bar { height: 12px; background: var(--border); border-radius: 6px; overflow: hidden; margin-top: 6px; }
.risk-bar-fill { height: 100%; transition: width 0.6s ease; }
.risk-high .risk-bar-fill { background: var(--danger); }
.risk-medium .risk-bar-fill { background: var(--warning); }
.risk-low .risk-bar-fill { background: var(--success); }
.risk-none .risk-bar-fill { background: var(--secondary); }

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}
.badge-active { background: #eaf2fb; color: var(--secondary); }
.badge-blocked { background: #fdecea; color: var(--danger); }
.badge-spam { background: #fef3e2; color: var(--warning); }
.badge-legitimate { background: #eafaf0; color: var(--success); }

/* Bewertungen */
.report-item { padding: 16px 0; border-bottom: 1px solid var(--border); }
.report-item:last-child { border-bottom: none; }
.report-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.report-comment { margin-top: 8px; background: var(--bg); padding: 12px 16px; border-radius: 6px; }

.stars { color: var(--warning); letter-spacing: 2px; }
.stars-value { color: var(--muted); letter-spacing: 0; font-size: 0.85rem; }
.stars-empty { color: var(--muted); letter-spacing: 0; font-size: 0.9rem; }

/* ---------- Blog ---------- */
.post-meta { color: var(--muted); font-size: 0.9rem; }
.article-body { line-height: 1.8; }
.article-body h1, .article-body h2, .article-body h3 { color: var(--primary); margin: 24px 0 12px; }
.article-body p { margin-bottom: 14px; }
.article-body ul, .article-body ol { margin: 0 0 14px 24px; }

/* ---------- Alerts ---------- */
.alert { padding: 14px 18px; border-radius: 6px; margin: 16px 0; font-weight: 500; }
.alert-success { background: #eafaf0; color: #1e8449; border: 1px solid #a9dfbf; }
.alert-danger { background: #fdecea; color: #c0392b; border: 1px solid #f5b7b1; }
.alert-warning { background: #fef3e2; color: #b9770e; border: 1px solid #f7dc9f; }
.alert-info { background: #eaf2fb; color: #217dbb; border: 1px solid #aed6f1; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { margin: 18px 0 0; font-size: 0.9rem; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs .sep { margin: 0 6px; }

/* ---------- Cookie-Banner ---------- */
#cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--primary); color: #fff;
    padding: 18px 24px; text-align: center;
    z-index: 9999;
    box-shadow: 0 -4px 14px rgba(0,0,0,0.2);
    display: flex; flex-direction: column; align-items: center; gap: 10px;
}
#cookie-banner p { max-width: 720px; font-size: 0.95rem; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--primary);
    color: #fff;
    padding: 24px 0;
    text-align: center;
    margin-top: auto;
}
.site-footer nav { margin-top: 8px; }
.site-footer a { color: #fff; text-decoration: none; margin: 0 10px; opacity: 0.85; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }

/* ---------- Leere Zustände ---------- */
.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty-state .icon { font-size: 3rem; margin-bottom: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .brand { font-size: 1.6rem; }
    .brand-icon { font-size: 1.5rem; }
    .tagline { display: none; }
    .header-row { flex-wrap: nowrap; }

    /* Mobile Navigation (Hamburger) */
    .nav-toggle { display: inline-flex; }
    .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 4px;
        padding: 12px 0 4px;
        border-top: 1px solid rgba(255,255,255,0.15);
        margin-top: 14px;
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 12px 8px; border-bottom: 1px solid rgba(255,255,255,0.08); border-left: 3px solid transparent; }
    .main-nav a.active { border-bottom-color: transparent; border-left-color: var(--secondary); }

    .hero { padding: 28px 0 32px; }
    .hero-title { font-size: 1.5rem; }
    .hero-search { flex-direction: column; border-radius: var(--radius); }
    .hero-search input { border-radius: 0; padding: 14px 16px; }
    .hero-search button { border-radius: 0; padding: 14px 16px; }

    .search-section form { flex-direction: column; border-radius: var(--radius); }
    .search-section input { border-radius: 0; padding: 14px 16px; }
    .search-section button { border-radius: 0; padding: 14px 16px; }
    .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
    .number-hero .number-big { font-size: 1.6rem; }
    .two-col { grid-template-columns: 1fr; gap: 16px; }
    .link-list { column-count: 1; }
    .number-grid { grid-template-columns: 1fr 1fr; }
    .category-grid { grid-template-columns: 1fr 1fr; }
    .category-card { padding: 16px; }
}
