:root {
    --bg: #f4f1ec;
    --surface: #fbf9f4;
    --surface-muted: #ece7df;
    --text: #1f201c;
    --muted: #5a5e55;
    --accent: #5f8365;
    --accent-strong: #4c6d53;
    --outline: rgba(41, 44, 38, 0.05);
    --radius: 16px;
    --shadow-soft: 0 18px 35px rgba(46, 52, 39, 0.08);
    --border-soft: var(--outline);
    --shadow-float: var(--shadow-soft);
}

[data-theme="dark"] {
    --bg: #141615;
    --surface: #1d1f1d;
    --surface-muted: #242826;
    --text: #f5f5f0;
    --muted: #b8c1b4;
    --accent: #8fbfa6;
    --accent-strong: #c4e1cf;
    --outline: rgba(191, 205, 193, 0.18);
    --shadow-soft: 0 25px 45px rgba(4, 6, 5, 0.6);
    --border-soft: var(--outline);
    --shadow-float: var(--shadow-soft);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Sora", "Space Grotesk", sans-serif;
    background: var(--bg);
    color: color-mix(in srgb, var(--text) 92%, var(--muted) 8%);
    line-height: 1.6;
    min-height: 100vh;
    padding: 0 1.25rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 0;
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    backdrop-filter: blur(18px);
    transition: transform 250ms ease, opacity 250ms ease;
    will-change: transform, opacity;
}

.site-header.is-hidden {
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
}

.brand span {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: var(--muted);
    text-transform: uppercase;
}

.brand h1 {
    font-size: 1.35rem;
    font-weight: 600;
}

.main-nav {
    display: flex;
    gap: 1.5rem;
    font-weight: 500;
}

.main-nav a {
    text-decoration: none;
    color: var(--text);
    padding-bottom: 0.2rem;
    border-bottom: 2px solid transparent;
    transition: border-color 200ms ease;
}

.main-nav a[aria-current="page"] {
    border-color: var(--accent);
    color: var(--accent-strong);
}

.main-nav a:hover,
.main-nav a:focus-visible {
    border-color: var(--accent);
}

.theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--outline);
    background: var(--surface);
    display: grid;
    place-items: center;
    font-size: 1rem;
    cursor: pointer;
    transition: background 200ms ease;
}

.theme-toggle:hover {
    background: var(--surface-muted);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 4rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: clamp(1.5rem, 4vw, 3rem);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.hero-panel {
    display: flex;
    align-items: stretch;
    position: relative;
    z-index: 0;
}

/* Ensure CTA column stays above overlapping siblings */
.hero > div:first-child {
    position: relative;
    z-index: 2;
}

.hero-card {
    width: 100%;
    background: var(--surface-muted);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--outline);
}

