/* Gemeinsame Website-Styles. Änderungen direkt hier speichern; kein CSS-Build nötig.
   Ergänzende Styles nur für die RADIX-Seite stehen in radix.css. */

/* --- DESIGN SYSTEM & FARBEN --- */

:root {
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --accent-green: rgb(61, 139, 57);
    --accent-green-hover: rgb(47, 109, 44);
    --accent-green-light: rgba(61, 139, 57, 0.08);
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.02);
    --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.01);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 70px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* STICKY ANCHOR OFFSET */

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- LAYOUT CONTAINER --- */

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: clamp(50px, 8vw, 90px) 0;
    scroll-margin-top: calc(var(--header-height) + 10px);
}

/* --- HEADER & NAVIGATION (STICKY) --- */

header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.logo {
    font-weight: 700;
    font-size: clamp(0.95rem, 3.5vw, 1.15rem);
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.01em;
    z-index: 1001;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-green);
}

/* PROMINENTER KONTAKT-BUTTON IM MENÜ */

.nav-links .nav-btn-contact {
    background-color: var(--accent-green);
    color: #ffffff !important;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(61, 139, 57, 0.25);
}

.nav-links .nav-btn-contact:hover {
    background-color: var(--accent-green-hover);
    transform: translateY(-1px);
}

/* Mobile Hamburger Button */

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1003;
    align-self: flex-start;
    margin-top: 14px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* --- HERO SECTION --- */

.hero {
    padding: clamp(60px, 12vw, 120px) 0 clamp(40px, 8vw, 80px);
    text-align: center;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--accent-green-light);
    color: var(--accent-green-hover);
    border: 1px solid rgba(61, 139, 57, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 20px;
}

h1 span {
    color: var(--accent-green);
}

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 760px;
    margin: 0 auto 36px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--accent-green);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
    box-shadow: 0 4px 14px rgba(61, 139, 57, 0.3);
    transition: var(--transition);
    width: 100%;
    max-width: 320px;
}

.btn:hover {
    background-color: var(--accent-green-hover);
    transform: translateY(-2px);
}

/* --- CARD FLOW-IN ANIMATION --- */

.fade-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- T-SHAPE PROFIL --- */

.section-title {
    text-align: center;
    margin-bottom: clamp(30px, 6vw, 60px);
}

.section-title h2 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.section-title p {
    color: var(--text-secondary);
    font-size: clamp(0.95rem, 2vw, 1.05rem);
}

.t-shape-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.t-horizontal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: clamp(20px, 4vw, 32px);
    box-shadow: var(--shadow-sm);
}

.t-horizontal-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.t-grid-horizontal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.t-vertical {
    background: linear-gradient(180deg, var(--accent-green-light) 0%, var(--bg-card) 100%);
    border: 2px solid var(--accent-green);
    border-radius: var(--radius);
    padding: clamp(20px, 4vw, 36px);
    box-shadow: var(--shadow-md);
    position: relative;
}

.t-vertical::before {
    content: "Mein Hauptgebiet";
    position: absolute;
    top: -14px;
    left: 20px;
    background: var(--accent-green);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 12px;
    border-radius: 20px;
}

.skill-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.skill-card h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.skill-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* ERWEITERTE FACHBEGRIFF-ERKLÄRUNG */

