/* af-foto Formulare und Terminverwaltung – 2026-08-26 */

/* Bestehende Login-Felder */
.field,
.fieldsmall,
.fbox,
.fbsmall,
.fselect {
    display: block;
    width: 100%;
    padding: .7em .8em;
    border: 1px solid var(--line);
    border-radius: 0;
    color: var(--anthracite);
    background: #fff;
    font: inherit;
}

.field:focus,
.fieldsmall:focus,
.fbox:focus,
.fbsmall:focus,
.fselect:focus {
    outline: 0;
    border-color: var(--yellow);
}

.fieldmargin { margin-bottom: 14px; }
.longform, .longred { width: 100%; }
.longred { border-color: #a13f34; }
.button, .buttonsmall {
    display: inline-block;
    padding: .7em 1em;
    border: 1px solid var(--anthracite);
    border-radius: 0;
    color: var(--anthracite);
    background: transparent;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: color .25s ease, border-color .25s ease, background-color .25s ease;
}
.button:hover, .buttonsmall:hover { color: #fff; border-color: var(--yellow); background: var(--yellow); }

/* Frontend-Buchung */
.booking-form { margin-top: clamp(38px, 5vw, 76px); }
.booking-step { min-width: 0; margin: 0 0 clamp(54px, 7vw, 100px); padding: 0; border: 0; }
.booking-step legend {
    width: 100%;
    margin-bottom: clamp(25px, 3vw, 46px);
    padding: 0 0 14px;
    border-bottom: 1px solid var(--line);
    color: var(--anthracite);
    font-size: clamp(1.25rem, 2vw, 1.85rem);
    line-height: 1.2;
}
.booking-step legend span { display: inline-block; min-width: 3em; color: var(--muted); font-size: .62em; font-weight: var(--bold); letter-spacing: .08em; vertical-align: .18em; }
.booking-slot-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(8px, 1.2vw, 18px); }
.booking-slot-option { min-width: 0; }
.booking-slot-option input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.booking-slot-option label {
    display: flex;
    flex-direction: column;
    min-height: 156px;
    padding: 20px 18px;
    border: 1px solid var(--line);
    cursor: pointer;
    transition: color .25s ease, border-color .25s ease, background-color .25s ease;
}
.booking-slot-option label:hover { color: var(--yellow); border-color: var(--yellow); }
.booking-slot-option input:focus-visible + label { outline: 2px solid var(--yellow); outline-offset: 4px; }
.booking-slot-option input:checked + label { border-color: var(--anthracite); background: #f6f6f4; }
.booking-slot-day { margin-bottom: auto; color: var(--muted); font-size: .7em; font-weight: var(--bold); letter-spacing: .08em; }
.booking-slot-date { margin-top: 18px; font-size: 1.05em; }
.booking-slot-time { color: var(--muted); font-size: .82em; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px clamp(24px, 4vw, 64px); max-width: 1120px; }
.form-group { min-width: 0; }
.form-group-wide { grid-column: 1 / -1; }
.form-group label { display: block; margin-bottom: 8px; font-size: .88em; }
.form-group label small { margin-left: .35em; color: var(--muted); font-size: .78em; }
.form-help { margin: -2px 0 10px; color: var(--muted); font-size: .78em; }
.form-control {
    display: block;
    width: 100%;
    min-height: 52px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 0;
    color: var(--anthracite);
    background: #fff;
    font: inherit;
    transition: border-color .25s ease;
}
textarea.form-control { min-height: 150px; resize: vertical; line-height: 1.5; }
select.form-control { cursor: pointer; }
.form-control:hover { border-color: #aaa; }
.form-control:focus { outline: 0; border-color: var(--yellow); }
.form-checkbox { display: flex; align-items: flex-start; gap: 13px; max-width: 960px; color: var(--grey); font-size: .86em; line-height: 1.5; cursor: pointer; }
.form-checkbox input { flex: 0 0 auto; width: 19px; height: 19px; margin: .18em 0 0; accent-color: var(--yellow); }
.form-checkbox a { text-decoration: none; border-bottom: 1px solid var(--line); transition: color .25s ease, border-color .25s ease; }
.form-checkbox a:hover { color: var(--yellow); border-color: var(--yellow); }
.booking-submit { position: relative; }
.form-submit {
    margin-top: 28px;
    padding: .75em 1.15em;
    border: 1px solid var(--anthracite);
    border-radius: 0;
    color: var(--anthracite);
    background: transparent;
    font: inherit;
    cursor: pointer;
    transition: color .25s ease, border-color .25s ease, background-color .25s ease;
}
.form-submit:hover { color: #fff; border-color: var(--yellow); background: var(--yellow); }
.form-required { margin-top: 10px; color: var(--muted); font-size: .72em; }
.form-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-notice { max-width: 980px; margin: 34px 0; padding: 18px 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.form-notice p:last-child, .form-notice ul:last-child { margin-bottom: 0; }
.form-notice-error { border-color: #a13f34; color: #71322b; }
.booking-success { max-width: 900px; margin-top: var(--space-sm); padding: clamp(28px, 4vw, 58px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.booking-success h3 { margin-bottom: .65em; font-size: clamp(2rem, 4vw, 3.5rem); }
.booking-confirmation-data { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 40px; margin: 34px 0 0; }
.booking-confirmation-data div { padding-top: 12px; border-top: 1px solid var(--line); }
.booking-confirmation-data dt { color: var(--muted); font-size: .72em; letter-spacing: .08em; text-transform: uppercase; }
.booking-confirmation-data dd { margin: 4px 0 0; }

/* Admin */
.admin-page .page-intro h1 { text-transform: none; }
.admin-shell { width: min(100% - (2 * var(--site-gutter)), 1560px); margin-inline: auto; padding-block: var(--space-md) var(--space-lg); }
.admin-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: var(--space-sm); }
.admin-header h1 { margin: 0; font-size: clamp(2.4rem, 5vw, 5.6rem); text-transform: none; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: var(--space-md); padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.admin-nav a { text-decoration: none; transition: color .25s ease; }
.admin-nav a:hover, .admin-nav a.current { color: var(--yellow); }
.admin-nav .admin-logout { margin-left: auto; color: var(--muted); }
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.admin-actions-spaced { margin-top: 24px; }
.admin-button {
    display: inline-block;
    padding: .58em .8em;
    border: 1px solid var(--anthracite);
    border-radius: 0;
    color: var(--anthracite);
    background: transparent;
    font: inherit;
    font-size: .82em;
    text-decoration: none;
    cursor: pointer;
    transition: color .25s ease, border-color .25s ease, background-color .25s ease;
}
.admin-button:hover { color: #fff; border-color: var(--yellow); background: var(--yellow); }
.admin-button-danger { border-color: #a13f34; color: #8b352d; }
.admin-section { margin-top: var(--space-sm); }
.admin-section + .admin-section { margin-top: var(--space-md); }
.admin-section h2 { margin-bottom: 24px; font-size: clamp(1.8rem, 3.2vw, 3.2rem); text-transform: none; }
.admin-form { max-width: 1000px; }
.admin-form .form-grid { max-width: none; }
.admin-inline-form { display: inline; }
.admin-table-wrap { overflow-x: auto; border-top: 1px solid var(--line); }
.admin-table { width: 100%; min-width: 850px; border-collapse: collapse; font-size: .82em; }
.admin-table th, .admin-table td { padding: 13px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.admin-table th { color: var(--muted); font-size: .78em; letter-spacing: .06em; text-transform: uppercase; }
.admin-table tr { transition: background-color .2s ease; }
.admin-table tbody tr:hover { background: #f7f7f5; }
.admin-table a { text-decoration: none; border-bottom: 1px solid transparent; }
.admin-table a:hover { color: var(--yellow); border-bottom-color: var(--yellow); }
.admin-table-subline { color: var(--muted); }
.admin-consultation-table { min-width: 1280px; }
.admin-status { font-size: .75em; font-weight: var(--bold); letter-spacing: .06em; text-transform: uppercase; }
.admin-status-booked { color: #426444; }
.admin-status-cancelled { color: #8b352d; }
.admin-meta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; max-width: 1000px; border-top: 1px solid var(--line); }
.admin-meta-grid div { display: grid; grid-template-columns: 145px 1fr; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.admin-meta-grid dt { color: var(--muted); }
.admin-meta-grid dd { margin: 0; overflow-wrap: anywhere; }

.admin-calendar-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.admin-calendar-head h2 { margin: 0; }
.admin-calendar-nav { display: flex; gap: 8px; }
.admin-calendar-scroll { overflow-x: auto; }
.admin-calendar-weekdays, .admin-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr)); min-width: 900px; }
.admin-calendar-weekdays span { padding: 8px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .72em; font-weight: var(--bold); letter-spacing: .08em; text-transform: uppercase; }
.admin-calendar-day { min-height: 145px; padding: 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.admin-calendar-day:nth-child(7n + 1) { border-left: 1px solid var(--line); }
.admin-calendar-day.is-empty { background: #fafafa; }
.admin-calendar-date { display: block; margin-bottom: 8px; color: var(--muted); font-size: .72em; }
.admin-calendar-day.is-past { background: #f5f5f3; }
.admin-calendar-day.is-past > * { opacity: .48; }
.admin-calendar-day.is-today .admin-calendar-date { color: var(--yellow); font-weight: var(--bold); }
.admin-calendar-event { display: block; margin: 0 0 5px; padding: 5px 6px; border-left: 2px solid var(--line); color: var(--anthracite); background: #f6f6f4; font-size: .69em; line-height: 1.35; text-decoration: none; }
a.admin-calendar-event:hover { color: var(--yellow); }
.admin-calendar-event-free { border-left-color: #7d9b7c; background: #f1f5f0; }
.admin-calendar-event-booked { border-left-color: var(--yellow); background: #fbf6e9; }
.admin-calendar-event-absence { border-left-color: #8b6560; background: #f6efee; }
.admin-legend { display: flex; flex-wrap: wrap; gap: 12px 25px; margin-top: 18px; color: var(--muted); font-size: .74em; }
.admin-legend span::before { content: ''; display: inline-block; width: 18px; height: 2px; margin-right: 8px; vertical-align: middle; background: var(--line); }
.admin-legend .free::before { background: #7d9b7c; }
.admin-legend .booked::before { background: var(--yellow); }
.admin-legend .absence::before { background: #8b6560; }

@media (max-width: 1100px) {
    .booking-slot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .booking-slot-grid { grid-template-columns: 1fr; }
    .booking-slot-option label { min-height: 0; padding: 17px; }
    .booking-slot-day { margin-bottom: 12px; }
    .booking-slot-date { margin-top: 0; }
    .form-grid { grid-template-columns: 1fr; gap: 22px; }
    .form-group-wide { grid-column: auto; }
    .booking-confirmation-data, .admin-meta-grid { grid-template-columns: 1fr; }
    .admin-header { align-items: flex-start; flex-direction: column; }
    .admin-nav .admin-logout { margin-left: 0; }
    .admin-meta-grid div { grid-template-columns: 110px 1fr; }
}

@media (max-width: 440px) {
    .form-submit, .admin-button { width: 100%; text-align: center; }
    .admin-actions { flex-direction: column; }
}
