/* Nordish-Web – Hosting-Seite
   Design-System: Burwitz-IT / KlarDocs
   Warme Erdtöne (Creme/Espresso), Akzent-Rot,
   Editorial-Typografie: Serifen-Akzent + Sans + Mono-Labels */

:root {
    --espresso: #210C02;
    --cream: #FAF7F1;
    --cream-deep: #F6F1EA;
    --accent: #C42121;
    --accent-dark: #A01B1B;
    --neutral: #E5E2DA;
    --muted: #7B6556;
    --maxw: 1280px;
    --gutter: clamp(20px, 5vw, 64px);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
    --sans: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: "JetBrains Mono", "SF Mono", "Cascadia Code", Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--cream);
    color: var(--espresso);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--cream); }

h1, h2, h3 { line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; }

h1 { font-size: clamp(38px, 6.5vw, 76px); letter-spacing: -0.035em; max-width: 16ch; }
h2 { font-size: clamp(30px, 4.4vw, 52px); max-width: 20ch; margin: 0 auto 20px; }
h1 em, h2 em {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: -0.015em;
}

a { color: inherit; }

.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

.wrap--narrow { max-width: 860px; }

.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--alt { background: var(--cream-deep); }

.section-head { text-align: center; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2 { margin-left: auto; margin-right: auto; }

/* ---------- Rechtstexte (Impressum / Datenschutz) ---------- */

.legal h2 {
    font-size: clamp(22px, 2.6vw, 30px);
    margin: 0 0 16px;
    padding-top: 28px;
    border-top: 2px solid var(--espresso);
}

.legal h2:first-child { border-top: none; padding-top: 0; }

.legal h3 {
    font-size: clamp(17px, 1.9vw, 20px);
    font-weight: 650;
    margin: 0 0 12px;
    color: var(--espresso);
}

.legal h3 + p, .legal h2 + .legal-h3 { margin-top: 0; }

.legal .legal-h3 { margin-top: 24px; }

.legal p, .legal li { color: var(--muted); margin-bottom: 16px; }

.legal ul { list-style: none; margin-bottom: 16px; }
.legal ul li { padding-left: 22px; position: relative; margin-bottom: 8px; }
.legal ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.68em;
    width: 8px;
    height: 2px;
    background: var(--accent);
}

.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: var(--espresso); font-weight: 650; }

/* ---------- Mono-Labels (KlarDocs-Stil) ---------- */

.kd-label {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}
.kd-label::before { content: ""; width: 34px; height: 1px; background: var(--muted); }
.kd-label--center { justify-content: center; }
.kd-label--accent { color: var(--accent); }
.kd-label--accent::before { background: var(--accent); width: 44px; height: 1.5px; }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 9999px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(196, 33, 33, 0.28); }
.btn--ghost { background: transparent; color: var(--espresso); border-color: var(--espresso); }
.btn--ghost:hover { background: var(--espresso); color: var(--cream); transform: translateY(-2px); }
.btn--small { padding: 11px 22px; font-size: 14.5px; }
.btn--block { width: 100%; }
.btn .arrow { transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }

/* ---------- Logo ---------- */

.nav-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { height: 38px; width: auto; display: block; }
.nav-logo-text { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; color: var(--espresso); }
.nav-logo-text em { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--accent); letter-spacing: -0.015em; }
.footer-logo-img { height: 110px; width: auto; display: block; margin-bottom: 20px; }

/* ---------- Navigation ---------- */

.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(250, 247, 241, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--neutral);
}
.nav-inner {
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.nav-links { display: flex; gap: 30px; }
.nav-links a {
    font-size: 14.5px;
    font-weight: 550;
    text-decoration: none;
    text-decoration-color: transparent;
    text-underline-offset: 5px;
    transition: text-decoration-color 0.3s, color 0.3s;
}
.nav-links a:hover { text-decoration: underline; text-decoration-color: var(--accent); }

/* ---------- Hero ---------- */

.hero {
    padding: calc(74px + clamp(56px, 10vh, 110px)) 0 clamp(64px, 9vw, 110px);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(40px, 5vw, 72px);
    align-items: center;
}

.hero-copy .lead { margin-top: 26px; max-width: 50ch; }
.hero-visual { position: relative; }
.hero-visual svg { width: 100%; height: auto; display: block; }
.hero-ctas { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }

.hero-trust {
    margin-top: clamp(40px, 6vh, 72px);
    padding-top: 26px;
    border-top: 1px solid var(--neutral);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.hero-trust div {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 10px;
}
.hero-trust div::before {
    content: "";
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 62ch; }
.lead--center { margin-left: auto; margin-right: auto; }

/* ---------- Abrechnungs-Umschalter (CSS-only) ---------- */

.billing-toggle { position: absolute; opacity: 0; pointer-events: none; }

.toggle-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: clamp(36px, 5vw, 56px);
}
.toggle-opt { font-size: 15px; font-weight: 600; color: var(--muted); }
.toggle-save {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cream);
    background: var(--accent);
    border-radius: 999px;
    padding: 4px 10px;
    margin-left: 6px;
    vertical-align: 2px;
}
.toggle-pill {
    position: relative;
    width: 58px; height: 32px;
    background: var(--espresso);
    border-radius: 999px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.3s;
}
.toggle-knob {
    position: absolute;
    top: 4px; left: 4px;
    width: 24px; height: 24px;
    background: var(--cream);
    border-radius: 50%;
    transition: transform 0.4s var(--ease);
}
.billing-toggle:checked ~ .toggle-row .toggle-pill .toggle-knob { transform: translateX(26px); }
.billing-toggle:checked ~ .toggle-row .toggle-opt:last-child { color: var(--espresso); }