.hero-card ul {
    list-style: none;
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hero-card li {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 0.9rem 0;
    border-top: 1px solid var(--outline);
}

.hero-card li:first-child {
    border-top: none;
}

.hero-card .list-title {
    font-weight: 600;
    color: var(--text);
}

.hero-card .list-desc {
    color: var(--muted);
    text-align: right;
    max-width: 240px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 0.75rem;
}

.hero h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.lead {
    max-width: 60ch;
    color: var(--muted);
}

.cta-row {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.cta-row .btn {
    position: relative;
    z-index: 3;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 150ms ease, opacity 150ms ease;
}

.btn-primary {
    background: var(--accent);
    color: #ffffff;
    border: none;
}

.btn-secondary,
.btn-outline {
    border: 1px solid var(--accent);
    color: var(--accent-strong);
}

.btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.section {
    padding: 2.5rem;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--outline);
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(32px) scale(0.98);
    transition: opacity 0.65s ease, transform 0.75s ease;
    transition-delay: var(--reveal-delay, 0s);
    will-change: opacity, transform;
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

.section-heading {
    max-width: 640px;
    margin-bottom: 1.5rem;
}

.card-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card-grid.small {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.privacy-doc {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.privacy-section {
    padding: 1.4rem 1.6rem;
    border-radius: calc(var(--radius) - 6px);
    border: 1px solid var(--outline);
    background: var(--surface);
    color: color-mix(in srgb, var(--text) 82%, var(--muted) 18%);
}

.privacy-section h4 {
    margin-bottom: 0.65rem;
    font-size: 1.05rem;
}

.privacy-section ul {
    margin: 0.75rem 0 0.5rem 1.25rem;
    display: grid;
    gap: 0.4rem;
    list-style: disc;
}

.pill-card,
.service-card,
.fact-card {
    padding: 1.5rem;
    border-radius: calc(var(--radius) - 4px);
    background: var(--surface-muted);
    border: 1px solid var(--outline);
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}


.service-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pill-card h4,
.service-card h4,
.fact-card h4 {
    margin-bottom: 0.5rem;
}

.pill-card:hover,
.service-card:hover,
.fact-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 20px 35px rgba(30, 35, 32, 0.15);
}

.service-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.fact-card ul {
    list-style: disc;
    padding-left: 1.2rem;
    color: color-mix(in srgb, var(--text) 80%, var(--muted) 20%);
}

.service-card[data-modal-trigger] {
    cursor: pointer;
    outline: none;
    position: relative;
    overflow: hidden;
}

.service-card[data-modal-trigger]:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

.service-card[data-modal-trigger]::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(111, 143, 113, 0.18), transparent 60%);
    opacity: 0;
    transition: opacity 220ms ease;
    pointer-events: none;
}

.service-card[data-modal-trigger]:hover::after,
.service-card[data-modal-trigger]:focus-visible::after {
    opacity: 1;
}

.service-hint {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    color: var(--accent-strong);
    transition: color 160ms ease;
}

.service-hint::after {
    content: '→';
    font-size: 1rem;
    transition: transform 200ms ease;
}

.service-card[data-modal-trigger]:hover .service-hint,
.service-card[data-modal-trigger]:focus-visible .service-hint {
    color: var(--accent);
}

.service-card[data-modal-trigger]:hover .service-hint::after,
.service-card[data-modal-trigger]:focus-visible .service-hint::after {
    transform: translateX(4px);
}

.section-cta {
    margin-top: 1.75rem;
}

.notice-card {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: calc(var(--radius) - 4px);
    background: var(--surface-muted);
    border: 1px dashed var(--accent);
    color: var(--muted);
}

.section-heading + .contact-grid {
    margin-top: 2.5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.contact-card {
    padding: 1.85rem;
    border-radius: var(--radius);
    background: var(--surface-muted);
    border: 1px solid var(--outline);
}

.contact-card h4,
.contact-followup .contact-meta {
    color: var(--accent-strong);
    font-weight: 600;
}

.contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1rem 0;
}

.contact-link {
    color: var(--accent-strong);
    text-decoration: none;
    border-bottom: 1px solid color-mix(in srgb, var(--accent-strong) 40%, transparent);
    transition: color 150ms ease, border-color 150ms ease;
}

.contact-link:hover,
.contact-link:focus-visible {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.contact-followup {
    margin-top: 0.9rem;
    padding-top: 0.25rem;
}

.contact-form {
    padding: 1.5rem;
    border-radius: var(--radius);
    background: var(--surface-muted);
    border: 1px solid var(--outline);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form label {
    font-weight: 600;
    font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--outline);
    background: var(--surface);
    color: var(--text);
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form button {
    align-self: flex-start;
    margin-top: 0.75rem;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.checkbox-row {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.checkbox-row input[type="checkbox"] {
    margin-top: 0.15rem;
    accent-color: var(--accent);
}

.checkbox-row .field-error {
    flex-basis: 100%;
    margin-left: 1.6rem;
}

.field-error {
    min-height: 1.1rem;
    font-size: 0.85rem;
    color: #a33a3a;
    opacity: 0;
    transition: opacity 150ms ease;
}

.field-error.is-visible {
    opacity: 1;
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--accent) 70%, transparent);
    outline-offset: 2px;
}

.contact-form input[aria-invalid="true"],
.contact-form textarea[aria-invalid="true"] {
    border-color: color-mix(in srgb, #a33a3a 55%, var(--border-soft));
}

.form-status {
    min-height: 1.2rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-soft);
    background: var(--surface);
    box-shadow: var(--shadow-float);
    font-size: 0.9rem;
    color: var(--muted);
}

.form-status:empty {
    display: none;
}

.form-status.is-success {
    color: var(--accent-strong);
    border-color: color-mix(in srgb, var(--accent-strong) 50%, var(--border-soft));
}

.form-status.is-error {
    color: #a33a3a;
    border-color: color-mix(in srgb, #a33a3a 55%, var(--border-soft));
}

.contact-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.primary-button {
    background: var(--accent);
    color: #ffffff;
    border: none;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-meta {
    font-size: 0.9rem;
    color: var(--muted);
}

.process-list {
    counter-reset: steps;
    list-style: none;
    display: grid;
    gap: 1.25rem;
}

.process-list li {
    padding-left: 3rem;
    position: relative;
}

.process-list li::before {
    counter-increment: steps;
    content: counter(steps);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--surface-muted);
    border: 1px solid var(--outline);
    display: grid;
    place-items: center;
    font-weight: 600;
    color: var(--accent-strong);
}

.site-footer {
    position: relative;
    max-width: 1200px;
    margin: 3.5rem auto 0;
    padding: 2.8rem 0 2rem;
    border-radius: 0;
    border: none;
    border-top: 1px solid color-mix(in srgb, var(--outline) 50%, transparent);
    background: var(--bg);
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

.footer-scroll-inline {
    position: absolute;
    top: 1.35rem;
    right: 0;
    display: flex;
    justify-content: flex-end;
    padding-right: 0.35rem;
}

.scroll-top-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--outline) 55%, transparent);
    background: color-mix(in srgb, var(--bg) 60%, var(--surface) 40%);
    color: color-mix(in srgb, var(--text) 70%, var(--muted) 30%);
    font-size: 0.95rem;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 160ms ease, transform 160ms ease, border-color 160ms ease, color 160ms ease;
    position: relative;
    overflow: visible;
}

.scroll-top-btn:hover,
.scroll-top-btn:focus-visible {
    opacity: 0.95;
    border-color: var(--accent);
    color: var(--accent-strong);
    transform: translateY(-3px);
}

.scroll-top-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translate(-50%, 4px);
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid color-mix(in srgb, var(--outline) 70%, transparent);
    color: color-mix(in srgb, var(--text) 65%, var(--muted) 35%);
    font-size: 0.7rem;
    line-height: 1.3;
    white-space: nowrap;
    box-shadow: 0 10px 20px rgba(18, 24, 19, 0.08);
    opacity: 0;
    pointer-events: none;
    transition: opacity 120ms ease, transform 120ms ease;
}

.scroll-top-btn:hover::after,
.scroll-top-btn:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, 0);
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 2.25rem;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-left,
.footer-center {
    flex: 1 1 280px;
    min-width: 240px;
    color: color-mix(in srgb, var(--text) 78%, var(--muted) 22%);
    line-height: 1.65;
}

