/* Abnehmspritze.de – Clean Healthcare Design System */


/* 1) CSS Variables */

:root {
    /* Brand & Text */
    --brand-600: #0F766E;
    --brand-700: #0B5F5B;
    --accent-500: #58C271;
    --accent-600: #3EA45A;
    --text-900: #0F172A;
    --text-700: #334155;
    --muted-500: #64748B;
    /* Surfaces & Borders */
    --bg-50: #F8FAFC;
    --bg-100: #F1F5F9;
    --surface: #FFFFFF;
    --border-200: #E2E8F0;
    --focus: #22D3EE;
    /* Radii */
    --radius-sm: .5rem;
    --radius-md: .75rem;
    --radius-lg: 1rem;
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(2, 8, 23, .06);
    --shadow-md: 0 6px 16px rgba(2, 8, 23, .08);
    --shadow-lg: 0 10px 30px rgba(2, 8, 23, .12);
    /* Spacing scale */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;
}

@media (prefers-color-scheme: dark) {
     :root {
        --surface: #0B1220;
        --bg-50: #050A14;
        --bg-100: #0B1220;
        --text-900: #E5E7EB;
        --text-700: #CBD5E1;
        --border-200: #1E293B;
        /* Dark: lighter shadows */
        --shadow-sm: 0 1px 2px rgba(2, 8, 23, .25);
        --shadow-md: 0 6px 16px rgba(2, 8, 23, .28);
        --shadow-lg: 0 10px 30px rgba(2, 8, 23, .34);
    }
}


/* 2) Modern CSS Reset (minimal, CLS-safe) */

* {
    box-sizing: border-box
}

html {
    hanging-punctuation: first allow-end;
    text-rendering: optimizeLegibility
}

html,
body {
    margin: 0;
    padding: 0
}

body {
    font-family: ui-sans-serif, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    color: var(--text-900);
    background: radial-gradient(1200px 600px at 10% -10%, color-mix(in oklab, var(--brand-600) 8%, transparent) 0%, transparent 60%), radial-gradient(1000px 500px at 90% 0%, color-mix(in oklab, var(--accent-500) 10%, transparent) 0%, transparent 60%), var(--bg-50);
    line-height: 1.65
}

img,
svg,
video {
    display: block;
    max-width: 100%;
    height: auto
}

input,
button,
textarea,
select {
    font: inherit
}

ul,
ol {
    margin: 0;
    padding-left: 1.25rem
}

:target {
    scroll-margin-top: 80px
}


/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important
    }
}


/* 3) Typography */

body {
    font-size: 17px
}

@media (min-width:768px) {
    body {
        font-size: 18px
    }
}

main {
    max-width: 70ch
}

.container main {
    max-width: none
}

:where(p, ul, ol) {
    margin-block: var(--space-4)
}

:where(h1, h2, h3) {
    line-height: 1.25;
    margin: 0 0 .25em
}

:where(h1)+p {
    margin-top: .25em
}

h1 {
    font-size: clamp(2.2rem, 3vw, 2.6rem)
}

h2 {
    font-size: clamp(1.6rem, 2.2vw, 1.8rem)
}

h3 {
    font-size: clamp(1.25rem, 1.8vw, 1.4rem)
}


/* 4) Layout */

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1rem
}

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: saturate(1.1) blur(6px);
    background: #FDFCFC;
    border-bottom: 1px solid var(--border-200)
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    padding-block: var(--space-2);
    flex-wrap: wrap
}

.nav img {
    max-height: 64px;
    margin-right: var(--space-6)
}

@media (min-width:768px) {
    .nav img {
        max-height: 80px
    }
}

@media (min-width:1280px) {
    .nav img {
        max-height: 90px
    }
}

.nav a {
    color: var(--text-900);
    font-weight: 600;
    font-size: .95rem
}

@media (min-width:768px) {
    .nav a {
        font-size: 1.05rem
    }
}

@media (min-width:1024px) {
    .nav {
        padding-block: 0
    }
}

.nav a[aria-current="page"] {
    color: var(--brand-600)
}

main {
    padding-block: var(--space-7)
}


/* Extra gap between sticky header and content */

.header+main {
    margin-top: 50px
}

.section {
    margin-block: var(--space-7)
}

.flow>*+* {
    margin-top: var(--space-4)
}


/* Page background accents (very subtle) */

.page-bg {
    background: radial-gradient(1200px 600px at 10% -10%, color-mix(in oklab, var(--brand-600) 8%, transparent) 0%, transparent 60%), radial-gradient(1000px 500px at 90% 0%, color-mix(in oklab, var(--accent-500) 10%, transparent) 0%, transparent 60%), var(--bg-50)
}


/* Skip link */

.skip-link {
    position: absolute;
    left: 8px;
    top: 8px;
    transform: translateY(-150%);
    background: #000;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    z-index: 1000
}

.skip-link:focus {
    transform: translateY(0)
}


/* Cards */

