/*
 * NhPanel site.css – Feinschliff der öffentlichen nexthosting.net-Seiten (Track w, 2026-09-30).
 *
 * Eingebunden in storefront/layouts/meta.twig (Block layouts_head_custom_css) NACH dem Theme-CSS, nur auf
 * öffentlichen Seiten (nie storefront.account*, nie in Teil-Antworten von nav.js). Schalter NH_PANEL_PERF_SITE_CSS.
 *
 * Grundsatz: kein neues Design. Die CMS-Landingpages (VPS, Webspace, Domains, Kontakt, FAQ, AGB, …) bringen ihr
 * eigenes Inline-CSS mit (NH Sans = DM Sans, Indigo, Pill-Buttons 48–56 px). Hier werden nur die Stellen angeglichen,
 * die aus dem Hostware-/Theme-Layer kommen und optisch aus der Reihe fallen: Promo-Leiste, Header-Akzent, das
 * Hostware-Kontaktformular auf CMS-Seiten, Footer, Blog-Paginierung. Alle Selektoren sind so spezifisch, dass sie
 * die Inline-Styles im Body schlagen, ohne CMS-Inhalte umzugestalten.
 */

:root {
    --nh-site-brand: #5143d9;          /* = --bs-primary / Promo-Leiste / Checkout */
    --nh-site-brand-ink: #4133b8;      /* Hover / Text auf hellem Grund */
    --nh-site-brand-soft: rgba(81, 67, 217, .12);
    --nh-site-ink: #0b1020;
    --nh-site-muted: #5a6478;
    --nh-site-line: #dcdfe7;
}

/* ── Promo-Leiste (core layouts/promotions.twig) ─────────────────────────────────────────────────────────
   Vorher: 16 px Text in einer 24 px hohen Leiste ohne Innenabstand; mobil drei Zeilen = 72 px über dem Header. */
.hw-promotion-bar {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: .01em;
}
.hw-promotion-bar .navbar {
    min-height: 0;
    padding: 7px 16px;
}
@media (max-width: 767.98px) {
    .hw-promotion-bar { font-size: 13px; }
    .hw-promotion-bar .navbar { padding: 6px 14px; }
}

/* ── Header (booking layouts/navigation.twig) ────────────────────────────────────────────────────────────
   Vorher: Akzent #2558d9 (Blau) für Hover/aktive Einträge und Icons, direkt unter der violetten Promo-Leiste
   und über Seiten, die durchgehend Indigo/Violett nutzen. Token statt Einzelregeln; die ID hebt die Spezifität
   über das Inline-<style> der Navigation. */
header.nh-header#nh-navigation {
    --nh-accent: var(--nh-site-brand);
    --nh-tint: #f4f3fd;
}
header.nh-header#nh-navigation .nh-category[aria-selected="true"] { background: #ecebfb; }
header.nh-header#nh-navigation .nh-text-link:hover { color: var(--nh-site-brand-ink); }
header.nh-header#nh-navigation .nh-utility-nav .nh-register:hover { background: #2b3e61; }

/* ── Hostware-Kontaktformular in CMS-Seiten (/kontakt, cms-element hw-contact-form) ─────────────────────
   Vorher: unformatierte Labels (16 px/400, kein Abstand), 44 px Felder, Checkbox 16 px, Absende-Button als
   1200 px breiter Farbverlauf (Blau→Indigo, 40 px hoch, Radius 12) zwischen 48 px Pill-Buttons der Seite; mobil
   ragte die Bootstrap-.row 15 px über den Viewport (scrollWidth 390 bei 375). */
