/* ============================================================
   Vor-Ort-Termin Buchungstool – Design angelehnt an
   forstbetrieb-herter.de (YOOtheme/UIkit)
   Primär: #97BE0D · Akzent: #F29400 · Fonts: Arvo, Caveat Brush
   ============================================================ */

:root {
    --green:        #97BE0D;
    --green-dark:   #7a9c08;
    --green-soft:   #f3f7e3;
    --orange:       #F29400;
    --orange-dark:  #d98300;
    --ink:          #2d2e33;
    --ink-soft:     #6c6d74;
    --line:         #e5e5e7;
    --line-soft:    #f1f1f2;
    --bg:           #f7f7f7;
    --white:        #ffffff;
    --radius:       10px;
    --shadow:       0 6px 24px rgba(45,46,51,.08);
    --shadow-sm:    0 2px 8px rgba(45,46,51,.06);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Arvo', Georgia, serif;
    background: var(--bg);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--green-dark); }

/* ---------- Layout ---------- */
.fh-wrap { max-width: 860px; margin: 0 auto; padding: 0 18px; }
.fh-wrap--wide { max-width: 1100px; }

.fh-header {
    background: var(--white);
    border-bottom: 4px solid var(--green);
    box-shadow: var(--shadow-sm);
}
.fh-header__inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 0; gap: 16px; flex-wrap: wrap;
}
.fh-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.fh-brand__logo { width: 48px; height: auto; flex: 0 0 auto; display: block; }
.fh-brand__name { font-size: 20px; font-weight: 700; line-height: 1.1; }
.fh-brand__sub  { font-size: 13px; color: var(--ink-soft); font-family: Georgia, serif; }
.fh-header__link { font-size: 14px; color: var(--ink-soft); text-decoration: none; }
.fh-header__link:hover { color: var(--green-dark); }

.fh-main { padding: 36px 0 64px; }

.fh-hero { text-align: center; margin-bottom: 30px; }
/* Überschriften wie auf forstbetrieb-herter.de: Arvo, Gewicht 400 */
.fh-hero h1 { font-size: 30px; margin: 0 0 8px; font-weight: 400; }
.fh-hero .fh-script {
    font-family: 'Caveat Brush', 'Arvo', cursive; color: var(--green-dark);
    font-size: 26px; display: block; margin-bottom: 4px; font-weight: 400;
}
.fh-hero p { color: var(--ink-soft); margin: 0 auto; max-width: 620px; }

/* ---------- Card ---------- */
.fh-card {
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 30px;
}
.fh-card + .fh-card { margin-top: 20px; }
.fh-card h2 { font-size: 21px; margin: 0 0 6px; font-weight: 400; }
.fh-card__sub { color: var(--ink-soft); margin: 0 0 24px; font-family: Georgia, serif; }