/* Preis-Anzeige: Standard = monatlich */
.price-yearly, .price-note-yearly { display: none; }
.billing-toggle:checked ~ .pricing-grid .price-monthly { display: none; }
.billing-toggle:checked ~ .pricing-grid .price-yearly { display: inline; }
.billing-toggle:checked ~ .pricing-grid .price-note-monthly { display: none; }
.billing-toggle:checked ~ .pricing-grid .price-note-yearly { display: inline; }

/* ---------- Preis-Karten ---------- */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 3vw, 32px);
    align-items: stretch;
}

.price-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--neutral);
    border-radius: 20px;
    padding: clamp(28px, 3.2vw, 40px);
    display: flex;
    flex-direction: column;
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.3s;
}
.price-card:hover { transform: translateY(-6px); box-shadow: 0 18px 50px rgba(33, 12, 2, 0.09); }

.price-card--popular {
    border: 2px solid var(--accent);
    box-shadow: 0 18px 50px rgba(196, 33, 33, 0.10);
}
.price-card--popular:hover { border-color: var(--accent); }

.popular-badge {
    position: absolute;
    top: -14px; left: 50%;
    transform: translateX(-50%);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: var(--accent);
    color: #fff;
    padding: 7px 16px;
    border-radius: 999px;
    white-space: nowrap;
}

.price-card h3 { font-size: clamp(21px, 2.2vw, 26px); margin-bottom: 8px; }
.price-desc { color: var(--muted); font-size: 15px; min-height: 3.2em; }

.price { display: flex; align-items: baseline; gap: 8px; margin-top: 20px; }
.price-value { font-size: clamp(38px, 4.4vw, 52px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.price-per { color: var(--muted); font-size: 15px; }
.price-note {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-top: 8px;
    margin-bottom: 22px;
    min-height: 1.4em;
}

.feature-list { list-style: none; margin-bottom: 28px; }
.feature-list li {
    padding: 11px 0 11px 30px;
    border-top: 1px solid var(--neutral);
    position: relative;
    font-size: 15.5px;
}
.feature-list li::before {
    content: "";
    position: absolute; left: 2px; top: 19px;
    width: 14px; height: 8px;
    border-left: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(-45deg);
}
.price-card .btn { margin-top: auto; }

.feature-list a {
    color: var(--espresso);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--neutral);
    text-underline-offset: 3px;
    transition: color 0.3s, text-decoration-color 0.3s;
}
.feature-list a:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* ---------- Alle Produkte ---------- */

.product-cat {
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--espresso);
    display: flex;
    align-items: center;
    gap: 14px;
    margin: clamp(40px, 6vw, 64px) 0 24px;
}

.product-cat:first-of-type { margin-top: 0; }
.product-cat::before { content: ""; width: 34px; height: 2px; background: var(--accent); }

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: clamp(40px, 6vw, 64px);
}

.product-grid--2 { grid-template-columns: repeat(2, 1fr); }
.product-grid:last-of-type { margin-bottom: 0; }

.product-price {
    font-size: clamp(24px, 2.4vw, 30px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-top: 14px;
}

.product-price span {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0;
    margin-left: 4px;
}

.product-desc { color: var(--muted); font-size: 15px; margin: 10px 0 18px; }

/* ---------- Artikel (Ratgeber) ---------- */

.legal table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0 28px;
    font-size: 15px;
}

.legal th, .legal td {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid var(--neutral);
    vertical-align: top;
}

.legal th {
    font-size: 12.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--espresso);
    border-bottom: 2px solid var(--espresso);
}

.legal tbody tr:hover { background: rgba(33, 12, 2, 0.02); }

.legal ol { list-style: none; counter-reset: item; margin: 0 0 20px; }
.legal ol li {
    counter-increment: item;
    position: relative;
    padding-left: 38px;
    margin-bottom: 12px;
    color: var(--muted);
}
.legal ol li::before {
    content: counter(item, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 2px;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--accent);
}
.legal ol li strong { color: var(--espresso); font-weight: 650; }

