/* Public login and registration pages in the TRAUKLAR style. Loaded only on those four routes. */
body.fi-panel-couple, body.fi-panel-provider {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    background: #f8f6f1 !important;
    color: #24302c;
    font-family: Muli, Inter, ui-sans-serif, system-ui, sans-serif;
    color-scheme: light;
}

.tk-auth-header {
    position: relative;
    z-index: 30;
    border-bottom: 1px solid #ddd7cd;
    background: #f8f6f1;
}
.tk-auth-header-inner {
    display: grid;
    width: min(1600px, calc(100% - 40px));
    min-height: 72px;
    margin: auto;
    grid-template-columns: minmax(180px, 1fr) auto minmax(260px, 1fr);
    align-items: center;
    gap: 16px;
}
.tk-auth-logo { display: inline-flex; width: 180px; align-items: center; }
.tk-auth-logo img { display: block; width: 180px; height: auto; }
.tk-auth-nav { display: flex; align-items: center; justify-content: center; gap: 4px; white-space: nowrap; }
.tk-auth-nav a {
    position: relative;
    padding: 9px 8px;
    color: #243c35;
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.35;
}
.tk-auth-nav a::after {
    position: absolute;
    right: 4px;
    bottom: -1px;
    left: 4px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: #b96f57;
    content: '';
    pointer-events: none;
    transform: scaleX(0);
    transition: transform .2s ease;
}
.tk-auth-nav a:hover::after, .tk-auth-nav a:focus-visible::after { transform: scaleX(1); }
.tk-auth-actions { display: flex; align-items: center; justify-content: flex-end; gap: 16px; white-space: nowrap; }
.tk-auth-actions a { color: #243c35; font-size: .9rem; font-weight: 700; }
.tk-auth-actions a:hover { color: #b96f57; }
.tk-auth-actions .tk-auth-register {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    padding: 9px 16px;
    border-radius: 10px;
    background: #b96f57;
    color: #fff;
    font-size: .85rem;
    font-weight: 800;
}
.tk-auth-actions .tk-auth-register:hover { background: #a45d47; color: #fff; }
.tk-auth-mobile { display: none; position: relative; }
.tk-auth-mobile summary {
    display: flex;
    width: 44px;
    height: 44px;
    padding: 12px 10px;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #cbd3cc;
    border-radius: 10px;
    list-style: none;
}
.tk-auth-mobile summary::-webkit-details-marker { display: none; }
.tk-auth-mobile summary span { display: block; height: 2px; width: 100%; border-radius: 2px; background: #243c35; }
.tk-auth-mobile nav {
    position: absolute;
    z-index: 35;
    top: calc(100% + 8px);
    right: 0;
    display: grid;
    width: min(320px, calc(100vw - 24px));
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    padding: 12px;
    border: 1px solid #ddd7cd;
    border-radius: 14px;
    background: #fffdf9;
    box-shadow: 0 18px 45px rgba(28, 58, 49, .14);
}
.tk-auth-mobile nav a { padding: 10px 12px; border-radius: 8px; color: #243c35; font-size: .9rem; font-weight: 650; }
.tk-auth-mobile nav a:hover { background: #f2eee7; }

body.fi-panel-couple .fi-simple-layout, body.fi-panel-provider .fi-simple-layout {
    flex: 1 0 auto;
    min-height: auto;
    background: #f8f6f1;
}
body.fi-panel-couple .fi-simple-main-ctn, body.fi-panel-provider .fi-simple-main-ctn {
    display: block;
    width: 100%;
    margin: 0 auto;
    padding: 56px 20px 64px;
}
body.fi-panel-couple .fi-simple-main, body.fi-panel-provider .fi-simple-main {
    width: min(100%, 560px);
    max-width: 560px;
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
body:has(.tk-auth-header[data-register="true"]) .fi-simple-main { width: min(100%, 760px); max-width: 760px; }
body.fi-panel-couple .fi-simple-page, body.fi-panel-provider .fi-simple-page { width: 100%; }
body.fi-panel-couple .fi-simple-header, body.fi-panel-provider .fi-simple-header {
    display: block;
    margin: 0 0 28px;
    text-align: left;
}
body.fi-panel-couple .fi-simple-header .fi-logo, body.fi-panel-provider .fi-simple-header .fi-logo { display: none; }
.fi-simple-header-heading {
    color: #243c35 !important;
    font-family: Muli, Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: clamp(2.2rem, 4vw, 2.7rem) !important;
    font-weight: 750 !important;
    line-height: 1.1;
}
.fi-simple-header-heading::before {
    display: block;
    margin-bottom: 9px;
    color: #b96f57;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .16em;
    line-height: 1.4;
}
body.fi-panel-couple .fi-simple-header-heading::before { content: 'FÜR PAARE'; }
body.fi-panel-provider .fi-simple-header-heading::before { content: 'ANBIETERBEREICH'; }
body.fi-panel-provider:has(.tk-auth-header[data-register="true"]) .fi-simple-header-heading::before { content: 'FÜR ANBIETER & LOCATIONS'; }
.fi-simple-header-subheading { max-width: 680px; margin-top: 10px !important; color: #66736b !important; font-size: 1rem; line-height: 1.55; }
.tk-verification-note {
    display: block;
    margin: 12px 0 0;
    padding: 13px 15px;
    border: 1px solid #cfe3d5;
    border-radius: 11px;
    background: #eaf4ee;
    color: #234a3b;
    font-size: .95rem;
    line-height: 1.55;
    text-align: left;
}

body.fi-panel-couple .fi-simple-page-content > .fi-grid,
body.fi-panel-provider .fi-simple-page-content > .fi-grid {
    padding: 32px;
    border: 1px solid #e7e1d8;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 16px 50px rgba(36, 60, 53, .08);
}
.fi-sc-form { color: #24302c; }
.fi-fo-field-label { color: #243c35 !important; font-size: .9rem; font-weight: 700 !important; }
/* Filament colors these children independently, including in its dark theme. */
body.fi-panel-couple .fi-fo-field-label-content,
body.fi-panel-provider .fi-fo-field-label-content,
body.fi-panel-couple .fi-fo-radio-label-text,
body.fi-panel-provider .fi-fo-radio-label-text {
    color: #243c35 !important;
}
.fi-input-wrp, .fi-select-input-btn {
    min-height: 44px;
    border: 1px solid #d9ded6 !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: none !important;
}
.fi-input-wrp:focus-within, .fi-select-input-btn:focus-visible {
    border-color: #243c35 !important;
    outline: 2px solid rgba(36, 60, 53, .23);
    outline-offset: 1px;
}
.fi-input, .fi-select-input-btn { color: #24302c !important; }
.fi-sc-form button[type="submit"].fi-btn {
    display: flex;
    width: 100%;
    min-height: 49px;
    justify-content: center;
    border-radius: 12px;
    background: #243c35 !important;
    color: #fff !important;
    font-weight: 750;
}
.fi-sc-form button[type="submit"].fi-btn:hover { background: #34564b !important; }
.fi-sc-form button[type="submit"].fi-btn:disabled { opacity: .7; }
.fi-sc-form .fi-link, .fi-sc-form a { color: #243c35 !important; text-decoration: underline; text-underline-offset: 3px; }
.fi-sc-form .fi-link:hover, .fi-sc-form a:hover { color: #a45d47 !important; }
/* Filament draws these controls itself: a pale shadow leaves white controls invisible. */
body.fi-panel-provider .fi-sc-form .fi-radio-input,
body.fi-panel-provider .fi-sc-form .fi-checkbox-input,
body.fi-panel-couple .fi-sc-form .fi-checkbox-input {
    border: 2px solid #66736b !important;
    background-color: #fff !important;
    color: #243c35 !important;
    box-shadow: none !important;
}
body.fi-panel-provider .fi-sc-form .fi-radio-input:checked,
body.fi-panel-provider .fi-sc-form .fi-checkbox-input:checked,
body.fi-panel-couple .fi-sc-form .fi-checkbox-input:checked {
    border-color: #243c35 !important;
    background-color: #243c35 !important;
}
body.fi-panel-provider .fi-sc-form :is(.fi-radio-input, .fi-checkbox-input):focus-visible,
body.fi-panel-couple .fi-sc-form .fi-checkbox-input:focus-visible {
    outline: 3px solid #b96f57 !important;
    outline-offset: 3px;
}
/* The searchable category list is rendered outside the input and inherits theme colors. */
body.fi-panel-provider .fi-select-input-btn,
body.fi-panel-provider .fi-dropdown-panel[role="listbox"],
body.fi-panel-provider .fi-dropdown-panel[role="listbox"] .fi-input {
    background-color: #fff !important;
    color: #24302c !important;
}
body.fi-panel-provider .fi-select-input-placeholder { color: #66736b !important; }
body.fi-panel-provider .fi-select-input-btn::after {
    width: 8px;
    height: 8px;
    margin: 0 13px 4px 6px;
    border-right: 2px solid #243c35;
    border-bottom: 2px solid #243c35;
    content: '';
    flex: 0 0 auto;
    pointer-events: none;
    transform: rotate(45deg);
}
body.fi-panel-provider .fi-dropdown-panel[role="listbox"] {
    border: 1px solid #d9ded6 !important;
}
body.fi-panel-provider .fi-dropdown-panel[role="listbox"] .fi-select-input-option {
    color: #24302c !important;
}
body.fi-panel-provider .fi-dropdown-panel[role="listbox"] .fi-select-input-option:is(:hover, :focus-visible, [aria-selected="true"]) {
    background: #f2eee7 !important;
    color: #243c35 !important;
}
body.fi-panel-provider select {
    background-color: #fff !important;
    color: #24302c !important;
    border-color: #66736b !important;
    color-scheme: light;
}
body.fi-panel-provider select.fi-select-input {
    padding-right: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23243c35' stroke-width='2'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 8px;
}
body.fi-panel-provider select option { background: #fff; color: #24302c; }
.fi-sc-form .fi-section { border: 0; background: transparent; box-shadow: none; }
.fi-sc-form .fi-section-header, .fi-sc-form .fi-section-content-ctn { padding-left: 0; padding-right: 0; }
.fi-sc-form .fi-section-header-heading { color: #243c35; font-size: 1.08rem; font-weight: 800; }
.fi-sc-form .fi-section:not(:first-child) { border-top: 1px solid #e7e1d8; border-radius: 0; padding-top: 24px; }
.tk-auth-links { margin: 24px auto 0; color: #66736b; font-size: .94rem; text-align: center; line-height: 1.65; }
.tk-auth-links p + p { margin-top: 5px; }
.tk-auth-links a { color: #243c35; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.tk-auth-links a:hover { color: #a45d47; }

.tk-auth-footer { flex: 0 0 auto; padding: 20px; border-top: 1px solid #ddd7cd; background: #f2eee7; }
.tk-auth-footer-inner { display: grid; width: min(1600px, 100%); margin: auto; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px 24px; color: #65716c; font-size: .82rem; }
.tk-auth-footer-logo img { display: block; width: 130px; height: auto; }
.tk-auth-footer-inner > p { grid-column: 3; grid-row: 1; justify-self: end; text-align: right; }
.tk-auth-footer nav { display: flex; grid-column: 2; grid-row: 1; flex-wrap: wrap; justify-content: center; gap: 10px 18px; }
.tk-auth-footer nav a:hover { color: #a45d47; text-decoration: underline; }
.tk-auth-header a:focus-visible, .tk-auth-header summary:focus-visible,
.tk-auth-links a:focus-visible, .tk-auth-footer a:focus-visible { outline: 3px solid #b96f57; outline-offset: 3px; }

@media (max-width: 1319px) {
    .tk-auth-header-inner { display: flex; justify-content: space-between; }
    .tk-auth-nav { display: none; }
    .tk-auth-actions { margin-left: auto; }
    .tk-auth-mobile { display: block; }
}
@media (max-width: 1100px) {
    .tk-auth-footer-inner { display: flex; flex-direction: column; text-align: center; }
    .tk-auth-footer-inner > p { text-align: center; }
    .tk-auth-footer nav { justify-content: center; }
}
@media (max-width: 700px) {
    .tk-auth-header-inner { width: min(100% - 28px, 1600px); min-height: 64px; }
    .tk-auth-logo, .tk-auth-logo img { width: 155px; }
    .tk-auth-actions { display: none; }
    body.fi-panel-couple .fi-simple-main-ctn, body.fi-panel-provider .fi-simple-main-ctn { padding: 36px 16px 48px; }
    body.fi-panel-couple .fi-simple-page-content > .fi-grid,
    body.fi-panel-provider .fi-simple-page-content > .fi-grid { padding: 24px 20px; border-radius: 16px; }
}
