:root {
    --red: #ff1a1a;
    --red-dark: #d40f0f;
    --red-tint: #fff0f0;
    --ink: #17181a;
    --ink-soft: #55575c;
    --ink-mute: #8a8d93;
    --line: #e8e8ea;
    --bg-soft: #f7f7f8;
    --radius: 10px;
    --shadow: 0 10px 30px rgba(23, 24, 26, 0.07);
    --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

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

:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo img { display: block; height: 34px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.main-nav > a, .main-nav .nav-item > a {
    display: inline-flex; align-items: center; gap: 4px;
    color: var(--ink-soft); font-size: 15px; font-weight: 500;
    line-height: 1; padding: 10px 12px; border-radius: 8px;
}
.nav-item { display: flex; align-items: center; }
.main-nav a:hover, .main-nav a.active { color: var(--ink); background: var(--bg-soft); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.lang-switch a {
    padding: 5px 10px; font-size: 12px; font-weight: 600; color: var(--ink-mute);
    text-transform: uppercase; letter-spacing: 0.04em;
}
.lang-switch a.active { background: var(--ink); color: #fff; }
.lang-switch a:hover { text-decoration: none; color: var(--ink); }
.lang-switch a.active:hover { color: #fff; }

.btn {
    display: inline-block; border: 0; cursor: pointer;
    font-family: var(--font); font-size: 15px; font-weight: 600;
    padding: 11px 22px; border-radius: 9px;
    background: var(--red); color: #fff;
    transition: background 0.15s ease, transform 0.1s ease;
}
.btn:hover { background: var(--red-dark); text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { background: var(--bg-soft); border-color: var(--ink-mute); }
.btn-sm { padding: 8px 16px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 64px; text-align: center; }
.hero h1 {
    margin: 0 0 14px; font-size: clamp(32px, 5vw, 52px);
    font-weight: 800; letter-spacing: -0.02em; line-height: 1.12;
}
.hero h1 .mark { position: relative; white-space: nowrap; }
.hero h1 .mark svg {
    position: absolute; left: 0; right: 0; bottom: -10px;
    width: 100%; height: 12px; color: var(--red);
}
.hero p.sub { margin: 0 auto 34px; max-width: 560px; color: var(--ink-soft); font-size: 18px; }

/* ---------- Domain checker ---------- */
.domain-check { max-width: 560px; margin: 0 auto; }
.domain-check form { display: flex; gap: 10px; }
.domain-check input {
    flex: 1; min-width: 0; font: inherit;
    padding: 13px 18px; border: 1.5px solid var(--line); border-radius: 9px;
}
.domain-check input:hover { border-color: var(--ink-mute); }
.domain-check input:focus { border-color: var(--red); outline: none; box-shadow: 0 0 0 3px var(--red-tint); }
.tld-teaser { margin-top: 14px; font-size: 13.5px; color: var(--ink-mute); }
.tld-teaser strong { color: var(--ink-soft); font-weight: 600; }

.check-results { margin-top: 22px; text-align: left; display: grid; gap: 8px; }
.check-results .row {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius);
    background: #fff;
}
.check-results .domain { font-weight: 600; }
.check-results .state { font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.state.ok { color: #0c6b3d; background: #e5f6ec; }
.state.no { color: var(--red-dark); background: var(--red-tint); }
.state.meh { color: var(--ink-mute); background: var(--bg-soft); }
.check-results .cta { margin-left: auto; }
.check-hint { margin-top: 14px; font-size: 14px; color: var(--ink-mute); }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-soft); }
.section h2 {
    margin: 0 0 8px; font-size: clamp(24px, 3vw, 32px);
    font-weight: 800; letter-spacing: -0.015em;
}
.section .lead { margin: 0 0 32px; color: var(--ink-soft); max-width: 640px; }

/* ---------- Product cards ---------- */
.product-grid {
    display: grid; gap: 18px;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.card {
    position: relative; display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    padding: 26px 24px 24px;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.card:hover { box-shadow: var(--shadow); border-color: #dcdcdf; }
.card.featured { border: 2px solid var(--red); }
.card .flag {
    position: absolute; top: -11px; left: 20px;
    background: var(--red); color: #fff;
    font-size: 11.5px; font-weight: 700; letter-spacing: 0.03em;
    padding: 3px 12px; border-radius: 999px;
}
.card h3 { margin: 0 0 4px; font-size: 19px; font-weight: 700; }
.card .desc { margin: 0 0 16px; font-size: 14px; color: var(--ink-soft); }
.card ul.specs { margin: 0 0 20px; padding: 0; list-style: none; flex: 1; }
.card ul.specs li {
    position: relative; padding: 4px 0 4px 26px;
    font-size: 14.5px; color: var(--ink-soft);
}
.card ul.specs li::before {
    content: ""; position: absolute; left: 0; top: 9px;
    width: 16px; height: 16px;
    background: var(--red);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.card .price { margin: 0 0 4px; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.card .price small { font-size: 14px; font-weight: 500; color: var(--ink-mute); }
.card .price-note { margin: 0 0 18px; font-size: 12.5px; color: var(--ink-mute); }
.card .btn { text-align: center; }
.vat-note { margin-top: 20px; font-size: 13px; color: var(--ink-mute); }

/* ---------- Benefits ---------- */
.benefits { display: flex; justify-content: center; gap: 36px; flex-wrap: wrap; padding: 34px 0; }
.benefits span { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 500; color: var(--ink-soft); }
.benefits svg { width: 20px; height: 20px; color: var(--red); flex: none; }

/* ---------- TLD table ---------- */
.tld-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tld-table th, .tld-table td { padding: 12px 18px; text-align: left; font-size: 15px; }
.tld-table th { background: var(--bg-soft); font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-mute); }
.tld-table tr + tr td { border-top: 1px solid var(--line); }
.tld-table td.tld-name { font-weight: 700; }
.table-scroll { overflow-x: auto; border-radius: var(--radius); }

/* ---------- Prose (Rechtstexte) ---------- */
.prose { max-width: 760px; }
.prose h1 { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; }
.prose-body { white-space: pre-wrap; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 40px; background: var(--ink); color: #b9bbc0; }
.site-footer .wrap {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap; padding-top: 30px; padding-bottom: 30px;
    font-size: 14px;
}
.site-footer a { color: #e6e7e9; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .main-nav { display: none; }
    .site-header .wrap { height: 60px; }
    .hero { padding: 56px 0 44px; }
    .domain-check form { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}

/* ---------- Nav-Dropdown (Unterkategorien) ---------- */
.nav-item { position: relative; }
.nav-item .caret { font-size: 10px; color: var(--ink-mute); }
.nav-item .dropdown {
    position: absolute; top: 100%; left: 0; min-width: 200px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 6px;
    opacity: 0; visibility: hidden; transform: translateY(4px);
    transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s;
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-item .dropdown a {
    display: block; padding: 8px 12px; border-radius: 7px;
    color: var(--ink-soft); font-size: 14.5px; font-weight: 500;
}
.nav-item .dropdown a:hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }

/* Unterkategorie-Abschnitte auf Kategorieseiten */
.subcat { margin-top: 44px; }
.subcat h3 { margin: 0 0 16px; font-size: 21px; font-weight: 700; }

/* ---------- Produktdetailseite & SEO-Text ---------- */
.crumbs { font-size: 13.5px; color: var(--ink-mute); margin: 0 0 18px; }
.crumbs a { color: var(--ink-soft); }
.product-detail h1 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.02em; }
.product-detail .lead { color: var(--ink-soft); max-width: 680px; margin: 0 0 34px; font-size: 17px; }
.detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
.detail-grid h2 { font-size: 20px; margin: 0 0 14px; }
.specs-lg { margin: 0; padding: 0; list-style: none; }
.specs-lg li { position: relative; padding: 6px 0 6px 28px; font-size: 15px; color: var(--ink-soft); }
.specs-lg li::before {
    content: ""; position: absolute; left: 0; top: 11px; width: 17px; height: 17px; background: var(--red);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.price-box { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; }
.price-box .price-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.price-box .price-row:last-of-type { border-bottom: 0; }
.price-box .amount { font-weight: 700; }
.price-box .hint { font-size: 12.5px; color: var(--ink-mute); margin: 10px 0; }
.card h3 .card-link { color: var(--ink); }
.card h3 .card-link:hover { color: var(--red-dark); text-decoration: none; }
.seo-text {
    margin-top: 52px; padding-top: 34px; border-top: 1px solid var(--line);
    max-width: 760px; color: var(--ink-soft); font-size: 15.5px; white-space: pre-line;
}
@media (max-width: 800px) { .detail-grid { grid-template-columns: 1fr; } }

.subcat-link { color: var(--ink); }
.subcat-link:hover { color: var(--red-dark); text-decoration: none; }

/* ---------- Feature-Grid (Immer inklusive) ---------- */
.feature-section { background: var(--bg-soft); }
.feature-grid {
    display: grid; gap: 40px 28px; margin-top: 40px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    text-align: center;
}
.feature-icon {
    display: inline-flex; width: 54px; height: 54px; color: var(--red);
}
.feature-icon svg { width: 100%; height: 100%; }
.feature h3 { margin: 14px 0 8px; font-size: 18px; font-weight: 700; }
.feature p { margin: 0 auto; max-width: 300px; font-size: 14.5px; color: var(--ink-soft); }

/* ---------- SEO-Textbereich (aufgewertet) ---------- */
.seo-section { background: var(--bg-soft); }
.seo-box { max-width: 800px; margin: 0 auto; text-align: center; }
.seo-box h2 { margin: 0 0 14px; }
.seo-rule {
    display: block; width: 64px; height: 4px; margin: 0 auto 26px;
    background: var(--red); border-radius: 999px;
}
.seo-box p { margin: 0 0 16px; color: var(--ink-soft); font-size: 15.5px; text-align: left; }
.seo-box p.seo-lead {
    font-size: 17.5px; color: var(--ink); text-align: center; margin-bottom: 22px;
}