/* ---------- Stepper ---------- */
.fh-steps { display: flex; gap: 0; margin: 0 auto 30px; max-width: 620px; padding: 0; list-style: none; }
.fh-steps li {
    flex: 1; text-align: center; position: relative;
    color: var(--ink-soft); font-size: 14px;
}
.fh-steps li::before {
    content: ""; position: absolute; top: 16px; left: -50%; width: 100%; height: 3px;
    background: var(--line); z-index: 0;
}
.fh-steps li:first-child::before { display: none; }
.fh-steps .num {
    position: relative; z-index: 1; display: inline-grid; place-items: center;
    width: 34px; height: 34px; border-radius: 50%; background: var(--white);
    border: 3px solid var(--line); color: var(--ink-soft); font-weight: 700; margin-bottom: 6px;
}
.fh-steps li.is-active .num { border-color: var(--green); color: var(--green-dark); background: var(--green-soft); }
.fh-steps li.is-active { color: var(--ink); font-weight: 700; }
.fh-steps li.is-done .num { border-color: var(--green); background: var(--green); color: #fff; }
.fh-steps li.is-done::before { background: var(--green); }

/* ---------- Forms ---------- */
.fh-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.fh-field { display: flex; flex-direction: column; gap: 6px; }
.fh-field--full { grid-column: 1 / -1; }
.fh-field--street { grid-column: span 1; }
.fh-field label { font-size: 14px; font-weight: 700; }
.fh-field label .req { color: var(--orange); }
.fh-field input, .fh-field select, .fh-field textarea {
    font-family: inherit; font-size: 16px; padding: 12px 14px;
    border: 1.5px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink);
    transition: border-color .15s, box-shadow .15s;
    width: 100%;
}
.fh-field textarea { min-height: 96px; resize: vertical; }
.fh-field input:focus, .fh-field select:focus, .fh-field textarea:focus {
    outline: none; border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(151,190,13,.18);
}
.fh-field input.is-error, .fh-field select.is-error { border-color: #c0392b; }
.fh-field .hint { font-size: 12px; color: var(--ink-soft); }

.fh-street-row { display: grid; grid-template-columns: 3fr 1fr; gap: 18px; grid-column: 1 / -1; }
.fh-plz-row    { display: grid; grid-template-columns: 1fr 2fr; gap: 18px; grid-column: 1 / -1; }

/* ---------- Buttons ---------- */
.fh-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
    border: 1.5px solid transparent; border-radius: 8px; padding: 13px 26px; text-decoration: none;
    transition: background .15s, color .15s, border-color .15s, transform .05s; line-height: 1.2;
}
.fh-btn:active { transform: translateY(1px); }
/* Hover wie auf forstbetrieb-herter.de: Vollfläche invertiert zu Outline */
.fh-btn--primary { background: var(--green); color: #fff; }
.fh-btn--primary:hover:not([disabled]) { background: transparent; color: var(--green-dark); border-color: var(--green); }
.fh-btn--accent { background: var(--orange); color: #fff; }
.fh-btn--accent:hover:not([disabled]) { background: transparent; color: var(--orange-dark); border-color: var(--orange); }
.fh-btn--ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.fh-btn--ghost:hover { border-color: var(--ink-soft); }
.fh-btn--sm { padding: 8px 14px; font-size: 14px; }
.fh-btn--danger { background: #fff; color: #c0392b; border: 1.5px solid #e3b9b3; }
.fh-btn--danger:hover { background: #c0392b; color: #fff; }
.fh-btn[disabled] { opacity: .5; cursor: not-allowed; }

.fh-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.fh-actions--end { justify-content: flex-end; }

/* ---------- Slots ---------- */
.fh-travel-note {
    background: var(--green-soft); border: 1px solid #d8e7a6; border-radius: 8px;
    padding: 14px 18px; margin-bottom: 24px; font-size: 15px; display: flex; gap: 10px; align-items: flex-start;
}
.fh-travel-note strong { color: var(--green-dark); }
.fh-day { margin-bottom: 26px; }
.fh-day__head { font-size: 17px; font-weight: 700; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.fh-day__note { font-weight: 400; color: var(--ink-soft); font-size: 14px; font-family: Georgia, serif; }
.fh-slotgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.fh-slot {
    position: relative; border: 1.5px solid var(--line); border-radius: 8px; background: #fff;
    padding: 14px 10px; text-align: center; cursor: pointer; transition: all .12s; font-weight: 700;
}
.fh-slot small { display: block; font-weight: 400; color: var(--ink-soft); font-size: 12px; margin-top: 2px; font-family: Georgia, serif; }
.fh-slot:hover { border-color: var(--green); background: var(--green-soft); }
.fh-slot input { position: absolute; opacity: 0; }
.fh-slot.is-selected { border-color: var(--green); background: var(--green); color: #fff; }
.fh-slot.is-selected small { color: rgba(255,255,255,.85); }

/* ---------- Monatskalender (Schritt 2) ---------- */
.fh-cal { margin-bottom: 10px; }
.fh-cal__head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; margin-bottom: 14px;
}
.fh-cal__title { font-size: 18px; }
.fh-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.fh-cal__dow { text-align: center; font-size: 13px; font-weight: 700; color: var(--ink-soft); padding: 4px 0; }
.fh-cal__day {
    display: grid; place-items: center; min-height: 48px;
    border-radius: 8px; border: 1.5px solid var(--line-soft);
    color: var(--ink-soft); font-weight: 700; background: #fafafa;
    text-decoration: none;
}
.fh-cal__day.is-empty { border: none; background: transparent; }
.fh-cal__day.is-past { opacity: .4; }
.fh-cal__day.is-avail {
    background: var(--green-soft); border-color: var(--green); color: var(--green-dark);
    cursor: pointer; transition: all .12s;
}
.fh-cal__day.is-avail:hover { background: var(--green); color: #fff; }
.fh-cal__day.is-selected { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------- Bild-Upload ---------- */
.fh-field input[type="file"] { padding: 10px 12px; background: #fafafa; cursor: pointer; }
.fh-field input[type="file"].is-enhanced { display: none; } /* JS aktiv: Buttons übernehmen */
.fh-upload-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.fh-upload-preview { display: flex; gap: 12px; flex-wrap: wrap; }
.fh-upload-preview:empty { display: none; }
.fh-upload-item { position: relative; display: inline-block; }
.fh-upload-item .fh-thumb { width: 68px; height: 68px; margin: 0; }
.fh-upload-remove {
    position: absolute; top: -8px; right: -8px; width: 24px; height: 24px;
    border: none; border-radius: 50%; background: #c0392b; color: #fff;
    font-size: 15px; font-weight: 700; line-height: 1; cursor: pointer; padding: 0;
}
.fh-upload-remove:hover { background: #a5281b; }
.fh-upload-info { font-size: 13px; color: var(--ink-soft); min-height: 1em; }
.fh-upload-info.is-error { color: #a5281b; }

/* Bild-Vorschau in der Buchungsliste */
.fh-thumb {
    width: 52px; height: 52px; object-fit: cover; border-radius: 6px;
    border: 1px solid var(--line); vertical-align: middle; margin-right: 4px;
}

/* ---------- Summary / confirmation ---------- */
.fh-summary { list-style: none; padding: 0; margin: 0; }
.fh-summary li { display: flex; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.fh-summary li:last-child { border-bottom: none; }
.fh-summary .k { color: var(--ink-soft); width: 150px; flex: 0 0 auto; }
.fh-summary .v { font-weight: 700; }

.fh-success { text-align: center; padding: 14px 0; }
.fh-success__icon {
    width: 72px; height: 72px; border-radius: 50%; background: var(--green); color: #fff;
    display: grid; place-items: center; margin: 0 auto 18px; font-size: 38px;
}
.fh-ref { display: inline-block; background: var(--green-soft); border: 1px dashed var(--green);
    border-radius: 8px; padding: 6px 16px; font-weight: 700; letter-spacing: 1px; color: var(--green-dark); }

/* ---------- Alerts ---------- */
.fh-alert { border-radius: 8px; padding: 14px 18px; margin-bottom: 20px; font-size: 15px; }
.fh-alert--error   { background: #fdecea; border: 1px solid #f5c6c1; color: #a5281b; }
.fh-alert--success { background: var(--green-soft); border: 1px solid #d8e7a6; color: var(--green-dark); }
.fh-alert--info    { background: #fff7e8; border: 1px solid #f6dca0; color: #8a5a00; }
.fh-empty { text-align: center; color: var(--ink-soft); padding: 30px 10px; }

/* ============================================================
   Admin
   ============================================================ */
.fh-login { max-width: 380px; margin: 70px auto; }
.fh-admin-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.fh-tab {
    text-decoration: none; padding: 10px 18px; border-radius: 8px; font-weight: 700; font-size: 15px;
    background: #fff; color: var(--ink); border: 1.5px solid var(--line);
}
.fh-tab.is-active { background: var(--green); color: #fff; border-color: var(--green); }

.fh-table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
.fh-table th, .fh-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.fh-table th { background: var(--green-soft); color: var(--ink); font-size: 13px; text-transform: uppercase; letter-spacing: .03em; }
.fh-table tr:hover td { background: #fafbf5; }
.fh-table .muted { color: var(--ink-soft); }
.fh-table .nowrap { white-space: nowrap; }

.fh-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.fh-badge--on  { background: var(--green-soft); color: var(--green-dark); }
.fh-badge--off { background: #f1f1f2; color: var(--ink-soft); }
.fh-badge--cancel { background: #fdecea; color: #a5281b; }

.fh-inline-form { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.fh-inline-form .fh-field { gap: 4px; }

@media (max-width: 640px) {
    .fh-grid { grid-template-columns: 1fr; }
    .fh-street-row, .fh-plz-row { grid-template-columns: 1fr 1fr; }
    .fh-card { padding: 22px 18px; }
    .fh-hero h1 { font-size: 24px; }
    .fh-steps li span.lbl { display: none; }
    .fh-table { font-size: 13px; }
    .fh-table th, .fh-table td { padding: 9px 8px; }
}