.cms-element-type-hw-contact-form .row {
    margin-left: -8px;
    margin-right: -8px;
}
.cms-element-type-hw-contact-form .row > [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
}
@media (max-width: 767.98px) {
    .cms-element-type-hw-contact-form { padding-left: 16px; padding-right: 16px; }
}
.cms-element-type-hw-contact-form .form-group { margin-bottom: 18px; }
.cms-element-type-hw-contact-form label:not(.form-check-label) {
    display: block;
    margin-bottom: 6px;
    color: #2b2f38;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: .01em;
}
.cms-element-type-hw-contact-form .form-control {
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid var(--nh-site-line) !important;
    border-radius: 12px !important;
    color: var(--nh-site-ink);
    font-size: 15px;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.cms-element-type-hw-contact-form .form-control:hover:not(:focus) { border-color: #c3c9d6 !important; }
.cms-element-type-hw-contact-form .form-control:focus {
    border-color: var(--nh-site-brand) !important;
    box-shadow: 0 0 0 3px var(--nh-site-brand-soft) !important;
}
.cms-element-type-hw-contact-form textarea.form-control {
    min-height: 150px;
    line-height: 1.6;
    resize: vertical;
}
.cms-element-type-hw-contact-form .form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 18px;
    padding-left: 0;
}
.cms-element-type-hw-contact-form .form-check-input {
    flex: 0 0 auto;
    float: none;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    border-color: #b9c0cf;
    accent-color: var(--nh-site-brand);
}
.cms-element-type-hw-contact-form .form-check-input:checked {
    background-color: var(--nh-site-brand);
    border-color: var(--nh-site-brand);
}
.cms-element-type-hw-contact-form .form-check-label {
    color: var(--nh-site-muted);
    font-size: 14px;
    line-height: 1.5;
}
.cms-element-type-hw-contact-form .h-captcha,
.cms-element-type-hw-contact-form .g-recaptcha,
.cms-element-type-hw-contact-form .cf-turnstile { margin-bottom: 18px; }
.cms-element-type-hw-contact-form .btn.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    min-width: 220px;
    min-height: 48px;
    padding: 12px 26px;
    border: 0;
    border-radius: 999px;
    background: var(--nh-site-brand);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    box-shadow: none !important;
    transform: none;
}
.cms-element-type-hw-contact-form .btn.btn-primary:hover,
.cms-element-type-hw-contact-form .btn.btn-primary:focus {
    background: var(--nh-site-brand-ink);
    color: #fff;
    filter: none;
    transform: none;
}
.cms-element-type-hw-contact-form .btn.btn-primary:focus-visible {
    outline: 2px solid var(--nh-site-brand);
    outline-offset: 3px;
}
.cms-element-type-hw-contact-form .btn.btn-primary .mr-2 { margin-right: 0 !important; }
@media (max-width: 575.98px) {
    .cms-element-type-hw-contact-form .btn.btn-primary { width: 100%; }
}

/* ── Hostware-Standardbuttons auf CMS-/Kategorie-/Wissensseiten ──────────────────────────────────────────
   Vorher (nh-custom.css): Farbverlauf Bootstrap-Blau #0d6efd → Indigo mit Schlagschatten – die einzige Stelle,
   an der dieses Blau vorkommt. Solide Markenfarbe wie in Promo-Leiste und Checkout. Produkt-, Warenkorb- und
   Kontoseiten sind bewusst nicht erfasst (eigene Stylesheets). */
body[class*="page-cms-page"] .btn-primary,
body.page-category-detail .btn-primary,
body[class*="page-knowledge"] .btn-primary {
    background: var(--nh-site-brand);
    border-color: var(--nh-site-brand);
    box-shadow: none;
}
body[class*="page-cms-page"] .btn-primary:hover:not(:disabled):not(.disabled),
body.page-category-detail .btn-primary:hover:not(:disabled):not(.disabled),
body[class*="page-knowledge"] .btn-primary:hover:not(:disabled):not(.disabled) {
    background: var(--nh-site-brand-ink);
    border-color: var(--nh-site-brand-ink);
    box-shadow: none !important;
    filter: none;
}

/* ── Blog-/Hilfe-Paginierung ──────────────────────────────────────────────────────────────────────────── */
body[class*="page-knowledge"] .pagination .page-link {
    color: var(--nh-site-brand);
    font-weight: 600;
}
body[class*="page-knowledge"] .pagination .page-item.active .page-link {
    background: var(--nh-site-brand);
    border-color: var(--nh-site-brand);
    box-shadow: none;
    color: #fff;
}

/* ── Footer (booking layouts/footer.twig) ────────────────────────────────────────────────────────────────
   Vorher: Spaltentitel und Links in derselben Farbe (rgba 255,255,255,.75), Links 16 px ohne Hover-Zustand,
   „Vertrag widerrufen“ als Verlaufs-Button mit Schatten, Fußzeile 14 px in 60 px Höhe; mobil 1483 px hoch,
   Legal-Spalte (9 Links + Button) in 188 px Breite, Fußzeile zentriert. */
