/* Angleichung der älteren Seiten (Kundenbereich, Admin, Rechtstexte) an das neue Design.
   Wird nach Tailwind geladen; Kopf- und Fußzeile kommen aus neu.css. */
body.vt-legacy { background: var(--navy-900); }
.vt-legacy main { line-height: 1.5; }

/* Tailwind-Preflight setzt Buttons transparent – Header-Buttons wiederherstellen */
.vt-legacy .site-header .btn--login, .vt-legacy .mobile-nav .btn--login { background: #1c2c3f; border: 1px solid var(--line-4); color: #fff; }
.vt-legacy .site-header .btn--primary, .vt-legacy .mobile-nav .btn--primary { background: var(--orange); }
.vt-legacy .menu-toggle, .vt-legacy .header-call { background: #1c2c3f; border: 1px solid var(--line-4); }
.vt-legacy .btn--login svg { width: 18px; height: 18px; }
.btn--notdienst { background: #9f1c1c; border: 1px solid #c03535; color: #fff; }
.btn--notdienst:hover { background: #b42318; }
.vt-legacy .site-header .btn--notdienst, .vt-legacy .mobile-nav .btn--notdienst { background: #9f1c1c; }
.user-greeting { font-size: 14px; color: var(--text-3); white-space: nowrap; }
@media (max-width: 1100px) { .user-greeting { display: none; } }

/* Farbpalette: altes Grau → Navy, altes Orange → neues Orange */
.vt-legacy .bg-gray-950 { background-color: var(--navy-950); }
.vt-legacy .bg-gray-900 { background-color: var(--navy-900); }
.vt-legacy .bg-gray-900\/80 { background-color: rgba(10, 22, 37, .8); }
.vt-legacy .bg-gray-800 { background-color: var(--navy-800); }
.vt-legacy .bg-gray-700 { background-color: #1c2c3f; }
.vt-legacy .border-white\/10 { border-color: var(--line-1); }
.vt-legacy .text-orange-400, .vt-legacy .hover\:text-orange-400:hover { color: var(--orange-soft); }
.vt-legacy .text-orange-500 { color: var(--orange-soft); }
.vt-legacy .bg-orange-600, .vt-legacy .bg-orange-500 { background-color: var(--orange); }
.vt-legacy .hover\:bg-orange-500:hover, .vt-legacy .hover\:bg-orange-600:hover { background-color: var(--orange-hover); }
.vt-legacy .bg-orange-600.text-black, .vt-legacy .bg-orange-500.text-black { color: #fff; }
.vt-legacy .rounded-2xl { border-radius: 20px; }

/* Rechtstexte */
.vt-legacy main section > .max-w-3xl h1 { font-weight: 800; }
@media (max-width: 640px) { .header-actions .btn--notdienst { display: none; } }

/* Login-Hinweis /konto und /admin */
.login-gate { min-height: 60vh; display: flex; align-items: center; }
.login-gate .container { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.login-gate .text a { color: var(--orange-soft); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.login-gate.hidden { display: none; }
.vt-legacy .nav a { white-space: nowrap; }
@media (max-width: 1499px) { .user-greeting { display: none; } }

/* Kundenbereich (hauspass.css): Farben und Breite wie die neue Website, kein Abstand mehr für den alten fixen Header */
.vt-legacy .hp { --hp-bg: var(--navy-900); --hp-card: #12243b; --hp-card-2: #0f1e33; --hp-orange: var(--orange); --hp-orange-hi: var(--orange-soft); padding-top: 24px; }
.vt-legacy .hp-wrap { max-width: calc(var(--container) + 2 * var(--gutter)); padding: 0 var(--gutter); }
/* Tailwind bringt eine eigene .container-Klasse mit – für Kopf/Fuß die Werte aus neu.css erzwingen */
.vt-legacy .container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.vt-legacy .container--narrow { max-width: calc(880px + 2 * var(--gutter)); }

/* Login: Umschalter Passwort / Login-Link */
.login-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line-1); }
.vt-legacy .login-tabs button { min-height: 40px; border-radius: 9px; background: transparent; font-size: 14px; font-weight: 600; color: var(--text-3); transition: background-color .15s, color .15s; }
.vt-legacy .login-tabs button:hover { color: #fff; }
.vt-legacy .login-tabs button[aria-selected="true"] { background: #fff; color: var(--navy-ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .35); }

/* Admin: Anfragen (contact_requests) */
.req-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 12px; font-weight: 700; vertical-align: 1px; }
.req-badge.hidden { display: none; }
.req-card { padding: 20px; border: 1px solid var(--line-2); border-left: 4px solid var(--orange); border-radius: 14px; background: var(--navy-800); }
.req-card--in_bearbeitung { border-left-color: #d4a017; }
.req-card--erledigt { border-left-color: #3f8f4f; opacity: .85; }
.req-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.req-when { margin-right: 4px; font-size: 14px; font-weight: 700; color: #fff; }
.req-chip { padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #263447; color: var(--text-2); }
.req-chip--ersttermin, .req-chip--terminbuchung { background: #183457; color: #8dbbef; }
.req-chip--notdienst { background: #5a1d1d; color: #ffb4a0; }
.req-chip--bewerbung { background: #3a2a4d; color: #d3b8f5; }
.req-chip--status-neu { background: #4a2a16; color: var(--orange-soft); }
.req-chip--status-in_bearbeitung { background: #4a3d12; color: #f3d36b; }
.req-chip--status-erledigt { background: #1f3a2f; color: #9bd07a; }
.req-chip--verified { background: #1f3a2f; color: #9bd07a; }
.req-chip--muted { background: transparent; border: 1px solid var(--line-3); color: var(--text-4); }
.req-chip--warn { background: #5a1d1d; color: #ffb4a0; }
.req-topic { margin-top: 10px; font-size: 17px; font-weight: 700; color: #fff; }
.req-grid { margin-top: 8px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 4px 20px; font-size: 14px; color: var(--text-2); }
.req-grid a { color: var(--orange-soft); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.req-label { color: var(--text-4); }
.req-message { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: rgba(255, 255, 255, .05); font-size: 14px; line-height: 1.5; color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.req-tasks { margin-top: 10px; padding-left: 20px; list-style: disc; font-size: 14px; color: var(--text-3); }
.req-actions { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.vt-legacy .req-btn { min-height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line-4); background: #1c2c3f; font-size: 13px; font-weight: 600; color: #fff; }
.vt-legacy .req-btn:hover { border-color: #66778c; }
.vt-legacy .req-btn--danger { border-color: #7a2a2a; color: #ffb4a0; }
