@font-face { font-family: 'Inter'; src: url('../fonts/inter-regular.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-medium.woff') format('woff'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-semibold.woff') format('woff'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-bold.woff') format('woff'); font-weight: 700; font-display: swap; }
/* Stil wie objktiv-fotografie.de:
   Überschriften: Inter Display (freier Ersatz für Neue Haas Grotesk Display)
   Zierschrift:   Aboreto      -> Datei fonts/aboreto.woff2 ablegen (siehe ANLEITUNG)
   Fließtext:     Public Sans  -> Datei fonts/public-sans.woff2 ablegen; bis dahin Inter */
@font-face { font-family: 'Inter Display'; src: url('../fonts/inter-display-medium.woff') format('woff'); font-weight: 500 700; font-display: swap; }
@font-face { font-family: 'Aboreto'; src: url('../fonts/aboreto.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Public Sans'; src: url('../fonts/public-sans.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }

:root {
  --bg: #FCFAF7; --text: #1A1A1A; --text2: #696867; --gruen: #1A1A1A; --gruen-dunkel: #000000;
  --gruen-hell: #F1ECE5; --foto: #E9E4DD; --rand: #E4DFD8; --rand2: #CFC9C1; --weiss: #FFFFFF;
  --hinweis-bg: #F5EEE4; --hinweis: #7A5C3A;
  --kopf: 'Inter Display', 'Inter', system-ui, sans-serif;
  --zier: 'Aboreto', 'Inter Display', serif;
  --text-schrift: 'Public Sans', 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--text-schrift); font-size: 17px; line-height: 1.5; }
#app { max-width: 520px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--gruen); }
h1 { margin: 0; font-family: var(--kopf); font-weight: 500; font-size: 30px; line-height: 1.08; letter-spacing: -0.3px; text-transform: uppercase; }
h2 { margin: 0; font-family: var(--kopf); font-weight: 500; font-size: 22px; line-height: 1.15; text-transform: uppercase; letter-spacing: 0.2px; }
p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gruen); outline-offset: 2px; }

.seite { padding: 24px 20px 32px; display: flex; flex-direction: column; gap: 22px; flex: 1; }
.seite.mit-nav { padding-bottom: 110px; }
.leise { color: var(--text2); }
.klein { font-size: 15px; }
.marke { display: flex; align-items: center; gap: 12px; color: var(--text); }
.marke img { width: 56px; height: 56px; object-fit: contain; }
.marke .name { font-family: var(--zier); font-size: 17px; letter-spacing: 1.5px; text-transform: uppercase; line-height: 1.2; }
.marke .zeile2 { display: block; font-family: var(--zier); font-size: 11px; letter-spacing: 1px; color: var(--text2); }
.zier { font-family: var(--zier); letter-spacing: 1px; text-transform: uppercase; }
.kopfzeile { display: flex; align-items: center; gap: 12px; }
.rund { width: 48px; height: 48px; border-radius: 0; background: var(--weiss); border: 1px solid var(--rand); display: inline-flex; align-items: center; justify-content: center; flex: none; text-decoration: none; cursor: pointer; }