@media (min-width: 768px) {
    footer.bg-dark .container > .row.gy-4 { --bs-gutter-y: 2rem; }
}
footer.bg-dark h6.text-muted {
    margin-bottom: 14px;
    color: rgba(255, 255, 255, .5) !important;
    font-size: 12px !important; /* h6.small: Theme setzt 14 px mit höherer Spezifität */
    font-weight: 700;
    letter-spacing: .12em;
}
footer.bg-dark ul.list-unstyled a.text-muted {
    display: block;
    padding: 3px 0;
    margin-bottom: 2px !important;
    color: rgba(255, 255, 255, .74) !important;
    font-size: 15px;
    line-height: 1.45;
    transition: color .15s ease;
}
footer.bg-dark ul.list-unstyled a.text-muted:hover,
footer.bg-dark ul.list-unstyled a.text-muted:focus-visible {
    color: #fff !important;
}
footer.bg-dark a:focus-visible {
    outline: 2px solid rgba(255, 255, 255, .8);
    outline-offset: 2px;
    border-radius: 4px;
}
footer.bg-dark p.text-muted.small {
    color: rgba(255, 255, 255, .66) !important;
    font-size: 14px;
    line-height: 1.5;
}
footer.bg-dark .small.text-uppercase.text-muted {
    color: rgba(255, 255, 255, .5) !important;
    font-size: 12px;
}
footer.bg-dark .nh-footer-trust-card {
    background: rgba(255, 255, 255, .03);
    border-color: rgba(255, 255, 255, .08);
}
footer.bg-dark .nh-footer-legal-cta .nh-footer-withdraw-link {
    max-width: none;
    width: auto;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 10px;
    background: transparent;
    color: rgba(255, 255, 255, .9) !important;
    font-size: 13px;
    font-weight: 600;
    box-shadow: none;
}
footer.bg-dark .nh-footer-legal-cta .nh-footer-withdraw-link:hover,
footer.bg-dark .nh-footer-legal-cta .nh-footer-withdraw-link:focus-visible {
    background: rgba(255, 255, 255, .07);
    border-color: rgba(255, 255, 255, .45);
    color: #fff !important;
    transform: none;
    box-shadow: none;
}
footer.bg-dark .hw-powered-by { opacity: .6; }
footer.bg-dark .bg-black > .container > .d-flex {
    gap: 6px 24px;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
}
footer.bg-dark .bg-black .small {
    color: rgba(255, 255, 255, .5) !important;
    font-size: 13px;
    line-height: 1.5;
}

@media (min-width: 992px) {
    /* Legal-Spalte breiter (3/12 statt 2/12), Support schmaler: „Akzeptable Nutzungsrichtlinie (AUP)“,
       „Widerrufsbelehrung“ & Co. brechen in 200 px um, die fünf Support-Links brauchen keine 300 px. */
    footer.bg-dark .container > .row.gy-4 > .col-6.col-lg-2:nth-child(4) { flex: 0 0 25%; max-width: 25%; }
    footer.bg-dark .container > .row.gy-4 > .col-6.col-lg-3 { flex: 0 0 16.6667%; max-width: 16.6667%; }
}
@media (max-width: 991.98px) {
    footer.bg-dark .container > .row.gy-4 > .col-12.col-lg-3 { margin-bottom: 8px; }
}
@media (max-width: 767.98px) {
    /* Firmenspalte: Trustpilot und Sicherheitsbadge nebeneinander statt untereinander (spart ~120 px) */
    footer.bg-dark .container > .row.gy-4 > .col-12.col-lg-3 > .mb-3 {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 16px;
    }
    footer.bg-dark .container > .row.gy-4 > .col-12.col-lg-3 > .mb-3 > a,
    footer.bg-dark .container > .row.gy-4 > .col-12.col-lg-3 > .mb-3 > p { grid-column: 1 / -1; }
    footer.bg-dark .container > .row.gy-4 > .col-12.col-lg-3 > .mb-3 > .mt-3 {
        min-width: 0;
        padding-top: 0;
        border-top: 0 !important;
    }
    /* Legal (4. Spalte) und Support (5.) auf volle Breite, Links zweispaltig: keine umbrechenden Link-Texte mehr */
    footer.bg-dark .container > .row.gy-4 > .col-6.col-lg-2:nth-child(4),
    footer.bg-dark .container > .row.gy-4 > .col-6.col-lg-3 {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }
    footer.bg-dark .container > .row.gy-4 > .col-6.col-lg-2:nth-child(4) ul,
    footer.bg-dark .container > .row.gy-4 > .col-6.col-lg-3 ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 16px;
    }
    footer.bg-dark .nh-footer-trust-card { max-width: 100%; }
    footer.bg-dark .bg-black > .container > .d-flex {
        align-items: flex-start !important;
        text-align: left;
    }
    footer.bg-dark .bg-black > .container > .d-flex > div { text-align: left !important; }
}

@media (prefers-reduced-motion: reduce) {
    .cms-element-type-hw-contact-form .form-control,
    footer.bg-dark ul.list-unstyled a.text-muted { transition: none; }
}
