:root {
    color-scheme: light;
    --schrift: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --text: #24211d;
    --hintergrund: #fffdf9;
    --akzent: #a1442c;
    --rand: #e4ddd2;
    --karte: #f6f1e9;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--schrift);
    color: var(--text);
    background: var(--hintergrund);
    line-height: 1.55;
}

main {
    max-width: 42rem;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 4rem;
}

.kopfzeile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 42rem;
    margin: 0 auto;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--rand);
}

.kopfzeile a {
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
}

.kopfzeile-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.kopfzeile-abmelden button,
.anmelde-formular button,
.upload-formular button {
    font: inherit;
    color: var(--akzent);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.rezept-bild {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 0 0 1rem;
}

.upload-formular,
.anmelde-formular {
    display: grid;
    gap: 0.5rem;
    max-width: 20rem;
}

.anmelde-formular input,
.upload-formular input {
    font: inherit;
    padding: 0.5rem;
    border: 1px solid var(--rand);
    border-radius: 0.25rem;
}

.anmelde-formular button,
.upload-formular button {
    justify-self: start;
    font-weight: 600;
}

.anmelde-fehler {
    color: var(--akzent);
}

.upload-erfolg {
    color: #2f6b3a;
}

.upload-fehler,
.upload-warnung {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background: var(--karte);
}

.upload-fehler {
    border-left: 4px solid var(--akzent);
}

.upload-fehler ul,
.upload-warnung ul {
    margin: 0.25rem 0 0;
    padding-left: 1.25rem;
}

h1, h2, h3 {
    line-height: 1.2;
}

h1 {
    margin-bottom: 0.25rem;
}

.rezept-original {
    margin: 0 0 0.75rem;
    font-style: italic;
    color: #635c50;
}

.rezept-meta {
    margin: 0 0 1.5rem;
    color: #635c50;
}

.kuechenmodus-knopf {
    display: block;
    margin: 0 0 1.5rem;
    padding: 0.5rem 1rem;
    font: inherit;
    font-weight: 600;
    color: var(--hintergrund);
    background: var(--akzent);
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
}

html.kuechenmodus {
    font-size: 130%;
}

.portionen-regler {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--karte);
    border-radius: 0.5rem;
}

.portionen-label {
    font-weight: 600;
}

.portionen-schritt {
    width: 1.75rem;
    height: 1.75rem;
    font: inherit;
    font-weight: 700;
    line-height: 1;
    color: var(--text);
    background: var(--hintergrund);
    border: 1px solid var(--rand);
    border-radius: 50%;
    cursor: pointer;
}

.portionen-eingabe {
    width: 3rem;
    font: inherit;
    text-align: center;
    padding: 0.25rem;
    border: 1px solid var(--rand);
    border-radius: 0.25rem;
}

.zutatengruppe ul {
    padding-left: 1.25rem;
}

.zutat-optional {
    color: #635c50;
}

.zutat-menge {
    font-weight: 600;
}

ol.schritte {
    padding-left: 1.25rem;
}

ol.schritte > li {
    margin-bottom: 1.5rem;
}

ol.schritte h3 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
}

.schritt-timer {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.4rem 0.75rem;
    background: var(--karte);
    border-radius: 0.5rem;
}

.timer-anzeige {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    min-width: 3ch;
}

.timer-knopf {
    font: inherit;
    font-weight: 600;
    color: var(--akzent);
    background: none;
    border: 1px solid var(--akzent);
    border-radius: 0.25rem;
    padding: 0.2rem 0.6rem;
    cursor: pointer;
}

.timer-fertig {
    background: var(--akzent);
    color: var(--hintergrund);
    animation: timer-blinken 1s ease-in-out 3;
}

.timer-fertig .timer-knopf {
    color: var(--hintergrund);
    border-color: var(--hintergrund);
}

@keyframes timer-blinken {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.notizen {
    display: grid;
    gap: 0.75rem;
}

.notiz {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background: var(--karte);
    border-left: 4px solid var(--rand);
}

.notiz h3 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
}

.notiz p {
    margin: 0;
}

.notiz-warnung {
    border-left-color: var(--akzent);
}

.rezept-verwaltung {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 2.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--rand);
    font-size: 0.875rem;
}

.rezept-verwaltung a,
.rezept-verwaltung button {
    font: inherit;
    font-size: inherit;
    color: #635c50;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
}

.rezept-verwaltung a:hover,
.rezept-verwaltung button:hover {
    color: var(--akzent);
}

.such-formular {
    display: flex;
    gap: 0.5rem;
    margin: 0 0 1.5rem;
}

.such-formular input {
    flex: 1;
    font: inherit;
    padding: 0.5rem;
    border: 1px solid var(--rand);
    border-radius: 0.25rem;
}

.such-formular button {
    font: inherit;
    font-weight: 600;
    color: var(--hintergrund);
    background: var(--akzent);
    border: none;
    border-radius: 0.25rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.such-hinweis {
    color: #635c50;
}

.rezept-liste {
    list-style: none;
    padding: 0;
}

.rezept-liste li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--rand);
}

.rezept-liste a {
    color: var(--akzent);
    text-decoration: none;
    font-weight: 600;
}

.rezept-liste a:hover {
    text-decoration: underline;
}
