/* Gemeinsame Gestaltung von eisrose.it und FoodJournal. */
:root {
  color-scheme: dark;
  --bg-light: #e6f0f8;
  --bg-dark: #0f172a;
  --ink: #e2e8f0;
  --text: #e2e8f0;
  --muted: #b0bfd2;
  --card: rgba(15, 23, 42, .75);
  --border: rgba(148, 163, 184, .35);
  --card-border: var(--border);
  --radius: 16px;
  --paper: var(--card);
  --green: #60a5fa; /* Bestehende Seiten verwenden diesen Variablennamen. */
  --link: #60a5fa;
  --link-hover: #93c5fd;
  --shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background-color: #102338;
  background-image: linear-gradient(rgba(8, 22, 40, .12), rgba(8, 22, 40, .28)), url('../arctic-background.png');
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}
main {
  max-width: 1100px;
  width: calc(100% - 40px);
  margin: 32px auto;
  padding: 32px 24px 40px;
  background: rgba(15, 23, 42, .9);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }
.brand, .logo { color: #f1f5f9; font-size: 22px; font-weight: 750; }
.brand { text-decoration: none; }
h1 { font-size: 32px; margin: 0 0 20px; }
h2 { font-size: 22px; margin-top: 0; }
h1, h2, h3, strong { color: #f8fafc; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin: 24px 0;
  box-shadow: var(--shadow);
}
.narrow { max-width: 520px; }
label { display: block; font-weight: 600; margin: 16px 0; color: var(--text); }
input, select {
  width: 100%;
  padding: 11px 12px;
  font: inherit;
  border: 1px solid #64748b;
  border-radius: 8px;
  margin-top: 6px;
  color: #f1f5f9;
  background: #111d32;
}
input { display: block; }
input::placeholder { color: #a3b3c7; opacity: 1; }
select option { background: #111d32; color: #f1f5f9; }
input:focus, select:focus {
  outline: 3px solid #60a5fa;
  outline-offset: 2px;
  border-color: #93c5fd;
}
button {
  font: inherit;
  font-weight: 650;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 11px 18px;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
}
button:hover { background: #1d4ed8; }
button:disabled { opacity: .5; cursor: default; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 4px;
}
.muted, small, th { color: var(--muted); }
.message, .error { padding: 14px 18px; border-radius: 10px; margin: 20px 0; }
.message { background: #153d3d; color: #d0fae5; border: 1px solid #377b70; }
.error, .message.error { background: #4a2331; color: #ffe4e6; border: 1px solid #b86779; }






summary { color: var(--link); cursor: pointer; }

.secondary { background: #27364d; color: var(--text); border-color: #64748b; }
.secondary:hover { background: #334764; }
.total { background: rgba(59, 130, 246, .15); border: 1px solid var(--border); }
.total strong { color: #f8fafc; }
.delete { background: transparent; color: #fda4af; border: 0; }
.delete:hover { background: transparent; color: #fecdd3; }
th, td { border-bottom-color: var(--border); }

@media (max-width: 650px) {
  main { width: calc(100% - 20px); margin: 10px auto; padding: 20px 12px; border-radius: 16px; }
  .card { padding: 18px; }
  h1 { font-size: 27px; }
  .fj-nav { gap: 12px; font-size: 14px; }
}

img { max-width: 100%; height: auto; }

/* Frosted surfaces retain contrast above the landscape. */
main { backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
