/* The same saved/system theme behavior as MeinInternat, with a yellow palette. */
html { color-scheme:light; }
.theme-toggle { display:grid; place-items:center; flex-shrink:0; width:44px; height:44px; padding:0; border:1px solid #ddd8c8; border-radius:50%; background:#fff; color:var(--ink); cursor:pointer; }
.theme-toggle:hover { background:#fff4cd; border-color:#bea04b; }
.theme-toggle svg { width:20px; height:20px; }
.theme-toggle .theme-icon-sun { display:none; }
.mobile-menu .theme-toggle { display:flex; align-items:center; width:100%; height:auto; min-height:44px; gap:12px; padding:12px; margin-block:4px 8px; border-radius:10px; background:#f5f2e6; font-size:13px; }
.theme-toggle-label { flex:1; text-align:left; }
.theme-toggle-state { color:var(--muted); font-size:11px; }
@media(max-width:600px) { .header-actions>.theme-toggle { display:none; } }

html[data-theme="dark"] {
  color-scheme:dark;
  --paper:#242b33; --ink:#edf3f8; --muted:#b8c2ca;
  --blue:#f5ce59; --yellow:#f5ce59; --line:#4c535b;
  --dark-surface:#2f3740; --dark-soft:#39414a; --dark-field:#252e38;
  --dark-button-text:#292b26;
}
html[data-theme="dark"] ::selection { background:var(--yellow); color:#242b33; }
html[data-theme="dark"] .theme-toggle { background:var(--dark-surface); border-color:var(--line); }
html[data-theme="dark"] .theme-toggle:hover { background:var(--dark-soft); border-color:var(--yellow); }
html[data-theme="dark"] .theme-icon-moon { display:none; }
html[data-theme="dark"] .theme-icon-sun { display:block; }
html[data-theme="dark"] .mobile-menu .theme-toggle { background:var(--dark-soft); color:var(--ink); }
html[data-theme="dark"] .site-header { background:#242b33f5; border-bottom-color:var(--line); }
html[data-theme="dark"] .desktop-nav a { color:var(--muted); }
html[data-theme="dark"] .desktop-nav a:hover { color:var(--yellow); }
html[data-theme="dark"] .mobile-menu nav { background:var(--dark-surface); border-color:var(--line); box-shadow:0 18px 55px #11182055; }
html[data-theme="dark"] .mobile-menu nav a:hover { background:var(--dark-soft); }
html[data-theme="dark"] .header-contact,
html[data-theme="dark"] .mi-auth-submit,
html[data-theme="dark"] .contact-cta,
html[data-theme="dark"] .skip-link { background:var(--yellow); border-color:var(--yellow); color:var(--dark-button-text); }
html[data-theme="dark"] .header-contact:hover,
html[data-theme="dark"] .mi-auth-submit:hover,
html[data-theme="dark"] .contact-cta:hover { background:#ffe49a; border-color:#ffe49a; }
html[data-theme="dark"] .mi-auth-submit span { color:inherit; }
html[data-theme="dark"] .mi-auth-card { background:var(--paper); border-color:#5b5849; box-shadow:0 16px 54px #11182030; }
html[data-theme="dark"] .mi-auth-tabs { background:var(--dark-field); }
html[data-theme="dark"] .mi-auth-tabs a { color:var(--muted); }
html[data-theme="dark"] .mi-auth-tabs a[aria-current="true"] { background:var(--dark-soft); border-color:#676452; }
html[data-theme="dark"] .mi-auth-heading p,
html[data-theme="dark"] .auth-bottom,
html[data-theme="dark"] .mi-auth-ready .registration-progress { color:var(--muted); }
html[data-theme="dark"] .auth-field label,
html[data-theme="dark"] .company-choice legend { color:#d4dce1; }
html[data-theme="dark"] .auth-field input { background:var(--dark-field); border-color:#68717b; }
html[data-theme="dark"] .auth-field input::placeholder { color:#a7b6c2; }
html[data-theme="dark"] .auth-field input:focus { background:#2b333b; border-color:var(--yellow); box-shadow:0 0 0 3px #f5ce5920; }
html[data-theme="dark"] .mi-auth-forgot,
html[data-theme="dark"] .mi-auth-ready .registration-back { color:var(--yellow); }
html[data-theme="dark"] .password-toggle { color:var(--muted); }
html[data-theme="dark"] .password-toggle:hover,
html[data-theme="dark"] .password-toggle[aria-pressed="true"] { background:var(--dark-soft); color:var(--yellow); }
html[data-theme="dark"] .auth-bottom { border-color:var(--line); }
html[data-theme="dark"] .registration-progress i { background:var(--line); }
html[data-theme="dark"] .registration-progress i.is-current { background:var(--yellow); }
html[data-theme="dark"] .company-choice label { border-color:#68717b; }
html[data-theme="dark"] .company-choice label:has(input:checked) { background:#46412f; border-color:#d7b450; }
html[data-theme="dark"] .company-choice input { accent-color:var(--yellow); }
html[data-theme="dark"] .field-validation-error,
html[data-theme="dark"] .validation-summary-errors,
html[data-theme="dark"] #captcha-error { color:#ffb7be; }
html[data-theme="dark"] .auth-field .input-validation-error { background:#4a3039; border-color:#e79ba5; }

html[data-theme="dark"] .hero-surface { background:var(--dark-surface); }
html[data-theme="dark"] .hero-surface::before { border-color:#414344; }
html[data-theme="dark"] .hero-copy h1 em,
html[data-theme="dark"] .contact-surface h2 em { color:var(--yellow); }
html[data-theme="dark"] .hero-copy .eyebrow,
html[data-theme="dark"] .ia-intro .eyebrow,
html[data-theme="dark"] .process-top .eyebrow,
html[data-theme="dark"] .deadlines-intro .eyebrow,
html[data-theme="dark"] .downloads-intro .eyebrow,
html[data-theme="dark"] .faq-layout>div:first-child .eyebrow,
html[data-theme="dark"] .faq-layout h3,
html[data-theme="dark"] .internat-heading .eyebrow { color:#d9c889; }
html[data-theme="dark"] .hero-copy>p,
html[data-theme="dark"] .hero-footnote { color:var(--muted); }
html[data-theme="dark"] .status-dot { background:var(--yellow); box-shadow:0 0 0 4px #f5ce5918; }
html[data-theme="dark"] .art-orbit { border-color:#807551; }
html[data-theme="dark"] .art-note { background:#3b4249; border-color:#66614e; color:#ebe5d2; }
html[data-theme="dark"] .note-icon { background:var(--yellow); color:#392f18; }
html[data-theme="dark"] .hero-footnote { border-color:var(--line); }
html[data-theme="dark"] .hero-footnote i { background:#a59b7d; }
html[data-theme="dark"] .circle-arrow { border-color:#9b9275; }
html[data-theme="dark"] .text-link:hover .circle-arrow { background:var(--yellow); border-color:var(--yellow); color:var(--dark-button-text); }
html[data-theme="dark"] .ia-benefits .card,
html[data-theme="dark"] .download { background:var(--dark-surface); border-color:var(--line); }
html[data-theme="dark"] .ia-benefits .icon,
html[data-theme="dark"] .download .icon { background:#e7d9a8; }
html[data-theme="dark"] .process-surface { background:var(--dark-surface); }
html[data-theme="dark"] .steps { border-color:var(--line); }
html[data-theme="dark"] .num { color:var(--yellow); }
html[data-theme="dark"] .notice { background:#3a372c; border-color:#6d6241; color:#d5cba9; }
html[data-theme="dark"] .notice strong { color:#f0d784; }

html[data-theme="dark"] .deadline-country { background:var(--dark-surface); border-color:var(--line); color:var(--ink); }
html[data-theme="dark"] .deadline-country[aria-pressed=true] { background:#47412e; border-color:#b69a4e; box-shadow:inset 0 0 0 1px #b69a4e; }
html[data-theme="dark"] .country-selection { border-color:#736b50; }
html[data-theme="dark"] .deadline-country[aria-pressed=true] .country-selection { color:#292b26; background:var(--yellow); border-color:var(--yellow); }
html[data-theme="dark"] .country-flag-other { background:#494333; }
html[data-theme="dark"] .control-step { border-color:#77705a; color:#dfc879; }
html[data-theme="dark"] .deadline-controls { background:#2c333b; border-color:var(--line); }
html[data-theme="dark"] #bundesland-tabs .tab { color:var(--muted); }
html[data-theme="dark"] #bundesland-tabs .tab:hover { background:var(--dark-soft); }
html[data-theme="dark"] #bundesland-tabs .tab.active { background:var(--dark-surface); border-color:#88794e; color:var(--ink); }
html[data-theme="dark"] #bundesland-tabs .tab.active::before { background:var(--yellow); border-color:var(--yellow); }
html[data-theme="dark"] .custom-select-trigger { background:var(--dark-field); border-color:#626a72; }
html[data-theme="dark"] .custom-select-trigger:hover,
html[data-theme="dark"] .custom-select-trigger[aria-expanded=true] { background:var(--dark-soft); border-color:#b69a4e; }
html[data-theme="dark"] .internat-select-arrow { color:var(--muted); }
html[data-theme="dark"] .internat-guidance { --guidance-bg:#3f3b2e; --guidance-line:#b69a4e; box-shadow:0 10px 30px #10182040; }
html[data-theme="dark"] .custom-select-options { background:var(--dark-field); border-color:#bd9f4e; }
html[data-theme="dark"] .custom-select-search { background:var(--dark-field); }
html[data-theme="dark"] .custom-select-search-input { background:var(--dark-surface); border-color:#626a72; }
html[data-theme="dark"] .custom-select-trigger[aria-expanded=true] { border-color:var(--yellow); }
html[data-theme="dark"] .custom-select-option:hover,
html[data-theme="dark"] .custom-select-option[aria-pressed=true] { background:#494333; }
html[data-theme="dark"] .internat-summary { background:var(--dark-surface); border-color:var(--line); }
html[data-theme="dark"] .course-count { background:var(--dark-soft); color:#d5cba9; }
html[data-theme="dark"] .internat-contact-action { background:#353d42; border-color:#667064; color:var(--ink); }
html[data-theme="dark"] .internat-contact-action.contact-phone { background:#4c422b; border-color:#ac914b; }
html[data-theme="dark"] .internat-contact-action:hover { border-color:var(--yellow); }
html[data-theme="dark"] .contact-action-icon { background:#ffffff0c; color:var(--yellow); }
html[data-theme="dark"] .contact-action-label { color:#cfbf8e; }
html[data-theme="dark"] .contact-action-arrow { color:var(--yellow); }
html[data-theme="dark"] .lehrgang { background:var(--dark-surface); border-color:var(--line); }
html[data-theme="dark"] .course-number { background:#49412c; color:#f4d87e; }
html[data-theme="dark"] .course-arrival dd { color:var(--yellow); }
html[data-theme="dark"] .deadline-footnote-icon { border-color:#a99a6d; color:#d5c58f; }
html[data-theme="dark"] .deadline-status { background:#3d392d; border-color:#776944; color:#dfd7bd; }
html[data-theme="dark"] .download:nth-child(2) { background:#403d31; border-color:#706345; }
html[data-theme="dark"] .download a { border-color:var(--line); }
html[data-theme="dark"] .download a:hover { color:var(--yellow); }
html[data-theme="dark"] .faq-layout summary::after { color:var(--yellow); }
html[data-theme="dark"] .contact-surface { background:#403e33; }
html[data-theme="dark"] .contact-surface .eyebrow,
html[data-theme="dark"] .contact-details>span { color:#ead695; }
html[data-theme="dark"] .contact-description { color:#d5cfb9; }
html[data-theme="dark"] .contact-details { border-color:#776e4d; }
html[data-theme="dark"] .site-footer { background:var(--dark-surface); }

/* Shared MeinInternat cards and FAQ, using the registration accent. */
html[data-theme="dark"] .feature-section { background:#29323c; }
html[data-theme="dark"] .feature-grid { background:var(--line); border-color:var(--line); }
html[data-theme="dark"] .feature-grid article { background:var(--dark-surface); }
html[data-theme="dark"] .feature-number,
html[data-theme="dark"] .card-topline,
html[data-theme="dark"] .faq-number { color:var(--muted); }
html[data-theme="dark"] .platform-company { background:#45402f; }
html[data-theme="dark"] .card-symbol,
html[data-theme="dark"] .card-primary { border-color:#ffffff30; }
html[data-theme="dark"] .faq-intro { background:var(--dark-surface); border-color:var(--line); }
html[data-theme="dark"] .faq-intro .eyebrow,
html[data-theme="dark"] .faq-category { color:#d9c889; }
html[data-theme="dark"] .faq-list details { background:var(--dark-surface); border-color:var(--line); }
html[data-theme="dark"] .faq-list details:hover { background:var(--dark-soft); border-color:#8b805e; }
html[data-theme="dark"] .faq-list details[open]:not([data-expanded="false"]) { background:#3b3d38; border-color:#bda45c; box-shadow:0 10px 26px #11182020; }
html[data-theme="dark"] .faq-toggle { background:var(--dark-field); border-color:#8e8567; color:#ddd4b8; }
html[data-theme="dark"] .faq-list details[open]:not([data-expanded="false"]) .faq-toggle { background:var(--yellow); border-color:var(--yellow); color:var(--dark-button-text); }

/* Selected reference elements follow the same theme as the rest of the page. */
html[data-theme="dark"] .registration-preview { --preview-ink:var(--ink); --preview-muted:var(--muted); --preview-window:var(--dark-surface); --preview-soft:var(--dark-field); --preview-bar:var(--dark-soft); --preview-border:var(--line); --preview-fixed:var(--dark-soft); --preview-wait:#494332; --preview-accent:var(--yellow); --preview-side:#202831; --preview-start-shadow:0 18px 35px #11182030; --preview-end-window-shadow:0 25px 48px #11182055; --preview-end-callout-shadow:0 25px 48px #11182055; }
html[data-theme="dark"] .registration-preview .preview-window { box-shadow:var(--preview-end-window-shadow); }
html[data-theme="dark"] .preview-chrome i { background:var(--muted); }
html[data-theme="dark"] .preview-waiting { color:#ffe49a; }
html[data-theme="dark"] .ia-benefits-section { background:var(--paper); }
html[data-theme="dark"] .feature-grid.ia-benefit-grid { background:transparent; border:0; }
html[data-theme="dark"] .ia-benefit-grid article { background:var(--dark-surface); border-color:var(--line); box-shadow:none; }
html[data-theme="dark"] .ia-section-intro .eyebrow { color:#dfc879; }
html[data-theme="dark"] .ia-process-surface { background:#403d31; }
html[data-theme="dark"] .step-card { --step-panel:#303840; --step-soft:#49432f; --step-border:#655e49; --step-graphic:#f1cf6d; background:linear-gradient(155deg,#3d3e35,var(--step-panel) 60%); box-shadow:0 8px 24px #11182015; }
html[data-theme="dark"] .step-card:not(:last-child)::after { background:#403d31; border-color:#8d7845; color:var(--yellow); }
html[data-theme="dark"] .step-number { background:var(--step-panel); border-color:var(--step-border); color:var(--yellow); }
html[data-theme="dark"] .step-card:hover { border-color:#b49b57; }
html[data-theme="dark"] .step-track i.is-active { background:var(--yellow); }
html[data-theme="dark"] .ia-process-surface .notice { background:var(--dark-surface); border-left-color:var(--yellow); color:var(--muted); }
html[data-theme="dark"] .ia-process-surface .notice strong { color:var(--ink); }

html[data-theme="dark"] .ia-downloads-surface { background:#39382f; border-color:#615941; }
html[data-theme="dark"] .ia-download-section .section-intro .eyebrow { color:#dfc879; }
html[data-theme="dark"] .ia-download { background:var(--dark-surface); border-color:var(--line); box-shadow:0 8px 24px #11182015; }
html[data-theme="dark"] .download-file-icon { background:#49412c; color:var(--yellow); }
html[data-theme="dark"] .download-format { background:#403d31; border-color:#8d7845; color:#f0d68b; }
html[data-theme="dark"] .download-button { background:var(--yellow); border-color:var(--yellow); color:var(--dark-button-text); }
html[data-theme="dark"] .download-button:hover { background:#ffe49a; border-color:#ffe49a; }
