/* Übernommen aus tde/landing.css: Funktionsblock, Häufige Fragen, Abschlussbox und Footer.
   Alle Regeln gelten nur innerhalb von .tde, damit sie die übrigen Abschnitte der Seite nicht beeinflussen. */

.tde {
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
}
.tde a { color: inherit; text-decoration: none; }
.tde svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.tde h1, .tde h2, .tde h3, .tde p { margin-top: 0; }

.tde .shell { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.tde .brand { display: inline-flex; flex: 0 0 auto; align-items: center; }
.tde .brand img { display: block; width: 190px; height: auto; }

.tde .button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 10px; padding: 0 19px; border: 1px solid transparent; border-radius: 9px; font-size: 14px; font-weight: 700; line-height: 1.2; transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease; }
.tde .button:hover { transform: translateY(-1px); }
.tde .button:focus-visible, .tde a:focus-visible, .tde summary:focus-visible { outline: 3px solid rgba(220, 38, 38, .32); outline-offset: 3px; }
.tde .button-large { min-height: 54px; padding-inline: 21px; font-size: 15px; }
.tde .button-primary { color: #fff; background: var(--red); box-shadow: 0 5px 14px rgba(220, 38, 38, .16); }
.tde .button-primary:hover { background: var(--red-dark); box-shadow: 0 8px 20px rgba(220, 38, 38, .22); }
.tde .button-light { color: #a52222; background: #fff; box-shadow: 0 6px 18px rgba(70, 10, 10, .15); }
.tde .button-light:hover { background: #fff5f5; }

.tde .eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 17px; padding: 0; color: #687386; background: none; border-radius: 0; font-size: 12px; font-weight: 800; letter-spacing: .095em; line-height: 1.4; text-transform: uppercase; }

/* Funktionsblock "Weniger Zettel. Mehr Überblick." */
.tde .section { padding: 80px 0; }
/* Hintergrund-Rhythmus der Seite: Verlauf → weiß → grau → dunkles Band → weiß → gemeinsamer Fragen-/CTA-Bereich → weiß (Kontakt) → grau (Footer) */
.tde .features-section { background: var(--bg); }
.tde .section-heading { max-width: 670px; margin: 0 auto 44px; text-align: center; }
.tde .section-heading .eyebrow { justify-content: center; }
.tde .section-heading h2, .tde .closing-card h2 { margin: 0; font-size: clamp(32px, 4vw, 43px); font-weight: 760; letter-spacing: -.045em; line-height: 1.16; }
.tde .section-heading > p:last-child { max-width: 580px; margin: 16px auto 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.tde .feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.tde .feature-card { display: flex; min-height: 262px; flex-direction: column; align-items: flex-start; padding: 24px 21px 21px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.tde .feature-card:hover { transform: translateY(-3px); border-color: #d8dde5; box-shadow: 0 12px 30px rgba(24, 35, 51, .06); }
.tde .feature-icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 10px; }
.tde .feature-icon svg { width: 23px; height: 23px; }
.tde .icon-red { color: #d22c2c; background: #fff0f0; }
.tde .icon-blue { color: #347fb8; background: #ebf5fc; }
.tde .icon-amber { color: #ad7621; background: #fff6e8; }
.tde .icon-slate { color: #586b86; background: #edf1f7; }
.tde .feature-card h3 { margin: 18px 0 8px; color: var(--ink); font-size: 16px; font-weight: 740; letter-spacing: -.02em; }
.tde .feature-card p { min-height: 87px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.tde .feature-card > a { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 15px; color: var(--red); font-size: 12px; font-weight: 700; }
.tde .feature-card > a:hover { color: #8f1f1f; }

/* Häufige Fragen */
.tde .faq-closing-group {
    background-color: var(--bg-soft);
    background-image: radial-gradient(ellipse at 8% 0%, color-mix(in srgb, var(--red) 3%, transparent), transparent 52%), radial-gradient(ellipse at 92% 100%, color-mix(in srgb, var(--blue) 4%, transparent), transparent 52%);
}
.tde .faq-section { background: none; }
.tde .faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; align-items: start; gap: 85px; }
.tde .faq-heading { margin: 0; text-align: left; }
.tde .faq-heading .eyebrow { justify-content: flex-start; }
.tde .faq-heading > p:last-of-type { margin: 15px 0 23px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.tde .faq-list { border-top: 1px solid var(--line); }
.tde .faq-list details { border-bottom: 1px solid var(--line); }
.tde .faq-list summary { position: relative; padding: 20px 32px 20px 0; color: var(--ink); cursor: pointer; font-size: 14px; font-weight: 700; list-style: none; }
.tde .faq-list summary::-webkit-details-marker { display: none; }
.tde .faq-list summary span::before, .tde .faq-list summary span::after { position: absolute; top: 28px; right: 3px; width: 13px; height: 2px; border-radius: 1px; background: #7e8998; content: ""; }
.tde .faq-list summary span::after { transform: rotate(90deg); transition: transform .18s ease; }
.tde .faq-list details[open] summary span::after { transform: rotate(0); }
.tde .faq-list details p { max-width: 600px; margin: -3px 32px 19px 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

/* Abschlussbox "Bereit für den nächsten Schritt?" */
.tde .closing-section {
    padding: 0 0 80px;
}
.tde .closing-card { padding: 16px 30px 0; color: var(--ink); text-align: center; }
.tde .closing-mark { display: flex; width: 40px; height: 40px; align-items: center; justify-content: center; gap: 3px; margin: 0 auto 19px; border: 1px solid var(--line); border-radius: 11px; }
.tde .closing-mark span { width: 4px; border-radius: 3px; background: var(--red); }
.tde .closing-mark span:nth-child(1) { height: 12px; }
.tde .closing-mark span:nth-child(2) { height: 21px; }
.tde .closing-mark span:nth-child(3) { height: 15px; }
.tde .closing-card .eyebrow { justify-content: center; margin-bottom: 10px; color: var(--muted); }
.tde .closing-card h2 { max-width: 700px; margin-inline: auto; color: var(--ink); font-size: clamp(30px, 4vw, 42px); }
.tde .closing-card > p:not(.eyebrow) { margin: 12px 0 24px; color: var(--muted); font-size: 14px; }

/* Kontaktformular (im Stil der Vorlage) */
.tde .contact-section { padding: 80px 0; background: var(--bg); }
.tde .contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; align-items: start; gap: 64px; }
.tde .contact-intro h2 { margin: 0; font-size: clamp(32px, 4vw, 43px); font-weight: 760; letter-spacing: -.045em; line-height: 1.16; }
.tde .contact-intro > p:not(.eyebrow) { margin: 15px 0 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.tde .contact-points { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.tde .contact-points li { display: flex; align-items: flex-start; gap: 10px; }
.tde .contact-points li::before { content: "✓"; display: grid; width: 20px; height: 20px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: var(--red); background: #fff0f0; font-size: 11px; font-weight: 800; }
.tde .contact-card { display: grid; gap: 16px; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.tde .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tde .field label { display: block; margin-bottom: 6px; color: var(--ink); font-size: 13px; font-weight: 700; }
.tde .field .optional { color: #8a93a0; font-weight: 500; }
.tde .field input, .tde .field textarea { display: block; width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--bg); font: inherit; font-size: 14px; transition: border-color .18s ease, box-shadow .18s ease; }
.tde .field textarea { min-height: 140px; resize: vertical; }
.tde .field input:focus, .tde .field textarea:focus { border-color: var(--red); outline: none; box-shadow: 0 0 0 3px rgba(220, 38, 38, .12); }
.tde .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.tde .contact-privacy { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.tde .contact-privacy a { text-decoration: underline; }
.tde .contact-status { display: none; padding: 12px 14px; border-radius: 9px; font-size: 14px; font-weight: 600; }
.tde .contact-status.is-ok { display: block; color: #166534; background: #e8f7ef; }
.tde .contact-status.is-error { display: block; color: #b91c1c; background: #fff0f0; }
.tde .contact-card .button { justify-self: start; }
.tde .contact-card .button:disabled { opacity: .7; cursor: wait; transform: none; }

/* Footer */
.tde .site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); }
.tde .footer-main { display: flex; min-height: 130px; align-items: center; justify-content: space-between; gap: 28px; padding-block: 28px; border-bottom: 1px solid var(--line); }
.tde .footer-brand .brand img { width: 170px; }
.tde .footer-brand p { margin: 8px 0 0; color: #858e9d; font-size: 11px; }
.tde .footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 14px 25px; }
.tde .footer-links a { color: var(--muted); font-size: 12px; font-weight: 600; }
.tde .footer-links a:hover { color: var(--red); }
.tde .status-link { display: inline-flex; align-items: center; gap: 7px; }
.tde .status-dot { position: relative; width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #16a34a; }
/* Pulsierender Ring um den Status-Punkt */
.tde .status-dot::after { position: absolute; inset: 0; border-radius: 50%; background: #16a34a; content: ""; animation: tde-status-pulse 2s ease-out infinite; }
@keyframes tde-status-pulse {
    0% { opacity: .65; transform: scale(1); }
    70%, 100% { opacity: 0; transform: scale(3); }
}
.tde .footer-bottom { display: flex; min-height: 52px; align-items: center; justify-content: space-between; gap: 16px; color: #9099a6; font-size: 10px; }

/* Dunkelmodus (data-theme="dark" am html-Element, gesetzt von index.html) */
[data-theme="dark"] .tde .eyebrow { color: var(--muted); }
[data-theme="dark"] .tde .feature-card { background: var(--card); border-color: var(--line); }
[data-theme="dark"] .tde .feature-card:hover { border-color: #3a4450; box-shadow: 0 12px 30px rgba(0, 0, 0, .3); }
[data-theme="dark"] .tde .feature-card h3 { color: var(--ink); }
[data-theme="dark"] .tde .feature-card p { color: var(--muted); }
[data-theme="dark"] .tde .feature-card > a { color: var(--red); }
[data-theme="dark"] .tde .feature-card > a:hover { color: var(--red-dark); }
[data-theme="dark"] .tde .icon-red { color: #f87171; background: rgba(220, 38, 38, .16); }
[data-theme="dark"] .tde .icon-blue { color: #7cb8e8; background: rgba(52, 127, 184, .2); }
[data-theme="dark"] .tde .icon-amber { color: #e3b468; background: rgba(173, 118, 33, .22); }
[data-theme="dark"] .tde .icon-slate { color: #aebccf; background: rgba(88, 107, 134, .28); }
[data-theme="dark"] .tde .faq-list,
[data-theme="dark"] .tde .faq-list details { border-color: #2a323c; }
[data-theme="dark"] .tde .faq-list summary { color: var(--ink); }
[data-theme="dark"] .tde .faq-list summary span::before,
[data-theme="dark"] .tde .faq-list summary span::after { background: #8b96a5; }
[data-theme="dark"] .tde .faq-list details p { color: var(--muted); }
[data-theme="dark"] .tde .faq-closing-group { background-color: var(--bg); }
[data-theme="dark"] .tde .contact-section { background: var(--bg); }
[data-theme="dark"] .tde .contact-points { color: var(--muted); }
[data-theme="dark"] .tde .contact-points li::before { color: #f87171; background: rgba(220, 38, 38, .16); }
[data-theme="dark"] .tde .contact-card { background: var(--card); border-color: var(--line); box-shadow: var(--shadow); }
[data-theme="dark"] .tde .field label { color: var(--ink); }
[data-theme="dark"] .tde .field .optional { color: #8b96a5; }
[data-theme="dark"] .tde .field input, [data-theme="dark"] .tde .field textarea { color: var(--ink); background: var(--bg); border-color: var(--line); }
[data-theme="dark"] .tde .contact-privacy { color: var(--muted); }
[data-theme="dark"] .tde .contact-status.is-ok { color: #6ee7a0; background: rgba(22, 163, 74, .18); }
[data-theme="dark"] .tde .contact-status.is-error { color: #fca5a5; background: rgba(220, 38, 38, .18); }
[data-theme="dark"] .tde .site-footer { background: var(--bg-soft); }
[data-theme="dark"] .tde .footer-main { border-bottom-color: var(--line); }
[data-theme="dark"] .tde .footer-brand p,
[data-theme="dark"] .tde .footer-bottom { color: #8b96a5; }
[data-theme="dark"] .tde .footer-links a { color: var(--muted); }
[data-theme="dark"] .tde .footer-links a:hover { color: var(--red); }

@media (max-width: 1000px) {
    .tde .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tde .feature-card { min-height: 240px; }
    .tde .feature-card p { min-height: 70px; }
    .tde .faq-grid { gap: 48px; }
}

@media (max-width: 760px) {
    .tde .shell { width: min(100% - 48px, 560px); }
    .tde .section { padding: 70px 0; }
    .tde .section-heading { margin-bottom: 32px; }
    .tde .feature-grid { gap: 12px; }
    .tde .feature-card { padding: 19px 17px; }
    .tde .faq-grid { grid-template-columns: 1fr; gap: 34px; }
    .tde .faq-heading { max-width: 100%; }
    .tde .closing-section { padding-bottom: 60px; }
    .tde .closing-card { padding: 46px 20px; }
    .tde .contact-section { padding: 70px 0; }
    .tde .contact-grid { grid-template-columns: 1fr; gap: 34px; }
    .tde .field-row { grid-template-columns: 1fr; }
    .tde .contact-card { padding: 20px; }
    .tde .contact-card .button { justify-self: stretch; }
}

@media (max-width: 480px) {
    .tde .shell { width: calc(100% - 48px); }
    .tde .section { padding: 59px 0; }
    .tde .section-heading h2 { font-size: 32px; }
    .tde .section-heading > p:last-child { font-size: 14px; }
    .tde .feature-grid { grid-template-columns: 1fr; }
    .tde .feature-card { min-height: auto; padding: 20px; }
    .tde .feature-card p { min-height: auto; }
    .tde .footer-main, .tde .footer-bottom { align-items: flex-start; flex-direction: column; }
    .tde .footer-main { gap: 24px; padding-block: 27px; }
    .tde .footer-links { justify-content: flex-start; gap: 12px 19px; }
    .tde .footer-bottom { justify-content: center; gap: 3px; padding-block: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .tde *, .tde *::before, .tde *::after { transition-duration: .01ms !important; }
    .tde .status-dot::after { animation: none; opacity: 0; }
}