/* ---------- Leistungen ---------- */

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(24px, 3vw, 40px);
    margin-top: 8px;
}
.service-item { border-top: 2px solid var(--espresso); padding-top: 20px; }
.service-item .s-kicker {
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}
.service-item h3 { font-size: 19px; margin-bottom: 8px; }
.service-item p { font-size: 15px; color: var(--muted); }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--neutral); }
.faq-item { border-bottom: 1px solid var(--neutral); }
.faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 24px 8px;
    font-size: clamp(17px, 1.8vw, 19px);
    font-weight: 650;
    letter-spacing: -0.01em;
    transition: color 0.3s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-icon {
    flex-shrink: 0;
    width: 32px; height: 32px;
    border: 1.5px solid var(--espresso);
    border-radius: 50%;
    position: relative;
    transition: transform 0.45s var(--ease), background 0.3s, border-color 0.3s;
}
.faq-icon::before, .faq-icon::after {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    background: currentColor;
}
.faq-icon::before { width: 12px; height: 1.5px; transform: translate(-50%, -50%); }
.faq-icon::after { width: 1.5px; height: 12px; transform: translate(-50%, -50%); transition: opacity 0.3s; }
.faq-item[open] .faq-icon { transform: rotate(180deg); background: var(--accent); border-color: var(--accent); color: #fff; }
.faq-item[open] .faq-icon::after { opacity: 0; }
.faq-a p { padding: 0 8px 26px; color: var(--muted); max-width: 68ch; }

/* ---------- CTA ---------- */

.cta-section { text-align: center; }
.cta-section h2 { margin-left: auto; margin-right: auto; max-width: 16ch; }
.cta-section .lead { margin: 0 auto 36px; }
.cta-note {
    margin-top: 20px;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

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

.footer { background: var(--espresso); color: var(--cream); padding: clamp(48px, 7vw, 80px) 0 36px; }
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(250, 247, 241, 0.18);
}
.footer-tagline { margin-top: 16px; color: rgba(250, 247, 241, 0.65); font-size: 15px; max-width: 36ch; }
.footer h4 {
    font-family: var(--mono);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(250, 247, 241, 0.55);
    margin-bottom: 16px;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 9px; }
.footer ul a {
    color: rgba(250, 247, 241, 0.85);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
}
.footer ul a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom {
    padding-top: 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13.5px;
    color: rgba(250, 247, 241, 0.55);
}

/* ---------- Abuse-Seite ---------- */

.page-hero {
    padding: calc(74px + clamp(48px, 8vh, 90px)) 0 clamp(48px, 7vw, 80px);
}
.page-hero .lead { margin-top: 24px; max-width: 58ch; }

.abuse-contact {
    background: #fff;
    border: 2px solid var(--espresso);
    border-radius: 20px;
    padding: clamp(28px, 4vw, 44px);
    text-align: center;
}
.abuse-contact h3 { font-size: clamp(21px, 2.4vw, 26px); margin-bottom: 10px; }
.abuse-contact p { color: var(--muted); max-width: 52ch; margin: 0 auto 26px; }
.abuse-contact .btn { font-family: var(--mono); font-size: 15px; letter-spacing: 0.04em; }
.abuse-note {
    margin-top: 18px;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 3vw, 32px);
    counter-reset: step;
}
.step-item {
    position: relative;
    border-top: 2px solid var(--espresso);
    padding-top: 20px;
    counter-increment: step;
}
.step-item::before {
    content: counter(step, decimal-leading-zero);
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.18em;
    color: var(--accent);
    display: block;
    margin-bottom: 10px;
}
.step-item h3 { font-size: 19px; margin-bottom: 8px; }
.step-item p { font-size: 15px; color: var(--muted); }

.info-list { list-style: none; border-top: 1px solid var(--neutral); max-width: 720px; margin: 0 auto; }
.info-list li {
    padding: 14px 8px 14px 30px;
    border-bottom: 1px solid var(--neutral);
    position: relative;
    font-size: 16px;
}
.info-list li::before {
    content: "";
    position: absolute; left: 4px; top: 24px;
    width: 14px; height: 8px;
    border-left: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(-45deg);
}
.info-list li strong { font-weight: 650; }

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
    .pricing-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
    .services-grid { grid-template-columns: 1fr 1fr; }
    .steps-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
    .hero-trust { grid-template-columns: 1fr 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { max-width: 460px; margin: 0 auto; width: 100%; }
    .product-grid, .product-grid--2 { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 760px) {
    .nav-links { display: none; }
    .nav-inner .btn { display: none; }
    .services-grid { grid-template-columns: 1fr; }
    .hero-trust { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

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