/* Zahnexa Design-System – gemeinsame Basis-Styles für alle Seiten
   Tokens: design/zahnexa-design-dna.json */
:root {
    --zx-navy: #033D53;
    --zx-text: #4A6D7A;
    --zx-cta: #0092C8;
    --zx-cta-hover: #007FAF;
    --zx-cta-gradient: linear-gradient(90deg, #19ABE3 0%, #0092C8 100%);
    --zx-accent: #F07D00;
    --zx-surface: #EFF5FA;
    --zx-border: #DCE6EE;
    --zx-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--zx-font);
    color: #333333;
    background: #FFFFFF;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--zx-navy); letter-spacing: 0; overflow-wrap: break-word; hyphens: auto; }

/* Primäre Buttons: blauer Verlauf wie im Referenzportal */
.bg-cta,
.btn-cta.bg-cta,
.btn-primary.bg-cta {
    background-image: var(--zx-cta-gradient);
}
.bg-cta:hover,
.hover\:bg-cta-hover:hover {
    background-image: none;
    background-color: var(--zx-cta-hover);
}
.btn-cta,
.btn-primary {
    box-shadow: none;
    transition: background-color 0.2s ease-out, transform 0.12s ease-out;
}
.btn-cta:hover,
.btn-primary:hover { transform: none; box-shadow: none; }
.btn-cta:active,
.btn-primary:active { transform: translateY(1px); }

/* Sekundärer Button: weiß mit blauer 2px-Kontur */
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--zx-cta);
    border-radius: 8px;
    background: #FFFFFF;
    color: var(--zx-cta);
    font-weight: 600;
    transition: background-color 0.2s ease-out;
}
.btn-outline:hover { background: #E5F4FA; }

/* Hellblaues Band zwischen Hero und Inhalt */
.zx-claim-bar {
    background: var(--zx-cta);
    color: #FFFFFF;
    border-radius: 6px;
    font-weight: 700;
    text-align: center;
}

/* Formulare */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
    font-family: var(--zx-font);
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: none;
    border-color: var(--zx-cta) !important;
    box-shadow: 0 0 0 3px rgba(0, 146, 200, 0.15) !important;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--zx-cta);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Einheitliches Eingabefeld */
.zx-input {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 14px;
    background: #FFFFFF;
    border: 1px solid var(--zx-border);
    border-radius: 6px;
    color: var(--zx-navy);
    font-size: 16px;
    transition: border-color 0.2s ease-out, box-shadow 0.2s ease-out;
}
.zx-input::placeholder { color: #93A7B3; }
.zx-input:hover { border-color: #A9BCC6; }
.zx-input:focus {
    outline: none;
    border-color: var(--zx-cta);
    box-shadow: 0 0 0 3px rgba(0, 146, 200, 0.15);
}
textarea.zx-input { height: auto; padding-top: 12px; padding-bottom: 12px; }

/* Ratgeber-Artikel */
.zx-prose { color: var(--zx-text); font-size: 17px; line-height: 1.65; }
.zx-prose h2 { font-size: 24px; font-weight: 700; line-height: 1.3; margin: 2.2em 0 0.6em; }
.zx-prose h2:first-child { margin-top: 0; }
.zx-prose h3 { font-size: 19px; font-weight: 700; margin: 1.6em 0 0.5em; }
.zx-prose p { margin: 0 0 1em; }
.zx-prose strong { color: var(--zx-navy); }
.zx-prose ul, .zx-prose ol { margin: 0 0 1.2em; padding: 0; }
.zx-prose ul li {
    list-style: none;
    position: relative;
    padding-left: 30px;
    margin-bottom: 0.5em;
}
.zx-prose ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F07D00' stroke-width='2.2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M8 12.5l2.5 2.5L16 9.5'/%3E%3C/svg%3E") no-repeat center / contain;
}
.zx-prose ol { counter-reset: zx; }
.zx-prose ol li {
    list-style: none;
    counter-increment: zx;
    position: relative;
    padding-left: 38px;
    margin-bottom: 0.7em;
}
.zx-prose ol li::before {
    content: counter(zx);
    position: absolute;
    left: 0;
    top: 0.05em;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--zx-cta);
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.zx-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2em 0 1.4em;
    font-size: 15px;
    border: 1px solid var(--zx-border);
    border-radius: 8px;
    border-style: hidden;
    box-shadow: 0 0 0 1px var(--zx-border);
}
.zx-prose thead th { background: var(--zx-surface); color: var(--zx-navy); text-align: left; font-weight: 700; }
.zx-prose th, .zx-prose td { padding: 10px 14px; border-bottom: 1px solid var(--zx-border); }
@media (min-width: 640px) { .zx-prose td:last-child, .zx-prose th:last-child { white-space: nowrap; } }
.zx-prose tbody tr:last-child td { border-bottom: 0; }
.zx-prose .zx-note {
    background: #FDF6EE;
    border-left: 4px solid var(--zx-accent);
    border-radius: 6px;
    padding: 14px 18px;
    margin: 1.4em 0;
    font-size: 16px;
}
.zx-prose a:not(.btn-cta) { color: var(--zx-cta); text-decoration: underline; }

/* Anker unter dem Sticky-Header nicht verdecken */
section[id], h2[id] { scroll-margin-top: 120px; }