.explanation-box {
    margin-top: 24px;
    background: #f1f5f9;
    border-left: 4px solid var(--accent-green);
    padding: 20px;
    border-radius: 0 8px 8px 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.explanation-box strong {
    color: var(--text-primary);
}

.explanation-list {
    margin-top: 12px;
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.explanation-list li {
    position: relative;
    padding-left: 24px;
    line-height: 1.5;
}

.explanation-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: bold;
}

/* --- WORKFLOW BUILDER --- */

.workflow-section {
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.workflow-canvas {
    background: #fafafa;
    background-image: radial-gradient(#e2e8f0 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: clamp(24px, 4vw, 44px) clamp(16px, 3vw, 24px);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.workflow-nodes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: relative;
    z-index: 2;
    max-width: 1060px;
    margin: 0 auto;
    gap: 16px;
}

.node {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px 16px;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.node.active {
    border-color: var(--accent-green);
    box-shadow: 0 0 20px rgba(61, 139, 57, 0.22);
    transform: translateY(-2px);
}

.node-header {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: var(--accent-green);
    background: var(--accent-green-light);
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 10px;
    align-self: flex-start;
}

.node-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.node-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.workflow-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.connection-line {
    stroke: #cbd5e1;
    stroke-width: 2;
    stroke-dasharray: 6;
    fill: none;
}

.connection-pulse {
    stroke: var(--accent-green);
    stroke-width: 3;
    stroke-dasharray: 8 12;
    fill: none;
    animation: flowAnimation 2s linear infinite;
}

@keyframes flowAnimation {
    from {
        stroke-dashoffset: 40;
    }

    to {
        stroke-dashoffset: 0;
    }

}

/* --- BENEFITS --- */

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.benefit-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: clamp(24px, 4vw, 36px) clamp(20px, 3vw, 32px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(61, 139, 57, 0.4);
}

.benefit-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.benefit-card ul {
    list-style: none;
    margin-top: 16px;
}

.benefit-card ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.benefit-card ul li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: bold;
}

/* CASE STUDIES */

.case-studies-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 40px;
}

.case-study {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: clamp(24px, 4vw, 40px);
    box-shadow: var(--shadow-md);
}

.case-study-tag {
    color: var(--accent-green-hover);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.case-study h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    margin: 8px 0 16px;
    letter-spacing: -0.01em;
}

/* --- ÜBER MICH --- */

.about-section {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: clamp(24px, 5vw, 40px);
    align-items: center;
}

.about-image-placeholder {
    width: 100%;
    height: clamp(240px, 40vw, 320px);
    background: linear-gradient(135deg, #f1f5f9 0%, var(--accent-green-light) 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-weight: 600;
    border: 1px solid var(--border-color);
}

.about-text h2 {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 1.05rem;
}

/* --- FOOTER & KONTAKT --- */

footer {
    background: #0f172a;
    color: #ffffff;
    padding: clamp(40px, 6vw, 60px) 0 30px;
    scroll-margin-top: calc(var(--header-height) + 10px);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.footer-info p {
    color: #94a3b8;
    max-width: 450px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-green);
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 20px;
    text-align: center;
    color: #64748b;
    font-size: 0.85rem;
}

/* --- MEDIA QUERIES FOR RESPONSIVENESS --- */

@media (max-width: 992px) {
    .workflow-nodes {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .workflow-svg {
        display: none;
    }

}

@media (max-width: 868px) {
    /* Mobile Nav Dropdown – Überlagert nun das Logo komplett */

    .mobile-toggle {
        display: block;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100vw;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 40px 30px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        transition: var(--transition);
        gap: 28px;
        z-index: 1002;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        font-size: 1.25rem;
    }

    .nav-links .nav-btn-contact {
        width: 100%;
        max-width: 260px;
        text-align: center;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 600px) {
    .workflow-nodes {
        grid-template-columns: 1fr;
    }

    .node:not(:last-child)::after {
        content: "↓";
        display: block;
        text-align: center;
        color: var(--accent-green);
        font-weight: bold;
        font-size: 1.2rem;
        margin-top: 12px;
        margin-bottom: -6px;
    }

    .legal-toc {
        grid-template-columns: 1fr;
    }

    .privacy-accordion summary {
        padding-left: 20px;
        padding-right: 54px;
    }

    .details-content {
        padding-left: 20px;
        padding-right: 20px;
    }

    .legal-footer {
        justify-content: center;
        text-align: center;
    }

}

.contact-page {
    padding: 60px 0;
}

.page-title {
    text-align: center;
    margin-bottom: 40px;
}

.page-title h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.page-title p {
    color: var(--text-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* Direkte Kontaktkanäle */

.contact-channels {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.channel-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.channel-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-green);
    box-shadow: var(--shadow-md);
}

.channel-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-green-light);
    color: var(--accent-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.channel-info h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.channel-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Formular */

.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.form-card h3 {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--accent-green);
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--accent-green);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit:hover {
    background: var(--accent-green-hover);
}

/* --- GEMEINSAME HILFSKLASSEN --- */

main {
    flex: 1;
}

.nav-links a[aria-current="page"] {
    color: var(--accent-green);
}

.workflow-feature-title {
    font-size: 1.6rem;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.text-secondary-spaced {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.case-study-result {
    color: var(--accent-green-hover);
    font-weight: 600;
}

.footer-email {
    margin-top: 16px;
    color: var(--accent-green);
    font-weight: 600;
}

.footer-heading {
    margin-bottom: 12px;
}

.footer-muted-link {
    color: #64748b;
}

.simple-footer {
    margin-top: 80px;
    padding: 40px 0;
    text-align: center;
}

.simple-footer a {
    color: #94a3b8;
    text-decoration: none;
    margin: 0 10px;
}

.simple-footer-nav {
    margin-top: 10px;
}

.channel-icon-whatsapp {
    background: rgba(37, 211, 102, 0.15);
    color: #25d366;
}

.channel-icon-linkedin {
    background: rgba(10, 102, 194, 0.15);
    color: #0a66c2;
}

.channel-icon-google {
    background: rgba(234, 67, 53, 0.15);
    color: #ea4335;
}

/* --- ÜBER-MICH-SEITE --- */

.about-page {
    padding: 80px 20px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
}

.image-placeholder {
    width: 100%;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: linear-gradient(135deg, #f1f5f9 0%, var(--accent-green-light) 100%);
    color: var(--text-secondary);
    font-weight: 600;
}

.profile-image {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: inherit;
    object-fit: cover;
}

.about-page .about-text h1 {
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.about-page .about-text p {
    margin-bottom: 18px;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.values-title {
    margin-top: 60px;
    margin-bottom: 24px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.value-card {
    padding: 24px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-card);
}

.value-card h3 {
    margin-bottom: 8px;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

}

/* --- RECHTLICHE SEITEN --- */

.legal-page {
    padding-top: clamp(48px, 8vw, 88px);
    padding-bottom: clamp(56px, 8vw, 96px);
}

.legal-hero {
    max-width: 820px;
    margin: 0 auto 42px;
    text-align: center;
}

.legal-hero h1 {
    margin-bottom: 12px;
}

.legal-hero p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.legal-layout {
    display: grid;
    grid-template-columns: minmax(210px, 260px) minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}

.legal-toc {
    position: sticky;
    top: calc(var(--header-height) + 22px);
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 22px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.legal-toc strong {
    margin-bottom: 5px;
}

.legal-toc a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 5px 0;
}

a:visited {
    color: var(--accent-green-hover);
}

.legal-toc a:hover,
.legal-toc a:focus-visible {
    color: var(--accent-green-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-content {
    min-width: 0;
}

.legal-card,
.privacy-accordion details {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 18px;
    scroll-margin-top: calc(var(--header-height) + 24px);
}

.legal-card {
    padding: clamp(22px, 4vw, 32px);
}

.legal-card h2 {
    font-size: clamp(1.25rem, 3vw, 1.55rem);
    margin-bottom: 14px;
}

.legal-card p + p,
.details-content p + p {
    margin-top: 14px;
}

.legal-card address {
    margin-top: 16px;
    font-style: normal;
}

.legal-card a,
.details-content a {
    color: var(--accent-green-hover);
    overflow-wrap: anywhere;
}

.legal-warning {
    background: #fff7ed;
    border: 1px solid #fdba74;
    border-left: 5px solid #f97316;
    color: #7c2d12;
    padding: 18px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.legal-note {
    color: var(--text-secondary);
    font-size: 0.94rem;
    padding-left: 14px;
    border-left: 3px solid var(--accent-green);
}

.legal-updated {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 24px;
}

.privacy-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 34px;
}

.privacy-summary > div {
    display: flex;
    flex-direction: column;
    gap: 7px;
    background: var(--accent-green-light);
    border: 1px solid rgba(61, 139, 57, 0.2);
    border-radius: var(--radius);
    padding: 20px;
}

.privacy-summary span {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.privacy-accordion details {
    overflow: clip;
}

.privacy-accordion summary {
    cursor: pointer;
    list-style: none;
    position: relative;
    padding: 22px 58px 22px 26px;
    font-size: 1.08rem;
    font-weight: 700;
}

.privacy-accordion summary::-webkit-details-marker {
    display: none;
}

.privacy-accordion summary::after {
    content: "+";
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent-green-light);
    color: var(--accent-green-hover);
    font-size: 1.25rem;
}

.privacy-accordion details[open] summary::after {
    content: "−";
}

.privacy-accordion summary:hover,
.privacy-accordion summary:focus-visible {
    color: var(--accent-green-hover);
}

.details-content {
    padding: 0 26px 26px;
    color: var(--text-secondary);
}

.details-content ul {
    margin: 14px 0 14px 22px;
}

.details-content li + li {
    margin-top: 7px;
}

.legal-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.legal-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
}

.legal-footer a[aria-current="page"] {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.form-privacy {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 10px;
    margin: 6px 0 18px;
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.form-privacy input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--accent-green);
}

.form-privacy a {
    color: var(--accent-green-hover);
}

body.nav-open {
    overflow: hidden;
}

@media (max-width: 900px) {
    .legal-layout {
        grid-template-columns: 1fr;
    }

    .legal-toc {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .legal-toc strong {
        grid-column: 1 / -1;
    }

    .privacy-summary {
        grid-template-columns: 1fr;
    }

}

/* Backend-Funktionen: Formularstatus und Datenschutz-Einstellungen */

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

.form-status {
    min-height: 1.5rem;
    margin-top: 14px;
    font-weight: 600;
}

.form-status[data-state="pending"] {
    color: var(--text-secondary);
}

.form-status[data-state="success"] {
    color: var(--accent-green);
}

.form-status[data-state="error"] {
    color: #b91c1c;
}

.consent-settings-button {
    position: fixed;
    left: 14px;
    bottom: 14px;
    z-index: 1600;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 9px 14px;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 700;
}

.consent-banner[hidden] {
    display: none !important;
}

.consent-banner {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.58);
}

.consent-panel {
    width: min(760px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    border-radius: var(--radius);
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 24px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.3);
}

.consent-panel h2 {
    margin: 0 0 10px;
    font-size: 1.35rem;
}

.consent-panel p {
    margin: 0 0 16px;
}

.consent-panel a {
    color: var(--accent-green-hover);
}

.consent-option {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 18px 0;
    font-weight: 650;
}

.consent-option input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
}

.consent-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.consent-button {
    min-height: 44px;
    border-radius: 9px;
    padding: 10px 16px;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}

.consent-button-primary {
    border: 1px solid var(--accent-green);
    background: var(--accent-green);
    color: #fff;
}

.consent-button-secondary {
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
}

.consent-button:focus-visible,
.consent-settings-button:focus-visible {
    outline: 3px solid rgba(61, 139, 57, 0.35);
    outline-offset: 3px;
}

body.consent-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .consent-banner {
        padding: 10px;
    }

    .consent-panel {
        padding: 20px 16px;
    }

    .consent-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .consent-button {
        width: 100%;
    }

    .consent-settings-button {
        left: 8px;
        bottom: 8px;
        font-size: 0.78rem;
        padding: 8px 11px;
    }

}

/* Interne Statistikseite */
.statistics-page {
    min-height: 100vh;
    background: #f5f7fb;
    color: #172033;
}

.statistics-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0 72px;
}

.statistics-header,
.statistics-panel-heading,
.statistics-token-row {
    display: flex;
    align-items: center;
}

.statistics-header {
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.statistics-header h1,
.statistics-auth h2,
.statistics-panel h2 {
    margin: 0;
}

.statistics-header p,
.statistics-auth p,
.statistics-panel-heading p {
    margin: 6px 0 0;
}

.statistics-eyebrow {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.statistics-home-link,
.statistics-token-form button,
.statistics-secondary-button {
    min-height: 44px;
    border-radius: 10px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.statistics-home-link {
    display: inline-flex;
    align-items: center;
    padding: 0 18px;
    border: 1px solid #d7dce6;
    background: #fff;
    color: inherit;
    text-decoration: none;
}

.statistics-auth,
.statistics-panel {
    padding: 24px;
    border: 1px solid #e0e4ec;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(22, 32, 51, 0.07);
}

.statistics-token-form {
    margin-top: 20px;
}

.statistics-token-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.statistics-token-row {
    gap: 10px;
}

.statistics-token-row input {
    min-width: 0;
    flex: 1 1 420px;
    min-height: 46px;
    padding: 10px 13px;
    border: 1px solid #bac2d1;
    border-radius: 10px;
    font: inherit;
}

.statistics-token-form button {
    padding: 0 18px;
    border: 1px solid #172033;
    background: #172033;
    color: #fff;
}

.statistics-secondary-button {
    padding: 0 16px;
    border: 1px solid #cbd1dc;
    background: #fff;
    color: #172033;
}

.statistics-status {
    min-height: 24px;
    margin: 14px 0 0;
    font-weight: 700;
}

.statistics-status[data-type="error"] {
    color: #a21c1c;
}

.statistics-status[data-type="success"] {
    color: #176c3a;
}

.statistics-dashboard {
    margin-top: 28px;
}

.statistics-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.statistics-card {
    padding: 22px;
    border: 1px solid #e0e4ec;
    border-radius: 14px;
    background: #fff;
}

.statistics-card span,
.statistics-card small {
    display: block;
}

.statistics-card span {
    font-weight: 700;
}

.statistics-card strong {
    display: block;
    margin: 7px 0 2px;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1;
}

.statistics-card small {
    color: #657087;
}

.statistics-panel + .statistics-panel {
    margin-top: 16px;
}

.statistics-panel-heading {
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.statistics-chart {
    display: grid;
    grid-template-columns: repeat(30, minmax(18px, 1fr));
    align-items: end;
    gap: 6px;
    min-height: 290px;
    overflow-x: auto;
    padding: 12px 4px 2px;
}

.statistics-bar-item {
    display: grid;
    grid-template-rows: 24px 210px 28px;
    align-items: end;
    min-width: 20px;
    text-align: center;
}

.statistics-bar-value,
.statistics-bar-label {
    font-size: 0.72rem;
    white-space: nowrap;
}

.statistics-bar-value {
    align-self: start;
    color: #4f5b70;
}

.statistics-bar-track {
    position: relative;
    height: 100%;
    border-bottom: 1px solid #d9dee8;
}

.statistics-bar {
    position: absolute;
    right: 1px;
    bottom: 0;
    left: 1px;
    min-height: 0;
    border-radius: 6px 6px 0 0;
    background: currentColor;
}

.statistics-bar-label {
    overflow: hidden;
    color: #657087;
    text-overflow: clip;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.statistics-table-wrap {
    overflow-x: auto;
}

.statistics-table {
    width: 100%;
    border-collapse: collapse;
}

.statistics-table th,
.statistics-table td {
    padding: 13px 12px;
    border-bottom: 1px solid #e5e8ef;
    text-align: left;
}

.statistics-table th:nth-child(2),
.statistics-table th:nth-child(3),
.statistics-table td:nth-child(2),
.statistics-table td:nth-child(3) {
    text-align: right;
}

.statistics-table a {
    color: inherit;
    font-weight: 700;
}

.statistics-empty {
    padding: 24px;
    color: #657087;
    text-align: center;
}

@media (max-width: 900px) {
    .statistics-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .statistics-shell {
        width: min(100% - 20px, 1180px);
        padding-top: 24px;
    }

    .statistics-header,
    .statistics-token-row,
    .statistics-panel-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .statistics-home-link {
        justify-content: center;
    }

    .statistics-token-row input,
    .statistics-token-row button {
        width: 100%;
        flex-basis: auto;
    }

    .statistics-summary {
        grid-template-columns: 1fr;
    }

    .statistics-auth,
    .statistics-panel {
        padding: 18px;
    }
}



/* --- SEO/PERFORMANCE: kompakte Marken-Grafik mit festen Abmessungen --- */
.nav-container {
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: var(--text-primary);
    text-decoration: none;
    z-index: 1001;
}

.site-logo {
    display: block;
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    object-fit: contain;
}

.brand .logo {
    line-height: 1.2;
    z-index: auto;
}

.image-placeholder picture {
    display: block;
    width: 100%;
    height: 100%;
}

.contact-section-title,
.form-card h2 {
    font-size: 1.35rem;
    margin-bottom: 4px;
}

.channel-info h3 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.footer-heading {
    font-size: 1.1rem;
}

.error-page {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    padding-bottom: 80px;
}

.error-page p {
    max-width: 620px;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

@media (max-width: 868px) {
    .nav-container {
        gap: 12px;
    }

    .brand {
        margin-right: auto;
    }

    .brand .logo {
        max-width: 220px;
    }
}

@media (max-width: 520px) {
    .site-logo {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .brand .logo {
        max-width: 175px;
        font-size: 0.86rem;
    }
}

/* --- MOBILE HEADER, CTA UND FOOTER: Korrekturen --- */
body {
    /* overflow-x:hidden kann position:sticky in einigen mobilen Browsern stören. */
    overflow-x: clip;
}

.pilot-notice-button,
.pilot-notice-button:link,
.pilot-notice-button:visited,
a.pilot-notice-button:visited {
    color: #ffffff !important;
}

footer {
    display: block;
    width: 100%;
    margin-top: auto;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 18px;
    color: #cbd5e1;
    line-height: 1.65;
}

.footer-legal-links {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 18px;
}

.footer-muted-link,
.footer-muted-link:link,
.footer-muted-link:visited {
    color: #ffffff !important;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.55);
    text-underline-offset: 4px;
}

.footer-muted-link:hover,
.footer-muted-link:focus-visible {
    color: #86d981 !important;
    text-decoration-color: currentColor;
}

@media (max-width: 868px) {
    body.site-page {
        padding-top: calc(var(--header-height) + env(safe-area-inset-top));
    }

    body > header {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        width: 100%;
        padding-top: env(safe-area-inset-top);
        transform: translateZ(0);
    }

    body > header .nav-container {
        height: var(--header-height);
    }
}

@media (max-width: 640px) {
    footer {
        padding-bottom: max(88px, calc(30px + env(safe-area-inset-bottom)));
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        font-size: 0.9rem;
    }

    .footer-legal-links {
        gap: 12px 22px;
        font-size: 1rem;
    }
}


/* --- PROZESSDIGITALISIERUNG / 2026-09 --- */

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 4px;
}

.hero-actions .btn {
    width: auto;
    min-width: 250px;
}

.btn-secondary {
    background: #ffffff;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: #f1f5f9;
    color: var(--text-primary);
    border-color: rgba(61, 139, 57, 0.38);
}

.hero-region {
    margin-top: 18px !important;
    margin-bottom: 0 !important;
    font-size: 0.86rem !important;
    color: #64748b !important;
}

.card-kicker,
.section-eyebrow {
    display: inline-block;
    color: var(--accent-green-hover);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.065em;
    text-transform: uppercase;
}

.card-kicker {
    margin-bottom: 10px;
}

.section-eyebrow {
    margin-bottom: 8px;
}

.process-focus-grid {
    align-items: stretch;
}

.process-primary-card {
    border-color: rgba(61, 139, 57, 0.5);
    background: linear-gradient(145deg, #ffffff 0%, rgba(61, 139, 57, 0.07) 100%);
    box-shadow: var(--shadow-md);
}

.example-grid .benefit-card {
    padding-top: 28px;
    padding-bottom: 28px;
}

.radix-section {
    background:
        radial-gradient(circle at 8% 10%, rgba(61, 139, 57, 0.08), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.radix-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(28px, 5vw, 54px);
    align-items: center;
}

.radix-copy {
    min-width: 0;
}

.radix-copy h3 {
    font-size: clamp(1.35rem, 3vw, 1.8rem);
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.radix-copy > p {
    color: var(--text-secondary);
    margin-bottom: 18px;
}

.feature-check-list {
    list-style: none;
    display: grid;
    gap: 10px;
    margin: 22px 0;
}

.feature-check-list li {
    position: relative;
    padding-left: 28px;
    color: var(--text-secondary);
}

.feature-check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-green);
    font-weight: 800;
}

.radix-note {
    padding: 16px 18px;
    border-left: 4px solid var(--accent-green);
    border-radius: 0 10px 10px 0;
    background: var(--accent-green-light);
    color: #334155 !important;
    font-size: 0.94rem;
}

.radix-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 28px;
}

.radix-shot {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow-md);
}

.radix-shot-wide {
    grid-column: 1 / -1;
}

.radix-shot picture {
    display: block;
    background: #f8fafc;
}

.radix-shot img {
    display: block;
    width: 100%;
    height: auto;
}

.radix-shot figcaption {
    padding: 12px 15px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.45;
}

.radix-shot-login img {
    object-fit: cover;
}

.about-home-image {
    overflow: hidden;
    min-height: 360px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: #f1f5f9;
    box-shadow: var(--shadow-sm);
}

.about-home-image picture,
.about-home-image img {
    display: block;
    width: 100%;
    height: 100%;
}

.about-home-image img {
    object-fit: cover;
}

.text-link {
    color: var(--accent-green-hover);
    font-weight: 700;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.faq-section {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.faq-container {
    max-width: 920px;
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-list details {
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
}

.faq-list summary {
    position: relative;
    padding: 18px 50px 18px 20px;
    cursor: pointer;
    list-style: none;
    font-weight: 700;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-green);
    font-size: 1.35rem;
    font-weight: 500;
}

.faq-list details[open] summary::after {
    content: "–";
}

.faq-list details p {
    padding: 0 20px 20px;
    color: var(--text-secondary);
}

.cta-section {
    padding-top: clamp(44px, 7vw, 76px);
    padding-bottom: clamp(54px, 8vw, 90px);
}

.cta-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    padding: clamp(26px, 5vw, 44px);
    border: 1px solid rgba(61, 139, 57, 0.28);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(61, 139, 57, 0.08) 0%, #ffffff 70%);
    box-shadow: var(--shadow-md);
}

.cta-card h2 {
    margin: 3px 0 10px;
    font-size: clamp(1.5rem, 4vw, 2.15rem);
    letter-spacing: -0.025em;
}

.cta-card p {
    max-width: 760px;
    color: var(--text-secondary);
}

.cta-card .btn {
    width: auto;
    min-width: 210px;
    text-align: center;
    color: white;
}

@media (max-width: 900px) {
    .radix-layout {
        grid-template-columns: 1fr;
    }

    .cta-card {
        grid-template-columns: 1fr;
    }

    .cta-card .btn {
        width: 100%;
        max-width: 340px;
    }
}

@media (max-width: 700px) {
    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        min-width: 0;
        max-width: none;
    }

    .radix-gallery {
        grid-template-columns: 1fr;
    }

    .radix-shot-wide {
        grid-column: auto;
    }

    .about-home-image {
        min-height: 300px;
        max-height: 520px;
    }
}

.about-detail-card {
    margin-top: 34px;
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid rgba(61, 139, 57, 0.3);
    border-radius: var(--radius);
    background: linear-gradient(145deg, #ffffff 0%, rgba(61, 139, 57, 0.055) 100%);
    box-shadow: var(--shadow-sm);
}

.about-detail-card h2 {
    margin: 4px 0 14px;
    font-size: clamp(1.45rem, 3.5vw, 2rem);
}

.about-detail-card p {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.about-detail-card .btn {
    margin-top: 8px;
}

.contact-form-intro {
    margin: -2px 0 20px;
    color: var(--text-secondary);
    font-size: 0.94rem;
}

/* RADIX OS / interne Verweise */
.inline-radix-link {
    color: var(--accent-green-hover);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.inline-radix-link:hover {
    color: var(--accent-green);
}
