/* 1:1-Port des Legacy-Stylings (hansa-vip/public/templates/css/css.css) —
   Fontnamen und Klassen bewusst identisch, damit der Port verbatim bleibt.
   Staff-Bereiche (Tresen/Seatmap/Winner) am Ende, im selben Look. */

@font-face {
    font-family: 'Factoria-Bold';
    src: url("../fonts/Factoria-Bold-ebV0B0b.woff2") format('woff2'),
         url("../fonts/Factoria-Bold-jyr9eCP.woff") format('woff');
    font-weight: normal;
    font-display: swap;
}
@font-face {
    font-family: 'noway-regular-webfont';
    src: url("../fonts/noway-regular-webfont-SGPJ8UN.woff2") format('woff2'),
         url("../fonts/noway-regular-webfont-OneImSn.woff") format('woff');
    font-weight: normal;
    font-display: swap;
}
@font-face {
    font-family: 'noway-medium-webfont';
    src: url("../fonts/noway-medium-webfont-6A24_HJ.woff2") format('woff2'),
         url("../fonts/noway-medium-webfont-l-8iVpQ.woff") format('woff');
    font-weight: normal;
    font-display: swap;
}

body {
    background: linear-gradient(180deg, #F4F1EB 0%, #FFFFFF 51%, #F4F1EB 100%) 0% 0%;
    font-family: 'noway-regular-webfont';
    color: #333333;
    -webkit-text-size-adjust: none;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    position: relative;
}

* {
    box-sizing: border-box;
    touch-action: manipulation;
}

/* hidden-Attribut muss auch gegen display:flex/grid aus Autoren-CSS gewinnen */
[hidden] { display: none !important; }

.wrapper {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 0 0 1px #333333;
    min-height: 100vh;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
}

input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

header, footer { width: 100%; }

header img, footer img {
    width: 100%;
    display: block;
}

.content {
    text-align: center;
    width: calc(100% - 40px);
    margin: 20px auto 0;
}

h1, h2 {
    font-family: 'Factoria-Bold';
    font-weight: normal;
    color: #0079c4;
    font-size: 24px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

h2 { font-size: 20px; }

p { font-size: 16px; }

p strong {
    font-family: 'noway-medium-webfont';
    font-weight: normal;
}

p.table {
    font-size: 18px;
    text-transform: uppercase;
    font-family: 'Factoria-Bold';
    color: #0079c4;
}

p.table span.small {
    font-size: 16px;
    font-family: 'noway-regular-webfont';
    display: block;
    text-transform: none;
}

p.error, .flash-error {
    font-family: 'noway-medium-webfont';
    color: red;
    margin: 20px auto -20px;
    display: inline-block;
    width: 100%;
}

form { font-size: 16px; }

form label {
    text-align: left;
    display: block;
    font-size: 16px;
    font-family: 'noway-regular-webfont';
    margin-bottom: 5px;
}

form button,
a.button {
    background: #0080c9;
    text-align: center;
    padding: 12px 20px;
    display: inline-block;
    font-family: 'Factoria-Bold';
    font-size: 20px;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    border: none;
    outline: none;
    margin: 35px auto 50px;
    cursor: pointer;
    border-radius: 5px;
}

form button.full,
a.button.full {
    width: 100%;
    margin: 10px auto;
}

a.button.full.icon {
    width: 100%;
    margin: 10px auto;
    padding: 12px 20px 12px 60px;
    text-align: left;
}

a.button.full.icon.drinks { background: #0080c9 url("../images/icon-drinks-anroLmZ.svg") no-repeat left 10px center; }
a.button.full.icon.menu { background: #0080c9 url("../images/speisekarte-GmQCu9n.svg") no-repeat left 10px center; background-size: 30px 30px; }
a.button.full.icon.game { background: #0080c9 url("../images/icon-game-ehIhnD4.svg") no-repeat left 10px center; }
a.button.full.icon.rating { background: #0080c9 url("../images/icon-rating-UvGasIk.svg") no-repeat left 10px center; background-size: 30px 30px; }
a.button.full.icon.shop { background: #0080c9 url("../images/icon-shop-n4cOMol.svg") no-repeat left 10px center; }
a.button.full.icon.app { background: #0080c9 url("../images/icon-app-MT8BEE_.svg") no-repeat left 10px center; }
a.button.full.icon.cocktails { background: #0080c9 url("../images/cocktail-C_jFejY.svg") no-repeat left 10px center; background-size: 30px 30px; }
a.button.full.icon.kogge { background: #0080c9 url("../images/kogge-uOcKY-L.svg") no-repeat left 10px center; background-size: 30px 30px; }
a.button.full.icon.seatmap { background: #0080c9 url("../images/icon-seatmap-omL4laW.svg") no-repeat left 10px center; background-size: 30px 30px; }

/* Bestellformular (Mengen-Grid) */
form.order { margin-top: 20px; }

form.order .group {
    text-align: left;
    width: 100%;
}

form.order .group .groupname {
    font-family: 'Factoria-Bold';
    text-transform: uppercase;
    font-size: 20px;
    background: #0079c4;
    color: #fff;
    text-align: center;
    padding: 0;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: calc(100% + 40px);
    margin-left: -20px;
}

form.order input {
    width: 130px;
    height: 50px;
    text-align: center;
    background: none;
    border: none;
    outline: none;
    font-size: 16px;
    font-family: 'noway-regular-webfont';
    color: #333333;
    border-radius: 5px;
    padding: 0 10px;
}

form.order .position {
    display: flex;
    align-items: center;
    border-top: 1px solid #0080C9;
}

form.order .position.first { border: 0; }

form.order .position .name {
    font-family: 'noway-regular-webfont';
    width: calc(100% - 130px);
    text-align: left;
}

form.order .position .field { position: relative; }

form.order .position .plus,
form.order .position .minus {
    position: absolute;
    width: 40px;
    height: 40px;
    line-height: 35px;
    color: #0080C9;
    text-align: center;
    font-family: 'Factoria-Bold';
    top: 5px;
    cursor: pointer;
    user-select: none;
    font-size: 40px;
    z-index: 10;
    display: block;
}

form.order .position .plus { right: 5px; }
form.order .position .minus { left: 5px; line-height: 34px; }

form.order .position .plus.disabled,
form.order .position .minus.disabled { opacity: 0.5; }

/* Staff-Login + generische Formfelder */
form.login input,
form .formfield input {
    width: 100%;
    background: #fff;
    border: 1px solid #DDDDDD;
    font-size: 16px;
    height: 50px;
    text-align: center;
    font-family: 'noway-regular-webfont';
    color: #333333;
    border-radius: 5px;
    padding: 0 10px;
    outline: none;
    margin-bottom: 15px;
}

form .formfield input { text-align: left; margin-bottom: 0; }

form .formfields {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 30px;
}

form .formfield { width: 100%; margin: 10px 0; }

form .formfield textarea,
form textarea {
    width: 100%;
    background: #fff;
    border: 1px solid #DDDDDD;
    font-size: 16px;
    text-align: left;
    font-family: 'noway-regular-webfont';
    color: #333333;
    border-radius: 5px;
    padding: 10px;
    outline: none;
    resize: none;
}

/* Tippspiel */
form.tipp label.top {
    text-align: center;
    margin-bottom: 15px;
}

form .tippfields {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
}

form .tippfields .tippfield {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

form .tippfields .vs {
    font-size: 40px;
    margin-top: -12px;
    font-weight: bold;
    font-family: 'Factoria-Bold';
    color: #0080c9;
}

form .tippfield .team {
    font-family: 'Factoria-Bold';
    text-transform: uppercase;
    color: #0080c9;
    margin-bottom: 5px;
}

form .tippfield input {
    width: 50px;
    height: 50px;
    background: #fff;
    border: 1px solid #DDDDDD;
    margin: 0 15px;
    font-size: 20px;
    outline: none;
    text-align: center;
}

/* Bewertung (Sterne) */
form.rate label { text-align: center; }

form.rate .star {
    background: url("../images/star-blank-ED5v8Za.svg");
    background-size: 100% auto;
    width: 40px;
    height: 40px;
    display: inline-block;
    cursor: pointer;
}

form.rate .star.active {
    background: url("../images/star-gold-cQf-38i.svg");
    background-size: 100% auto;
}

form.rate .criteria { margin: 15px 0; }
form.rate .criteria .criteria-name { display: block; margin-bottom: 5px; }

/* Bilder, Kleinkram */
img.simg {
    display: block;
    margin: 15px auto 25px;
    max-width: 300px;
    max-height: 200px;
}

p.small {
    font-size: 14px;
    text-align: justify;
    font-family: 'noway-regular-webfont';
    margin: 20px 0;
}

a.back {
    color: #0079c4;
    font-family: 'Factoria-Bold';
    text-transform: uppercase;
    font-size: 18px;
    margin-top: 30px;
    display: inline-block;
    text-decoration: none;
}

.flash-success {
    font-family: 'noway-medium-webfont';
    color: #1a7f37;
    margin: 10px auto;
    display: inline-block;
    width: 100%;
}

/* Social + Presenter-Footer */
.social {
    margin: 60px auto 0;
    text-align: center;
    width: 100%;
}

.social a {
    width: 30px;
    height: 30px;
    display: inline-block;
    margin: 0 10px;
    background-size: 100% auto !important;
}

.social a.instagram { background: url("../images/instagram-HwjYH9V.svg") no-repeat left center; }
.social a.twitter { background: url("../images/twitter-P7hTlvN.svg") no-repeat left center; }
.social a.facebook { background: url("../images/facebook-OlaQ-eg.svg") no-repeat left center; }
.social a.twitch { background: url("../images/twitch-Gy_hsXp.svg") no-repeat left center; }
.social a.linkedin { background: url("../images/linked-in-pBsQoiR.png") no-repeat left center; }

span.dw {
    background: url("../images/logo-hansa-375579p.svg") no-repeat bottom center;
    background-size: 240px auto;
    width: 100%;
    height: 110px;
    display: block;
    margin: 30px auto 20px;
    padding-top: 30px;
    color: #333333;
    border-top: 1px solid #E6E1D7;
    font-family: 'noway-regular-webfont';
    text-align: center;
    align-self: flex-end;
}

span.dw::before { content: 'Dieser Service wird präsentiert von'; }

footer { align-self: flex-end; }

/* ================= Staff-Bereiche (nicht Teil des Alt-Portals, gleicher Look) ================= */

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: 5px;
    background: #0080c9; color: #fff; font-family: 'Factoria-Bold';
    font-size: 1.1rem; text-transform: uppercase; cursor: pointer;
}
.confirm-result { font-family: 'Factoria-Bold'; font-size: 1.6rem; color: #0079c4; }
.winner-card { padding: 1rem 0; border-bottom: 1px solid #E6E1D7; }
.winner-card img { border-radius: 5px; 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; }

/* Popup (Legacy #popup, per Parameter deaktiviert) */
.popup { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 9999; align-items: center; justify-content: center; }
.popup.visible { display: flex; }
.popup img { max-width: 90vw; max-height: 90vh; }
.popup button { position: absolute; top: 1rem; right: 1rem; font-size: 2rem; background: none; border: 0; color: #fff; cursor: pointer; }

/* --- Staff: dezente Kopf-/Fussleiste (kein Kunden-Kontakt, keine Portal-Grafiken) --- */
.staff-bar {
    width: 100%;
    background: #0079c4;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    font-size: 14px;
}
.staff-bar .staff-brand {
    color: #fff;
    text-decoration: none;
    font-family: 'Factoria-Bold';
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 15px;
}
.staff-bar .staff-user {
    color: rgba(255,255,255,0.85);
    display: flex; align-items: center; gap: 12px; white-space: nowrap;
}
.staff-bar .staff-user a {
    color: #fff;
    margin-left: 12px;
    text-decoration: underline;
}
.staff-footer {
    width: 100%;
    align-self: flex-end;
    text-align: center;
    color: #999;
    font-size: 12px;
    padding: 14px 0 10px;
    border-top: 1px solid #E6E1D7;
    margin-top: 30px;
}

/* Staff-Inhalte linksbuendig statt Portal-zentriert */
body.staff-wide .content { text-align: left; }
body.staff-wide h1 { font-size: 22px; }

/* Staff: Spalten-Flex statt Legacy-Zeilen-Stretch (sonst blaeht align-content
   die schmale Kopfleiste auf); Footer bleibt unten via flex:1 am Content. */
body.staff .wrapper {
    display: flex;
    flex-direction: column;
    align-content: normal;
}
body.staff .content { flex: 1 1 auto; }
body.staff .staff-footer { margin-top: 0; align-self: auto; }

/* Links, die in Wahrheit POST-Forms sind (Prefetch-sicher) */
.inline-form { display: inline; }
button.linklike {
    background: none; border: 0; padding: 0; margin: 0; cursor: pointer;
    color: #0079c4; font-family: 'Factoria-Bold'; text-transform: uppercase;
    font-size: inherit; letter-spacing: inherit;
}
/* Ghost-Pill wie der Abmelden-Button (GET auf /personal, zustandslos) */
.staff-bar .staff-user a.area-switch {
    display: inline-flex; align-items: center;
    height: 30px; padding: 0 14px; box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 999px;
    color: #fff; margin-left: 0; text-decoration: none;
    font-family: 'Factoria-Bold'; font-size: 12px; text-transform: uppercase;
}
.staff-bar .staff-user a.area-switch:hover { background: rgba(255, 255, 255, 0.14); }
.staff-bar .staff-user a.area-switch:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }
.staff-bar .logout-form { display: inline; margin-left: 12px; }
/* Pill passend zum Theme-Toggle; neutralisiert die globalen form-button-Styles */
.staff-bar .logout-form button {
    background: transparent; margin: 0; cursor: pointer;
    height: 30px; padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 999px;
    color: #fff; text-decoration: none;
    font-family: 'Factoria-Bold'; font-size: 12px; text-transform: uppercase;
}
.staff-bar .logout-form button:hover { background: rgba(255, 255, 255, 0.14); }
.staff-bar .logout-form button:focus-visible {
    outline: 2px solid #ffffff; outline-offset: 2px;
}

/* Staff = volle Browserbreite (Tablet/PC); Gast bleibt 500px-Smartphone-Spalte. */
body.staff .wrapper {
    max-width: none;
    box-shadow: none;
}
body.staff .content { text-align: left; }
body.staff h1 { font-size: 22px; }
/* Schmale Elemente nicht ueber die volle Breite ziehen */
body.staff form.login { max-width: 420px; margin: 30px auto 0; }
body.staff .login-title, body.staff form.login + * { text-align: center; }
body.staff .button-stack { max-width: 480px; }