.fancy-brand {
    display: inline-flex;
    gap: 0.1rem;
    font-size: 0.92rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
    color: color-mix(in srgb, var(--text) 68%, var(--muted) 32%);
    position: relative;
    isolation: isolate;
    margin-bottom: 0.4rem;
}

.fancy-brand::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.35rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
    opacity: 0.75;
    transform-origin: left;
    transform: scaleX(0);
    animation: fancyBrandUnderline 4s ease-in-out infinite 1s;
}

.fancy-brand span {
    display: inline-block;
    color: inherit;
    animation: fancyLetterPulse 3.5s ease-in-out infinite;
}

.fancy-brand span:nth-of-type(1) { animation-delay: 0s; }
.fancy-brand span:nth-of-type(2) { animation-delay: 0.2s; }
.fancy-brand span:nth-of-type(3) { animation-delay: 0.4s; }
.fancy-brand span:nth-of-type(4) { animation-delay: 0.6s; }
.fancy-brand span:nth-of-type(5) { animation-delay: 0.8s; }
.fancy-brand span:nth-of-type(6) { animation-delay: 1s; }

@keyframes fancyLetterPulse {
    0%, 75%, 100% {
        color: color-mix(in srgb, var(--text) 68%, var(--muted) 32%);
        transform: translateY(0);
        text-shadow: none;
    }
    35% {
        color: var(--accent-strong);
        transform: translateY(-2px);
        text-shadow: 0 6px 14px color-mix(in srgb, var(--accent) 30%, transparent);
    }
}

