@font-face {
    font-family: 'Yekan';
    src: url('/assets/Yekan.woff2') format('woff2');
    font-display: swap;
}

:root {
    --gelb: #fdcf02;
    --gelb-dunkel: #e0b800;
    --text: #1a1a1a;
    --text-leise: #6b6b6b;
    --rand: #e7e7e7;
    --grund: #f7f7f8;
    --flaeche: #ffffff;
    --fehler: #e62100;
    --erfolg: #0f9d58;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Yekan', Tahoma, system-ui, sans-serif;
    background: var(--grund);
    color: var(--text);
    direction: rtl;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.huelle {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* <main> muss den Raum zwischen Kopf- und Fusszeile selbst fuellen: die
   Dehnung wirkt nur auf direkte Kinder, und .mitte/.inhalt liegen eine
   Ebene tiefer. Ohne das steht die Fusszeile mitten auf der Seite. */
#app {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Kopfzeile */
.kopf {
    background: var(--flaeche);
    border-bottom: 1px solid var(--rand);
    padding: 0 20px;
}
.kopf-innen {
    max-width: 960px;
    margin: 0 auto;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.kopf img { height: 34px; }
.kopf-rechts { display: flex; align-items: center; gap: 14px; font-size: 14px; }

/* Anmeldebereich mittig */
.mitte {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
}

.karte {
    background: var(--flaeche);
    border: 1px solid var(--rand);
    border-radius: 14px;
    padding: 32px;
    width: 100%;
    max-width: 420px;
}
.karte h1 {
    font-size: 22px;
    margin: 0 0 8px;
    font-weight: 700;
}
.karte p.leise {
    color: var(--text-leise);
    font-size: 14px;
    margin: 0 0 24px;
}

/* Inhaltsbereich nach der Anmeldung */
.inhalt {
    flex: 1;
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    padding: 28px 20px 60px;
}

label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
    font-weight: 600;
}

input, select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--rand);
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    background: var(--flaeche);
    color: var(--text);
    transition: border-color .15s;
}
input:focus, select:focus {
    outline: none;
    border-color: var(--gelb);
}
input[dir="ltr"] { direction: ltr; text-align: center; letter-spacing: 6px; font-size: 20px; }

.feld { margin-bottom: 18px; }

button {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 10px;
    background: var(--gelb);
    color: #1a1a1a;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
}
button:hover:not(:disabled) { background: var(--gelb-dunkel); }
button:disabled { opacity: .55; cursor: not-allowed; }

button.leise {
    background: transparent;
    color: var(--text-leise);
    font-weight: 600;
    font-size: 14px;
    padding: 10px;
    width: auto;
}
button.leise:hover:not(:disabled) { background: transparent; color: var(--text); text-decoration: underline; }

.meldung {
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 18px;
    display: none;
}
.meldung.sichtbar { display: block; }
.meldung.fehler { background: #fdecea; color: var(--fehler); }
.meldung.gut { background: #e8f5e9; color: var(--erfolg); }

/* Kacheln */
.kacheln {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}
.kachel {
    background: var(--flaeche);
    border: 1px solid var(--rand);
    border-radius: 14px;
    padding: 20px;
}
.kachel .beschriftung { font-size: 13px; color: var(--text-leise); margin-bottom: 4px; }
.kachel .wert { font-size: 24px; font-weight: 700; }
.kachel .einheit { font-size: 14px; font-weight: 400; color: var(--text-leise); }

h2 { font-size: 17px; margin: 0 0 14px; font-weight: 700; }

.reihe {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    align-items: end;
}
.reihe button { width: auto; padding: 12px 24px; white-space: nowrap; }

.preis {
    margin-top: 18px;
    padding: 18px;
    background: #fffdf0;
    border: 1px solid var(--gelb);
    border-radius: 10px;
    display: none;
}
.preis.sichtbar { display: block; }
.preis .zahl { font-size: 26px; font-weight: 700; }

.fuss {
    text-align: center;
    padding: 20px;
    font-size: 13px;
    color: var(--text-leise);
}

.versteckt { display: none !important; }

@media (max-width: 620px) {
    .reihe { grid-template-columns: 1fr; }
    .reihe button { width: 100%; }
    .karte { padding: 24px; }
}