.foto { background: var(--foto); color: var(--text2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; font-size: 15px; font-weight: 500; border-radius: 0; min-height: 180px; position: relative; overflow: hidden; padding: 12px; }
.foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.feld { display: flex; flex-direction: column; gap: 8px; }
.feld > label, .feld > .etikett { font-size: 16px; font-weight: 600; }
.eingabe { min-height: 56px; border-radius: 0; border: 2px solid var(--rand2); background: var(--weiss); padding: 0 16px; font-size: 19px; width: 100%; }
.eingabe:focus { border-color: var(--gruen); outline: none; }
textarea.eingabe { padding: 14px 16px; min-height: 96px; font-size: 17px; }
.code-eingabe { font-family: ui-monospace, Menlo, monospace; letter-spacing: 2px; text-transform: uppercase; font-size: 22px; }

.knopf { min-height: 58px; border-radius: 0; background: var(--gruen); color: var(--weiss); border: none; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; text-decoration: none; cursor: pointer; padding: 0 20px; width: 100%; }
.knopf:active { background: var(--gruen-dunkel); }
.knopf[disabled] { opacity: .55; }
.knopf.rahmen { background: transparent; color: var(--gruen); border: 2px solid var(--gruen); }
.knopf.leise { background: transparent; color: var(--text); min-height: 50px; font-size: 16px; letter-spacing: 0; text-transform: none; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.knopfreihe { display: flex; flex-direction: column; gap: 10px; }

.wahl { display: flex; flex-wrap: wrap; gap: 8px; }
.wahl.drei { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wahl.zwei { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chip { min-height: 50px; padding: 0 16px; border-radius: 0; border: 2px solid var(--rand2); background: var(--weiss); font-size: 16px; font-weight: 500; cursor: pointer; }
.chip[aria-pressed="true"] { border-color: var(--gruen); background: var(--gruen); color: var(--weiss); font-weight: 600; }
.chips-scroll { display: flex; gap: 8px; overflow-x: auto; margin: 0 -20px; padding: 0 20px 4px; scrollbar-width: none; }
.chips-scroll .chip { flex: none; min-height: 46px; }

.stepper { display: flex; align-items: center; justify-content: space-between; background: var(--weiss); border: 2px solid var(--rand2); border-radius: 0; padding: 6px; }
.karte .stepper { background: var(--bg); border: none; }
.stepper button { width: 54px; height: 54px; border: none; border-radius: 0; background: var(--gruen-hell); font-size: 28px; cursor: pointer; }
.karte .stepper button { background: var(--weiss); }
.stepper .wert { font-family: var(--kopf); font-size: 28px; font-weight: 700; }

.karte { background: var(--weiss); border: 1px solid var(--rand); border-radius: 0; padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.hinweis { display: flex; gap: 12px; align-items: flex-start; background: var(--hinweis-bg); color: var(--text); border-radius: 0; padding: 16px; font-size: 16px; line-height: 1.5; }
.hinweis svg { flex: none; margin-top: 1px; }
.hinweis strong { color: var(--hinweis); }
.hinweis ul { margin: 6px 0 0; padding-left: 20px; }
.info { background: var(--gruen-hell); border-radius: 0; padding: 16px; display: flex; flex-direction: column; gap: 6px; font-size: 16px; }
.info .etikett { font-size: 15px; font-weight: 600; }
.demo-band { background: #1E2B24; color: #fff; text-align: center; font-size: 14px; padding: 6px 12px; }

.profilzeile { display: flex; align-items: center; gap: 12px; background: var(--weiss); border: 1px solid var(--rand); border-radius: 0; padding: 12px 14px; text-decoration: none; color: var(--text); font-size: 15px; }
.profilzeile span:nth-child(2) { flex: 1; }
.suche { display: flex; align-items: center; gap: 10px; background: var(--weiss); border: 2px solid var(--rand2); border-radius: 0; padding: 0 14px; min-height: 56px; }
.suche input { border: none; outline: none; flex: 1; font-size: 18px; background: transparent; min-height: 52px; }
.filterinfo { display: flex; gap: 10px; align-items: center; font-size: 15px; color: var(--text2); }
.filterinfo button { background: none; border: none; color: var(--gruen); text-decoration: underline; font-size: 15px; cursor: pointer; padding: 8px 0; }

.liste { display: flex; flex-direction: column; gap: 12px; }
.rezeptkarte { display: flex; gap: 14px; align-items: center; background: var(--weiss); border: 1px solid var(--rand); border-radius: 0; padding: 10px; text-decoration: none; color: var(--text); }
.rezeptkarte .foto { width: 92px; height: 92px; min-height: 0; border-radius: 0; flex: none; font-size: 12px; }
.rezeptkarte .txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rezeptkarte .kat { font-family: var(--zier); font-size: 12px; color: var(--text2); text-transform: uppercase; letter-spacing: 1.2px; }
.rezeptkarte .titel { font-family: var(--kopf); font-size: 18px; font-weight: 500; line-height: 1.15; text-transform: uppercase; }
.rezeptkarte .meta { font-size: 15px; color: var(--text2); }
.rezeptkarte.aus { opacity: .6; }

.nav { position: fixed; bottom: 0; left: 0; right: 0; background: var(--weiss); border-top: 1px solid var(--rand); padding: 8px 8px calc(12px + env(safe-area-inset-bottom)); z-index: 10; }
.nav > div { max-width: 520px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nav a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px; text-decoration: none; color: var(--text2); font-size: 14px; font-weight: 500; min-height: 60px; position: relative; }
.nav a[aria-current="page"] { color: var(--gruen); font-weight: 700; }
.nav .zahl { position: absolute; top: 2px; left: calc(50% + 8px); background: var(--hinweis); color: #fff; border-radius: 0; font-size: 12px; padding: 0 6px; line-height: 18px; }

.rezeptkopf { position: relative; height: 300px; border-radius: 0; }
.rezeptkopf .zurueck { position: absolute; top: calc(20px + env(safe-area-inset-top)); left: 20px; z-index: 2; }
.rezeptinhalt { background: var(--bg); position: relative; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-family: var(--zier); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; background: transparent; color: var(--text2); padding: 5px 9px; border: 1px solid var(--rand2); border-radius: 0; }
.zutat { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rand); font-size: 17px; }
.zutat .menge { font-weight: 600; white-space: nowrap; text-align: right; }
.zutat small { display: block; color: var(--text2); font-size: 14px; font-weight: 400; }
.zutat .neu { color: var(--hinweis); font-size: 14px; display: block; }
.summe { display: flex; align-items: baseline; justify-content: space-between; border-top: 1px solid var(--rand); padding-top: 12px; }
.schritt { display: flex; gap: 14px; align-items: flex-start; }
.schritt .nr { width: 34px; height: 34px; flex: none; border-radius: 0; background: var(--gruen); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 16px; }
.schritt p { margin-top: 4px; }
.fuss { font-size: 14px; color: var(--text2); text-align: center; }
.fuss a { color: var(--text2); }

.gruppe h2 { font-size: 18px; margin: 14px 0 4px; }
.posten { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rand); }
.haken { width: 44px; height: 44px; border-radius: 0; border: 2px solid var(--rand2); background: var(--weiss); flex: none; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.posten.erledigt .haken { background: var(--gruen); border-color: var(--gruen); }
.posten .was { flex: 1; min-width: 0; }
.posten .was small { display: block; color: var(--text2); font-size: 14px; }
.posten.erledigt .was > span { text-decoration: line-through; color: var(--text2); }
.posten .wieviel { font-weight: 600; white-space: nowrap; }
.daheim { background: none; border: 1px solid var(--rand2); border-radius: 0; font-size: 13px; padding: 6px 8px; color: var(--text2); cursor: pointer; min-height: 36px; }

.schritte-install { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.schritte-install li { display: flex; gap: 14px; align-items: center; background: var(--weiss); border: 1px solid var(--rand); border-radius: 0; padding: 14px; font-size: 18px; }
.schritte-install .nr { width: 36px; height: 36px; flex: none; border-radius: 0; background: var(--gruen); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }

.toast { position: fixed; left: 50%; bottom: 110px; transform: translateX(-50%); background: var(--text); color: #fff; padding: 14px 20px; border-radius: 0; font-size: 16px; z-index: 20; max-width: calc(100% - 40px); box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.fehler { color: #B3261E; font-size: 16px; font-weight: 500; }
details summary { cursor: pointer; color: var(--gruen); font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.laden { display: flex; flex: 1; align-items: center; justify-content: center; color: var(--text2); }
.nur-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.code-eingabe::placeholder { text-transform: none; letter-spacing: 0; font-family: Inter, system-ui, sans-serif; font-size: 18px; }