@keyframes fancyBrandUnderline {
    0%, 20% {
        transform: scaleX(0);
        opacity: 0;
    }
    30%, 60% {
        transform: scaleX(1);
        opacity: 0.85;
    }
    80%, 100% {
        transform: scaleX(0);
        opacity: 0;
    }
}

.footer-left p {
    margin-top: 0.15rem;
    font-size: 0.9rem;
    color: color-mix(in srgb, var(--text) 70%, var(--muted) 30%);
}

.footer-legal-text {
    font-size: 0.85rem;
    color: color-mix(in srgb, var(--text) 68%, var(--muted) 32%);
    max-width: 36ch;
    line-height: 1.55;
    text-wrap: balance;
}

.footer-response {
    margin-top: 0.35rem;
    font-size: 0.8rem;
    font-style: italic;
    color: color-mix(in srgb, var(--muted) 85%, transparent);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid color-mix(in srgb, var(--outline) 40%, transparent);
}

.footer-copy {
    font-size: 0.82rem;
    color: color-mix(in srgb, var(--text) 68%, var(--muted) 32%);
}

.footer-links {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.85rem;
}

.link-button {
    background: transparent;
    border: none;
    padding: 0;
    font: inherit;
    color: color-mix(in srgb, var(--text) 75%, var(--muted) 25%);
    opacity: 0.7;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 180ms ease, color 180ms ease;
}

.link-button:hover,
.link-button:focus-visible {
    opacity: 1;
    color: var(--accent-strong);
    text-decoration: underline;
}

.link-button:focus-visible {
    outline: 1px solid var(--accent);
    outline-offset: 3px;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(6, 10, 25, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 50;
}

.modal-backdrop[hidden] {
    display: none !important;
}

.modal-panel {
    width: min(640px, 100%);
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--outline);
    box-shadow: var(--shadow-soft);
    padding: 1.5rem;
    max-height: 90vh;
    overflow: auto;
}

.service-modals .modal-panel {
    width: min(860px, 95vw);
    padding: 2rem;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: var(--muted);
}

.modal-body .impressum-note {
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: var(--accent-strong);
    line-height: 1.5;
}

.modal-body a,
.privacy-doc a {
    color: var(--accent-strong);
    text-decoration: none;
    border-bottom: 1px solid color-mix(in srgb, var(--accent-strong) 40%, transparent);
    transition: color 150ms ease, border-color 150ms ease;
}

.modal-body a:hover,
.modal-body a:focus-visible,
.privacy-doc a:hover,
.privacy-doc a:focus-visible {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.full-privacy-hint {
    font-size: 0.9rem;
    color: color-mix(in srgb, var(--text) 70%, var(--muted) 30%);
}

.full-privacy-hint a {
    color: var(--accent-strong);
    text-decoration: none;
}

.modal-close {
    border: none;
    background: var(--surface-muted);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    border: 1px solid var(--outline);
}

.modal-close:hover,
.modal-close:focus-visible {
    background: var(--surface);
}

.no-scroll {
    overflow: hidden;
}


