/* ============================================================
   Praxiswarteliste – Landingpage
   Farbwelt: Weiß, Teal (#139AA3), dunkles Grau, dezente Flächen
   ============================================================ */

:root {
    --teal: #139aa3;
    --teal-dark: #0e7d85;
    --teal-darker: #0b656c;
    --teal-light: #a9d7d4;
    --teal-tint: #eef7f7;
    --teal-tint-strong: #ddefef;
    --text: #2d2f33;
    --text-muted: #5c6168;
    --surface: #ffffff;
    --border: #e3e8ea;
    --error: #b3261e;
    --error-bg: #fdeceb;
    --success: #14694f;
    --success-bg: #e7f5ef;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-soft: 0 6px 24px rgba(20, 60, 64, 0.08);
    --shadow-card: 0 2px 10px rgba(20, 60, 64, 0.06);
    --shadow-frame: 0 18px 48px rgba(20, 60, 64, 0.16);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
            "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px; /* Höhe des Sticky-Headers */
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { line-height: 1.25; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); letter-spacing: -0.015em; }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1em; }

a { color: var(--teal-dark); }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}
.container.narrow { max-width: 820px; }

/* ---------- Buttons ---------- */

.btn {
    display: inline-block;
    padding: 0.7em 1.5em;
    border-radius: 999px;
    border: 2px solid transparent;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease,
                color 0.18s ease, transform 0.12s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
    background: var(--teal);
    color: #fff;
}
.btn-primary:hover,
.btn-primary:focus-visible { background: var(--teal-dark); }

.btn-secondary {
    background: var(--surface);
    color: var(--teal-dark);
    border-color: var(--teal-light);
}
.btn-secondary:hover,
.btn-secondary:focus-visible {
    border-color: var(--teal);
    background: var(--teal-tint);
}

.btn-lg { padding: 0.85em 1.9em; font-size: 1.05rem; }

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 68px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
}
.brand-icon { border-radius: 8px; }
.brand-name { font-size: 1.2rem; letter-spacing: -0.01em; }
.brand-name strong { font-weight: 700; }

.site-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}
.site-nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.98rem;
}
.site-nav a:hover { color: var(--teal-dark); }
.site-nav .btn-nav { color: #fff; }
/* Der letzte Textlink doppelt den Button – auf Desktop ausblenden */
.site-nav a[href="#interesse"]:not(.btn-nav) { display: none; }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
    background: linear-gradient(180deg, var(--teal-tint) 0%, #ffffff 100%);
    padding: 72px 0 84px;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 56px;
    align-items: center;
}

.eyebrow {
    display: inline-block;
    background: var(--teal-tint-strong);
    color: var(--teal-darker);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.hero-sub {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.8em;
}

.hero-text { color: var(--text-muted); }

.hero-tagline {
    font-weight: 600;
    color: var(--teal-darker);
    margin-bottom: 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

/* ---------- Browser-Mockup ---------- */

.browser-frame {
    margin: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-frame);
    overflow: hidden;
}

.browser-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 11px 16px;
    background: #f3f6f7;
    border-bottom: 1px solid var(--border);
}
.browser-bar .dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #d3dcde;
}
.browser-url {
    margin-left: 12px;
    flex: 1;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 3px 14px;
    font-size: 0.8rem;
    color: var(--text-muted);
    max-width: 320px;
}

/* ---------- Sections ---------- */

.section { padding: 80px 0; }
.section-tinted { background: var(--teal-tint); }

.section-head {
    max-width: 720px;
    margin: 0 auto 48px;
    text-align: center;
}
.section-head p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* ---------- Problem ---------- */

.problem-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.problem-list li {
    display: flex;
    gap: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 22px 24px;
}
.problem-list h3 { font-size: 1.05rem; margin-bottom: 0.35em; }
.problem-list p { margin: 0; color: var(--text-muted); font-size: 0.97rem; }

.problem-icon,
.feature-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--teal-tint-strong);
    color: var(--teal-dark);
}

/* ---------- Feature-Karten ---------- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
}
.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 28px 26px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.feature-card:hover {
    box-shadow: var(--shadow-soft);
    transform: translateY(-3px);
}
.feature-card .feature-icon { margin-bottom: 16px; }
.feature-card h3 { margin-bottom: 0.45em; }
.feature-card p { margin: 0; color: var(--text-muted); font-size: 0.98rem; }

/* ---------- Nutzen für Team & Patienten ---------- */

.audience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-top: 22px;
}
.audience-card {
    background: var(--teal-tint);
    border: 1px solid var(--teal-tint-strong);
    border-radius: var(--radius);
    padding: 26px 28px;
}
.audience-card h3 {
    color: var(--teal-darker);
    margin-bottom: 0.6em;
}
.audience-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.audience-card li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 0.98rem;
}
.audience-card li:last-child { margin-bottom: 0; }
.audience-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35em;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--teal) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>') center / 10px no-repeat;
}

/* ---------- FAQ ---------- */

.faq-list {
    display: grid;
    gap: 14px;
}
.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-card);
    padding: 0 22px;
}
.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    padding: 18px 28px 18px 0;
    list-style: none;
    position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "";
    position: absolute;
    right: 2px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--teal-dark);
    border-bottom: 2px solid var(--teal-dark);
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.18s ease;
}
.faq-item[open] summary::after {
    transform: translateY(-30%) rotate(-135deg);
}
.faq-item p {
    margin: 0;
    padding: 0 0 18px;
    color: var(--text-muted);
}

/* ---------- Screenshots / Showcase ---------- */

.showcase {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 48px;
    align-items: center;
    margin-bottom: 64px;
}
.showcase:last-of-type { margin-bottom: 24px; }
.showcase-reverse .showcase-text { order: 2; }
.showcase-reverse .browser-frame { order: 1; }