.card {
    background: var(--surface);
    border: 1px solid var(--border-200);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    box-shadow: var(--shadow-sm)
}

.card:hover {
    box-shadow: var(--shadow-md);
    transition: box-shadow 180ms ease
}


/* Grid */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-4)
}


/* Links */

a {
    color: var(--brand-600);
    text-decoration: underline;
    text-underline-offset: 2px
}

a:hover {
    color: var(--brand-700)
}

a:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
    border-radius: 6px
}


/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: .625rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-200);
    background: var(--surface);
    color: var(--text-900);
    box-shadow: var(--shadow-sm);
    transition: transform 160ms ease, box-shadow 160ms ease
}

.btn:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px)
}

.btn:active {
    box-shadow: var(--shadow-sm);
    transform: translateY(0);
    box-shadow: inset 0 0 0 1px rgba(2, 8, 23, .08)
}

.btn--primary {
    background: linear-gradient(180deg, color-mix(in oklab, var(--brand-600) 90%, white) 0%, var(--brand-600) 100%);
    color: white;
    border-color: transparent
}

.btn--primary:hover {
    filter: saturate(1.05)
}

.btn--ghost {
    background: transparent
}


/* CTA Module */

.cta-module {
    background: var(--surface);
    border: 1px solid var(--border-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--space-6);
}

.cta-module__title {
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    font-weight: 800;
    margin: 0 0 var(--space-5)
}

.cta-module__actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    align-items: stretch;
    margin-bottom: var(--space-4)
}

.cta-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 88px;
    min-width: 260px;
    padding: 16px 24px;
    border-radius: 14px;
    border: 1px solid var(--border-200);
    background: var(--surface);
    color: var(--text-900);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 160ms ease, transform 160ms ease
}

.cta-btn:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px)
}

.cta-btn--primary {
    background: linear-gradient(180deg, color-mix(in oklab, var(--brand-600) 90%, white) 0%, var(--brand-600) 100%);
    color: #fff;
    border-color: transparent
}

.cta-btn__title {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center
}

.cta-btn__meta {
    margin-top: 6px;
    font-weight: 600;
    color: var(--text-700)
}

.cta-btn--primary .cta-btn__meta {
    color: #E6FAF2
}

.cta-module__more {
    color: var(--text-700);
    margin: 0
}


/* Badges */

.badge {
    display: inline-block;
    font-size: .8rem;
    padding: .25rem .5rem;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(90deg, var(--brand-600), var(--accent-500));
    box-shadow: var(--shadow-sm)
}


/* Notes */

.note {
    border-left: 4px solid var(--border-200);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-sm)
}

.note.info {
    border-left-color: var(--brand-600);
    background: color-mix(in oklab, var(--brand-600) 6%, var(--surface))
}

.note.warning {
    border-left-color: #f59e0b;
    background: color-mix(in oklab, #f59e0b 6%, var(--surface))
}

.note.success {
    border-left-color: var(--accent-500);
    background: color-mix(in oklab, var(--accent-500) 6%, var(--surface))
}


/* Breadcrumb */

.breadcrumb {
    color: var(--muted-500);
    font-size: .9rem
}

.breadcrumb a {
    color: inherit
}

.breadcrumb .sep {
    margin: 0 .35rem
}


/* Footer */

.footer {
    border-top: 1px solid var(--border-200);
    color: var(--text-700);
    padding-block: var(--space-5);
    font-size: .95rem
}

.footer .links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3)
}


/* Tables */

.table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--surface);
    border: 1px solid var(--border-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm)
}

.table caption {
    caption-side: top;
    text-align: left;
    color: var(--muted-500);
    padding: var(--space-3) var(--space-4)
}

.table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--bg-100);
    border-bottom: 1px solid var(--border-200);
    text-align: left;
    font-weight: 700
}

.table th,
.table td {
    padding: 14px 16px;
    vertical-align: top
}

.table tbody tr:nth-child(even) {
    background: color-mix(in oklab, var(--bg-100) 70%, transparent)
}

.table tbody tr td+td,
.table thead th+th {
    border-left: 1px solid var(--border-200)
}

.table tbody th:first-child {
    font-weight: 600;
    color: var(--text-900)
}


/* Scrollbar for horizontal tables (WebKit) */

.table-wrap::-webkit-scrollbar {
    height: 10px
}

.table-wrap::-webkit-scrollbar-thumb {
    background: color-mix(in oklab, var(--text-700) 20%, transparent);
    border-radius: 999px
}


/* Utilities */

.visually-hidden,
.sr-only {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap
}


/* 5) Print Styles */

@media print {
     :root {
        --text-900: #000;
        --text-700: #000;
        --surface: #fff;
        --bg-50: #fff;
        --border-200: #000
    }
    body {
        background: #fff;
        color: #000
    }
    .header,
    .footer,
    .skip-link,
    .btn,
    .nav {
        display: none !important
    }
    a[href]::after {
        content: " (" attr(href) ")"
    }
    .card {
        box-shadow: none;
        border-color: #000
    }
}