/* Basis-Styling nach React-/Legacy-Vorlage (hansa-vip-react/vip _variables.scss / _main.scss).
   WP-0: Grundgeruest; Feinschliff je Bereich in WP-1..4. */

@font-face {
    font-family: 'Factoria';
    src: url("../fonts/Factoria-Bold-ebV0B0b.woff2") format('woff2'),
         url("../fonts/Factoria-Bold-jyr9eCP.woff") format('woff');
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: 'noway';
    src: url("../fonts/noway-regular-webfont-SGPJ8UN.woff2") format('woff2'),
         url("../fonts/noway-regular-webfont-OneImSn.woff") format('woff');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'noway';
    src: url("../fonts/noway-bold-webfont-MTTtuW3.woff2") format('woff2'),
         url("../fonts/noway-bold-webfont-qikPRmk.woff") format('woff');
    font-weight: 700;
    font-display: swap;
}

:root {
    --hansa-blue: #0080c9;
    --hansa-red: #d60202;
    --bg-beige: #f4f1eb;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'noway', Arial, sans-serif;
    color: #222;
    background: linear-gradient(180deg, var(--bg-beige) 0%, #fff 50%, var(--bg-beige) 100%);
    min-height: 100vh;
}

h1, h2, h3 {
    font-family: 'Factoria', 'noway', sans-serif;
    text-transform: uppercase;
    color: var(--hansa-blue);
}

.wrapper {
    max-width: 500px;
    margin: 0 auto;
    padding: 1rem;
}

.site-header img, .site-footer img {
    display: block;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    height: auto;
}

.button {
    display: block;
    background: var(--hansa-blue);
    color: #fff;
    text-decoration: none;
    text-align: center;
    font-family: 'Factoria', sans-serif;
    text-transform: uppercase;
    padding: 0.9rem 1rem;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}
.button.full { width: 100%; margin-bottom: 0.75rem; }
.button:hover { filter: brightness(1.08); }

.button-stack { display: flex; flex-direction: column; }

form label { display: block; margin: 0.75rem 0 0.25rem; font-weight: 700; }
form input[type="text"], form input[type="password"], form input[type="number"],
form input[type="email"], form textarea {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font: inherit;
}
form button[type="submit"] { margin-top: 1rem; }

.flash { padding: 0.75rem 1rem; border-radius: 4px; margin-bottom: 1rem; }
.flash-error { background: #fdecea; color: var(--hansa-red); border: 1px solid var(--hansa-red); }
.flash-success { background: #eaf7ee; color: #1a7f37; border: 1px solid #1a7f37; }

a.back { display: inline-block; margin-bottom: 1rem; color: var(--hansa-blue); text-decoration: none; }

/* --- Gast-Flows (WP-1) --- */
p.table { font-family: 'Factoria', sans-serif; font-size: 1.4rem; color: var(--hansa-blue); text-transform: uppercase; }
p.table .small { display: block; font-family: 'noway', sans-serif; font-size: 0.9rem; text-transform: none; color: #555; }

.order-position {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.5rem 0; border-bottom: 1px solid #e5e0d5;
}
.qty-controls { display: flex; align-items: center; gap: 0.4rem; }
.qty-controls input { width: 3.2rem; text-align: center; }
.qty-btn {
    width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 0;
    background: var(--hansa-blue); color: #fff; font-size: 1.3rem; cursor: pointer; line-height: 1;
}
.qty-btn.disabled { opacity: 0.35; pointer-events: none; }

.rating-row { display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid #e5e0d5; }
.stars { font-size: 1.6rem; cursor: pointer; user-select: none; }
.star { color: #c8c2b4; }
.star.active { color: #f2b01e; }

.tippfields { display: flex; align-items: center; gap: 0.8rem; margin: 0.5rem 0 1rem; }
.tippfield { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; }
.tippfield input { width: 4.5rem; text-align: center; font-size: 1.4rem; }
.tippfield .team { font-family: 'Factoria', sans-serif; text-transform: uppercase; color: var(--hansa-blue); }
.tipp-divider { font-size: 2rem; font-weight: 700; }
p.small { font-size: 0.75rem; color: #666; line-height: 1.5; }

.popup { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 50; align-items: center; justify-content: center; }
.popup.visible { display: flex; }
.popup img { max-width: 90%; max-height: 80vh; }
.popup button { position: absolute; top: 1rem; right: 1rem; font-size: 2rem; background: none; border: 0; color: #fff; cursor: pointer; }

/* --- Tresen (WP-2) --- */
body.staff-wide .wrapper { max-width: 1200px; }
.counters { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.counterbox {
    display: block; width: 100%; padding: 2rem 1rem; border: 0; border-radius: 6px;
    background: var(--hansa-blue); color: #fff; font-family: 'Factoria', sans-serif;
    font-size: 1.1rem; text-transform: uppercase; cursor: pointer;
}
.counter-name a, .view-toggle a { color: var(--hansa-blue); text-decoration: none; }
.ordertable .row {
    display: flex; align-items: flex-start; gap: 1rem;
    padding: 0.7rem 0; border-bottom: 1px solid #e5e0d5;
}
.ordertable .row.head { font-family: 'Factoria', sans-serif; text-transform: uppercase; color: var(--hansa-blue); }
.col-table { flex: 0 0 160px; font-size: 1.2rem; }
.col-table .small { display: block; font-size: 0.8rem; color: #666; }
.col-positions { flex: 1; }
.col-status { flex: 0 0 80px; text-align: center; }
.status-btn {
    width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer;
}
.status-btn.change { background: var(--hansa-red); }
.status-btn.ready { background: #1a7f37; }
.empty { color: #666; padding: 1rem 0; }

/* --- Tischplan (WP-3) --- */
.seatmap-head { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.seatmap-search { display: flex; gap: 0.5rem; flex: 1; min-width: 260px; }
.seatmap-search input[type="search"] { flex: 1; padding: 0.5rem; border: 1px solid #ccc; border-radius: 4px; }
.seatmap-areas a { margin-left: 0.8rem; color: var(--hansa-blue); text-decoration: none; text-transform: uppercase; font-family: 'Factoria', sans-serif; }
.seatmap-areas a.active { border-bottom: 3px solid var(--hansa-blue); }
.search-results { margin: 0.5rem 0 1rem; }
.search-results a { display: block; padding: 0.3rem 0; color: var(--hansa-blue); }
.field-scroll { overflow: auto; border: 1px solid #d8d2c4; background: #fff; max-height: 75vh; }
.field { position: relative; width: 2965px; height: 1000px; font-family: 'Factoria', sans-serif; }
.field .element {
    position: absolute; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 13px; border-radius: 3px; overflow: hidden;
}
.field .table-el { cursor: pointer; }
.field .element[style*="background:#ffffff"], .field .element[style*="background: #ffffff"] { color: #333; border: 1px solid var(--hansa-blue); }
.field .notable { color: #555; background: transparent; }
.field .door { background: #c8c2b4; color: #333; }
.field .marker { border-radius: 50%; }
.field .highlighted { animation: pulse 1s ease-in-out 3; z-index: 10; }
@keyframes pulse { 50% { transform: scale(1.6); } }
.infobox {
    position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
    background: var(--hansa-blue); color: #fff; padding: 0.7rem 1.2rem; border-radius: 6px; z-index: 60;
}

/* --- Winner (WP-4) --- */
.confirm-result { font-family: 'Factoria', sans-serif; font-size: 1.6rem; color: var(--hansa-blue); }
.winner-card { padding: 1rem 0; border-bottom: 1px solid #e5e0d5; }
.winner-card img { border-radius: 4px; max-width: 100%; }
.winner-name { font-size: 1.3rem; margin: 0.5rem 0 0.2rem; }
.winner-area, .winner-phone { margin: 0.1rem 0; color: #444; }
