/* true_drive: globale Styles. Die Gestaltung der einzelnen Ansichten liegt in assets/views/*.css. */
body { margin: 0; background: #EEF0F3; -webkit-font-smoothing: antialiased; }
.wp-site-blocks { padding: 0 !important; }
.wp-site-blocks > * + * { margin-block-start: 0 !important; }
.td-view { display: block; }
:where(.td-view) a:focus-visible, :where(.td-view) button:focus-visible, :where(.td-view) input:focus-visible, :where(.td-view) textarea:focus-visible { outline: 3px solid #FF7A3D; outline-offset: 2px; }

/* Inhaltsseiten (Impressum, Datenschutz, Beiträge) */
.td-content { max-width: 760px; margin: 0 auto !important; padding: clamp(32px, 6vw, 72px) 20px clamp(48px, 8vw, 96px) !important; }
.td-content h1 { font-size: clamp(34px, 5vw, 52px); margin: 0 0 24px; letter-spacing: -0.03em; }
.td-content h2 { font-size: clamp(24px, 3vw, 30px); margin: 40px 0 12px; }
.td-content h3 { font-size: 20px; margin: 28px 0 8px; }
.td-content p, .td-content li { font-size: 17px; color: #2B3B55; }
.td-content a { color: #0E1A2B; font-weight: 600; }

/* Fluent Forms im true_drive-Design */
.td-ff .fluentform { font-family: Manrope, system-ui, sans-serif; color: #0E1A2B; }
.td-ff .fluentform .ff-el-group { margin-bottom: 18px; }
.td-ff .fluentform .ff-el-input--label label, .td-ff .fluentform .ff-el-input--label { font-weight: 700; font-size: 14px; color: #0E1A2B; margin-bottom: 6px; }
.td-ff .fluentform .ff-el-input--label.asterisk-right label::after, .td-ff .fluentform .ff-el-is-required.asterisk-right label::after { color: #FF7A3D; }
.td-ff .fluentform .ff-el-form-control,
.td-ff .fluentform input[type="text"], .td-ff .fluentform input[type="email"], .td-ff .fluentform input[type="tel"], .td-ff .fluentform input[type="number"], .td-ff .fluentform textarea, .td-ff .fluentform select {
	width: 100%; box-sizing: border-box; font-family: inherit; font-size: 16px; line-height: 1.4; padding: 13px 14px; border: 2px solid #D3D8E0; border-radius: 12px; background: #FFFFFF; color: #0E1A2B; box-shadow: none; transition: border-color .2s;
}
.td-ff .fluentform .ff-el-form-control:focus, .td-ff .fluentform textarea:focus { border-color: #0E1A2B; outline: none; box-shadow: none; }
.td-ff .fluentform .ff-el-form-control::placeholder, .td-ff .fluentform textarea::placeholder { color: #8A94A6; }
/* Checkboxen als Auswahl-Chips */
.td-ff .fluentform .ff-el-input--content .ff-el-form-check { display: inline-block; margin: 0 8px 8px 0; }
.td-ff .fluentform .ff-el-form-check-label { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; min-height: 40px; box-sizing: border-box; border: 1.5px solid #D3D8E0; border-radius: 12px; background: #FFFFFF; font-weight: 700; font-size: 14px; cursor: pointer; transition: border-color .2s, background .2s; }
.td-ff .fluentform .ff-el-form-check-label:has(input:checked) { border-color: #FF7A3D; background: #FFF1EA; }
.td-ff .fluentform .ff-el-form-check-input { accent-color: #FF7A3D; width: 16px; height: 16px; margin: 0; }
/* Datenschutz-Zustimmung */
.td-ff .fluentform .ff-el-tc .ff-el-form-check-label, .td-ff .fluentform .ff_t_c .ff-el-form-check-label, .td-ff .fluentform [data-name="datenschutz"] .ff-el-form-check-label { display: flex; align-items: flex-start; border: none; background: none; padding: 0; font-weight: 500; color: #2B3B55; }
/* Fehler */
.td-ff .fluentform .ff-el-is-error .ff-el-form-control, .td-ff .fluentform .ff-el-is-error textarea { border-color: #D14343; }
.td-ff .fluentform .error, .td-ff .fluentform .text-danger { color: #D14343; font-size: 13px; margin-top: 6px; }
/* Absenden */
.td-ff .fluentform .ff-btn-submit, .td-ff .fluentform button[type="submit"] { font-family: inherit; font-size: 16px; font-weight: 800; padding: 16px 28px; min-height: 52px; border-radius: 12px; border: none; background: #FF7A3D !important; color: #0E1A2B !important; cursor: pointer; box-shadow: none; transition: transform .15s; }
.td-ff .fluentform .ff-btn-submit:hover { transform: translateY(-1px); opacity: 1; }
/* Erfolgsmeldung */
.td-ff .ff-message-success { border: none; border-radius: 20px; background: #EEF0F3; color: #0E1A2B; padding: 24px; font-size: 17px; box-shadow: none; }
/* Zweispaltige Felder bei Bedarf */
.td-ff .fluentform .ff-t-container { gap: 16px; }
@media (max-width: 760px) { .td-ff .fluentform .ff-t-container { display: block; } }

/* Navigation: Module-Menü (Desktop) */
.td-top { position: relative; }
.td-mm { position: static; display: inline-flex; align-items: center; }
.td-mm-btn { font: inherit; font-size: 15px; font-weight: 600; color: #0E1A2B; background: none; border: none; padding: 8px 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.td-mm-caret { font-size: 11px; transition: transform .2s; }
.td-mm:hover .td-mm-caret, .td-mm:focus-within .td-mm-caret { transform: rotate(180deg); }
.td-mm-panel { position: absolute; z-index: 60; top: 100%; left: 50%; width: min(1100px, calc(100vw - 48px)); box-sizing: border-box; transform: translate(-50%, 8px); background: #FFFFFF; border-radius: 24px; padding: 26px 28px 18px; box-shadow: 0 24px 60px rgba(14, 26, 43, .18); opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .25s cubic-bezier(.2, .8, .2, 1), visibility .2s; text-align: left; }
.td-mm-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -34px; height: 34px; }
.td-mm:hover .td-mm-panel, .td-mm:focus-within .td-mm-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.td-mm-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px 18px; }
.td-mm-group { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #FF7A3D; }
.td-mm-link { display: block; padding: 8px 10px; margin: 0 -10px 2px; border-radius: 12px; text-decoration: none !important; color: #0E1A2B; transition: background .15s; }
.td-mm-link:hover, .td-mm-link:focus-visible { background: #EEF0F3; }
.td-mm-name { display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 15px; line-height: 1.25; }
.td-mm-sub { display: block; font-size: 12px; color: #4A5568; line-height: 1.35; }
.td-mm-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #E3E7ED; font-size: 14px; color: #4A5568; }
.td-mm-foot a { color: #0E1A2B; font-weight: 700; }
@media (max-width: 1100px) { .td-mm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Navigation: Module im mobilen Menü */
.td-mmm summary { list-style: none; cursor: pointer; }
.td-mmm summary::-webkit-details-marker { display: none; }
.td-mmm-home { display: flex; align-items: center; gap: 12px; padding: 13px 6px; border-bottom: 1px solid #22324D; color: #FFFFFF; }
.td-mmm-lp { display: flex; justify-content: space-between; align-items: center; padding: 13px 4px; border-bottom: 1px solid #22324D; color: #FFFFFF; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 20px; font-weight: 700; }
.td-mmm-chev { flex: none; width: 32px; height: 32px; border-radius: 50%; background: #16243A; color: #FF7A3D; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; transition: transform .25s; }
.td-mmm[open] .td-mmm-chev { transform: rotate(180deg); }
.td-mmm-body { padding: 6px 6px 14px; border-bottom: 1px solid #22324D; }
.td-mmm[open] .td-mmm-body { animation: tdMmm .35s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes tdMmm { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.td-mmm-group { margin: 10px 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8FA6C8; }
.td-mmm-links { display: flex; flex-wrap: wrap; gap: 6px; }
.td-mmm-links a { display: inline-block; padding: 8px 12px; border-radius: 999px; background: #16243A; border: 1px solid #2B3B55; color: #FFFFFF !important; text-decoration: none; font-size: 14px; font-weight: 600; }
.td-mmm-all { display: inline-block; margin-top: 14px; color: #FF7A3D !important; font-weight: 700; text-decoration: none; }
@media (prefers-reduced-motion: reduce) { .td-mm-panel, .td-mmm[open] .td-mmm-body { transition: none; animation: none; } }
/* Mobile Menükarten scrollbar halten, wenn das Modul-Menü geöffnet ist */
.td-mobile nav.td-drop, .lp-menu { max-height: calc(100vh - 90px); max-height: calc(100dvh - 90px); overflow-y: auto; overscroll-behavior: contain; }

/* Weiches Scrollen zu Ankern, mit Platz für den mitlaufenden Kopfbereich */
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 88px; }
@media (max-width: 760px) { [id] { scroll-margin-top: 76px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Mobiles Menü fliegt von oben ein und liegt über dem Inhalt */
.lp-menu { animation: tdNavIn .42s cubic-bezier(.2,.9,.25,1) both !important; }
@keyframes tdNavIn { from { opacity: 0; transform: translateY(-48px); } 60% { opacity: 1; } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lp-menu { animation: none !important; } }
/* Helles Menü auf dem Handy */.td-mnav, .lp-menu{background:#FFFFFF !important;color:#0E1A2B !important;box-shadow:0 24px 48px rgba(14,26,43,.28),0 0 0 100vmax rgba(14,26,43,.45) !important}.td-mnav [style*="color: #FFFFFF"],.lp-menu [style*="color: #FFFFFF"]{color:#0E1A2B !important}.td-mnav [style*="color: #8FA6C8"],.lp-menu [style*="color: #8FA6C8"],.td-mnav [style*="color: #B7C3D6"],.lp-menu [style*="color: #B7C3D6"],.td-mnav .td-mmm-group,.lp-menu .td-mmm-group{color:#4A5568 !important}.td-mnav [style*="border-bottom: 1px solid #22324D"],.lp-menu [style*="border-bottom: 1px solid #22324D"],.td-mnav .td-mmm-home,.lp-menu .td-mmm-home,.td-mnav .td-mmm-lp,.lp-menu .td-mmm-lp,.td-mnav .td-mmm-body,.lp-menu .td-mmm-body{border-bottom-color:#E3E7ED !important}.td-mnav .td-mmm-home,.lp-menu .td-mmm-home,.td-mnav .td-mmm-lp,.lp-menu .td-mmm-lp{color:#0E1A2B !important}.td-mnav [style*="background: #16243A"],.lp-menu [style*="background: #16243A"],.td-mnav .td-mmm-chev,.lp-menu .td-mmm-chev{background:#EEF0F3 !important}.td-mnav .td-mmm-links a,.lp-menu .td-mmm-links a{background:#F4F6F9 !important;border-color:#E3E7ED !important;color:#0E1A2B !important}.td-mnav a[style*="background: #FF7A3D"],.lp-menu a[style*="background: #FF7A3D"],.td-mnav a[style*="background: {{accent}}"],.lp-menu a[style*="background: {{accent}}"]{color:#0E1A2B !important}
.lp-menu { top: calc(70px + var(--wp-admin--admin-bar--height, 0px)) !important; }

/* Dropdown "Success Stories" */
.td-mm-s .td-mm-panel { width: min(720px, calc(100vw - 48px)); }
.td-mm-s .td-mm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.td-mm-s { position: relative; }
.td-mm-s .td-mm-panel { left: auto; right: -24px; transform: translateY(8px); }
.td-mm-s:hover .td-mm-panel, .td-mm-s:focus-within .td-mm-panel { transform: translateY(0); }