.showcase-text h3 { font-size: 1.45rem; }
.showcase-text p { color: var(--text-muted); margin: 0; }

.screenshot-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.92rem;
    margin: 0;
}

/* ---------- Pilotphase ---------- */

.trust-text {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto 36px;
}

.testimonial {
    margin: 0 auto 36px;
    max-width: 640px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--teal);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 24px 28px;
}
.testimonial p {
    margin: 0 0 12px;
    font-size: 1.08rem;
    color: var(--text);
}
.testimonial footer {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.pilot-box {
    background: var(--teal-tint);
    border: 1px solid var(--teal-tint-strong);
    border-radius: var(--radius);
    padding: 28px 32px;
    text-align: center;
}
.pilot-box h3 { color: var(--teal-darker); margin-bottom: 0.35em; }
.pilot-box p { margin: 0; color: var(--text-muted); }

/* ---------- Formular ---------- */

.contact-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 36px 32px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 22px;
}
.form-field-wide { grid-column: 1 / -1; }

.form-field label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 6px;
}
.optional { font-weight: 400; color: var(--text-muted); }
.required { color: var(--teal-dark); }

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="number"],
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 11px 14px;
    font: inherit;
    font-size: 1rem;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field textarea { resize: vertical; min-height: 110px; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(19, 154, 163, 0.18);
}

.form-field input[aria-invalid="true"],
.form-field select[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
    border-color: var(--error);
}

.field-error {
    color: var(--error);
    font-size: 0.86rem;
    margin: 6px 0 0;
    min-height: 0;
}
.field-error:empty { display: none; }

.form-field-checkbox .checkbox-label {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-weight: 400;
    font-size: 0.95rem;
    cursor: pointer;
}
.form-field-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    accent-color: var(--teal);
    flex-shrink: 0;
    cursor: pointer;
}

.btn-submit {
    margin-top: 26px;
    width: 100%;
}
.btn-submit[disabled] { opacity: 0.65; cursor: wait; }

.form-note {
    margin: 18px 0 0;
    font-size: 0.88rem;
    color: var(--text-muted);
    text-align: center;
}

.form-message {
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-bottom: 22px;
    font-weight: 500;
}
.form-message[hidden] { display: none; }
.form-message-success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid #bfe3d4;
}
.form-message-error {
    background: var(--error-bg);
    color: var(--error);
    border: 1px solid #f3c4c1;
}

/* Honeypot: für Menschen unsichtbar (nicht display:none, das kennen manche Bots) */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- Rechtsseiten (Impressum / Datenschutz) ---------- */

.legal-content h1 { margin-bottom: 0.8em; }
.legal-content h2 {
    font-size: 1.25rem;
    margin-top: 1.8em;
}
.legal-content p,
.legal-content li { color: var(--text-muted); }
.legal-content ul { padding-left: 22px; margin: 0 0 1em; }
.legal-content li { margin-bottom: 6px; }

.back-link {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}
.back-link:hover { text-decoration: underline; }

/* Platzhalter, die vor dem Livegang ausgefüllt werden müssen */
.todo {
    background: #fff3cd;
    color: #7a5d00;
    border-radius: 4px;
    padding: 1px 6px;
    font-weight: 500;
}

.legal-stand { margin-top: 2.5em; font-size: 0.92rem; }

/* ---------- Footer ---------- */

.site-footer {
    background: #f7fafa;
    border-top: 1px solid var(--border);
    padding: 44px 0 28px;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 28px;
}

.footer-claim {
    margin: 10px 0 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-nav {
    display: flex;
    gap: 24px;
    align-items: center;
}
.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
}
.footer-nav a:hover { color: var(--teal-dark); }

.footer-meta {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.footer-meta p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.86rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 44px;
    }
    .hero { padding: 56px 0 64px; }

    .showcase,
    .showcase-reverse {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .showcase-reverse .showcase-text { order: 1; }
    .showcase-reverse .browser-frame { order: 2; }
}

@media (max-width: 760px) {
    .section { padding: 56px 0; }

    .nav-toggle { display: flex; }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #fff;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-soft);
        padding: 8px 0;
    }
    .site-nav.open { display: flex; }
    .site-nav a {
        padding: 14px 24px;
        font-size: 1.05rem;
    }
    .site-nav a[href="#interesse"]:not(.btn-nav) { display: block; }
    .site-nav .btn-nav { display: none; }

    .form-grid { grid-template-columns: 1fr; }
    .audience-grid { grid-template-columns: 1fr; }
    .contact-form { padding: 26px 20px; }

    .hero-actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn, .feature-card, .nav-toggle span { transition: none; }
}

/* ============================================================
   Vorabseite (prelaunch.php) – kleiner Zusatz, nutzt sonst
   ausschließlich die bestehenden Klassen dieser Datei.
   ============================================================ */

.prelaunch-hero {
    max-width: 880px;
    text-align: center;
}
.prelaunch-hero .hero-sub { max-width: 640px; margin-left: auto; margin-right: auto; }

.prelaunch-frame {
    max-width: 880px;
    margin: 44px auto 0;
}

/* h2-Karten-Titel optisch wie die h3-Titel der Hauptseite */
.feature-title { font-size: 1.15rem; margin-bottom: 0.45em; }

.prelaunch-contact { text-align: center; }
.prelaunch-contact h2 { margin-bottom: 0.5em; }
.prelaunch-contact p { color: var(--text-muted); max-width: 560px; margin-left: auto; margin-right: auto; }
.prelaunch-cta { margin-top: 26px; }
.prelaunch-noscript { font-weight: 600; color: var(--text); }

@media (max-width: 760px) {
    .prelaunch-break { display: none; }
}
