:root {
  color-scheme: light;
  --paper: #f7f5eb;
  --ink: #183e37;
  --accent: #f7b780;
  --line: #b5c1ae;
  --serif: Georgia, "Times New Roman", serif;
  font:
    16px/1.55 "Avenir Next",
    Avenir,
    system-ui,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header,
main,
footer {
  max-width: 1220px;
  margin: auto;
  padding: 22px clamp(16px, 5vw, 76px);
}
header,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
header {
  border-bottom: 1px solid var(--line);
}
.brand {
  font: bold 29px var(--serif);
  letter-spacing: -1.5px;
  text-decoration: none;
}
.brand > span:first-child {
  background: var(--ink);
  color: var(--paper);
  padding: 1px 6px;
  border-radius: 8px;
}
.punkt {
  color: #c35e2d;
}
nav,
.actions,
.tools {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}
nav a {
  font-size: 0.9rem;
  font-weight: 650;
  padding: 7px;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
main {
  min-height: 75vh;
  padding-top: clamp(25px, 5vw, 70px);
  padding-bottom: 60px;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  line-height: 1.08;
  overflow-wrap: anywhere;
}
h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  margin: 12px 0 22px;
}
h2 {
  font-size: 2rem;
  margin: 20px 0;
}
h3 {
  font-size: 1.45rem;
  margin: 8px 0;
}
.kicker,
small,
.tag {
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.08em;
}
.kicker {
  text-transform: uppercase;
}
.tag {
  display: inline-block;
  background: #e1e9d7;
  padding: 4px 9px;
  border-radius: 4px;
}
button,
.button {
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  background: var(--ink);
  color: white;
  border: 1px solid var(--ink);
  padding: 10px 17px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
}
.secondary,
.tools button {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #ad5428;
  outline-offset: 2px;
}
input,
textarea {
  font: inherit;
  color: inherit;
  width: 100%;
  padding: 11px;
  border: 1px solid #819483;
  border-radius: 6px;
  background: #fffef9;
}
input[type="checkbox"] {
  width: auto;
}
textarea {
  min-height: 150px;
}
label {
  display: block;
  margin: 12px 0;
  font-weight: 600;
}
.hero {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 0.72fr);
  gap: clamp(22px, 8vw, 100px);
  align-items: center;
  padding: 38px 0;
}
.panel,
dialog {
  background: #fffdf5;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(18px, 3vw, 36px);
}
.panel {
  margin: 16px 0;
}
.ribbon {
  border-block: 1px solid var(--line);
  padding: 13px 0;
  margin: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
}
.ribbon input {
  max-width: 420px;
}
.grid,
.photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 235px), 1fr));
  gap: 22px;
}
.card {
  display: block;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  min-width: 0;
}
.cover,
.placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #dce4cf;
  border-radius: 12px;
  margin-bottom: 10px;
}
.placeholder {
  display: grid;
  place-items: center;
  font: italic 52px var(--serif);
  color: #5c765c;
}
.photos img,
.body img {
  width: 100%;
  max-height: 540px;
  object-fit: contain;
  background: #e9ecdf;
  border-radius: 10px;
}
.body {
  max-width: 75ch;
  overflow-wrap: anywhere;
}
.empty {
  border: 1px dashed var(--line);
  padding: 35px;
  border-radius: 12px;
}
.edit {
  max-width: 820px;
}
.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.file {
  display: inline-block;
  cursor: pointer;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  position: relative;
}
.file input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.file:focus-within {
  outline: 3px solid #ad5428;
}
.preview {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.preview img {
  width: 115px;
  height: 84px;
  object-fit: cover;
}
.preview button {
  padding: 6px 10px;
}
.save {
  font-weight: 650;
  color: #466645;
}
dialog {
  max-width: min(500px, 94vw);
  width: 100%;
  color: inherit;
}
dialog::backdrop {
  background: #183e3780;
}
#toast {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 90vw;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 9px;
  z-index: 5;
}
footer {
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
}
pre {
  white-space: pre-wrap;
}
progress {
  width: 100%;
}
@media (max-width: 650px) {
  .hero,
  .cols,
  .grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 0;
  }
  header {
    align-items: flex-start;
  }
  nav {
    gap: 2px;
  }
  .actions button {
    flex-grow: 1;
  }
  .ribbon input {
    max-width: none;
  }
  .photos {
    grid-template-columns: 1fr 1fr;
  }
}

/* Umlauf — Nachtblau, Limette und Eisblau */
:root {
  color-scheme: dark;
  --paper: #182127;
  --ink: #e4f1e8;
  --accent: #c1f77f;
  --line: #52636b;
  --surface: #243037;
  --serif: "Helvetica Neue", Helvetica, sans-serif;
  font-family: Menlo, Consolas, monospace;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 750;
}
.brand svg,
.kicker,
.save {
  color: var(--accent);
}
nav a {
  color: #bbdcee;
}
h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.045em;
}
.hero {
  padding: clamp(20px, 4vw, 52px);
  gap: clamp(20px, 4vw, 55px);
  background-color: var(--surface);
  background-image:
    linear-gradient(#ffffff07 1px, transparent 1px),
    linear-gradient(90deg, #ffffff07 1px, transparent 1px);
  background-size: 24px 24px;
  border: 1px solid var(--line);
}
.hero h1 {
  color: var(--accent);
}
.panel,
dialog,
input,
textarea {
  background: #202b32;
  border-color: var(--line);
  border-radius: 4px;
}
.hero .panel {
  margin: 0;
}
.tag {
  color: #c9e6f4;
  background: #30454f;
}
.button,
button,
#toast {
  background: var(--accent);
  border-color: var(--accent);
  color: #182127;
  border-radius: 4px;
}
.secondary,
.tools button {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
:is(button, a, input, textarea):focus-visible,
.file:focus-within {
  outline: 3px solid #a9dbff;
  outline-offset: 3px;
}
.grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
}
.card {
  display: grid;
  grid-template-columns: clamp(72px, 8vw, 110px) minmax(0, 1fr);
  gap: 3px 15px;
  align-content: center;
  padding: 14px 0;
}
.card:hover h3 {
  color: var(--accent);
}
.card .cover,
.card .placeholder {
  grid-row: 1/4;
  align-self: center;
  margin: 0;
  border-radius: 2px;
  background: #293943;
  color: var(--accent);
}
.card small {
  color: #bbdcee;
}
.card h3 {
  margin: 0;
}
.pickup {
  font-size: 0.8rem;
}
.photos img,
.body img {
  background: var(--surface);
  border-radius: 3px;
}
.empty {
  border-radius: 3px;
}
dialog::backdrop {
  background: #0c141ac9;
}
footer {
  color: #bbdcee;
}
@media (max-width: 800px) {
  .grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 650px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
}
:root {
  color-scheme: dark;
  --paper: #182127;
  --ink: #e4f1e8;
  --accent: #c1f77f;
  --line: #415159;
  --panel: #243037;
  --serif: "Helvetica Neue", Arial, sans-serif;
  font-family: Menlo, Consolas, monospace;
  font-size: 15px;
}
header,
main,
footer {
  max-width: 1180px;
  width: 92%;
  padding-inline: 0;
}
main {
  padding-top: 16px;
}
.brand {
  font: 700 30px var(--serif);
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
}
.brand img {
  width: 37px;
}
header {
  border: 0;
}
nav a {
  text-decoration: none;
}
nav a:hover {
  text-decoration: underline;
}
.banner {
  background-color: var(--panel);
  background-image:
    linear-gradient(#ffffff07 1px, transparent 1px),
    linear-gradient(90deg, #ffffff07 1px, transparent 1px);
  background-size: 24px 24px;
  border: 1px solid var(--line);
  padding: clamp(22px, 4vw, 54px);
  display: grid;
  grid-template-columns: 3fr 2fr;
  align-items: center;
  position: relative;
}
.banner h1 {
  font: 700 clamp(46px, 5vw, 80px)/0.99 var(--serif);
  letter-spacing: -0.055em;
  color: var(--accent);
  margin: 18px 0 13px;
}
.banner small,
.kicker {
  color: var(--accent);
}
.banner em {
  display: block;
  font-style: normal;
  color: #dfedf0;
}
.banner p {
  max-width: 430px;
  color: #d0dcdb;
}
.banner > img {
  width: min(75%, 190px);
  justify-self: center;
}
.panel,
dialog,
input,
textarea,
select {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--line);
}
select {
  font: inherit;
  padding: 11px;
  width: 100%;
}
input::placeholder,
textarea::placeholder {
  color: #afc0bf;
}
button,
.button,
.tag {
  background: var(--accent);
  color: #172027;
  border-color: var(--accent);
}
.secondary,
.tools button {
  color: var(--ink);
}
.tag,
.panel,
button,
.button,
input,
textarea {
  border-radius: 4px;
}
.save,
.meta,
.card small {
  color: #bbdcee;
}
.ribbon {
  border: 0;
  justify-content: flex-start;
}
.ribbon .button {
  margin-left: auto;
}
.filters {
  margin: 18px 0;
}
.filters button {
  border-radius: 20px;
}
.filters button[aria-pressed="true"] {
  background: var(--accent);
  color: #172027;
}
.grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
}
.row {
  display: flex;
  gap: 10px;
  align-items: center;
  border-top: 1px solid #647475;
  padding: 12px 0;
  min-width: 0;
}
.card {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 15px;
  border: 0;
  padding: 0;
}
.cover,
.placeholder {
  height: auto;
  width: 30%;
  flex-shrink: 0;
  aspect-ratio: 1.45;
  margin: 0;
  border-radius: 0;
  background: #34444b;
}
.placeholder img {
  width: 43%;
}
.card span {
  font-size: 0.8rem;
}
.heart {
  background: transparent;
  color: var(--accent);
  border: 0;
  font-size: 25px;
  padding: 8px;
}
.hero {
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}
.hero .banner {
  grid-template-columns: 1fr;
}
.hero .banner > img {
  width: 70px;
  position: absolute;
  right: 15px;
  top: 15px;
}
.hero .banner h1 {
  font-size: clamp(38px, 4vw, 64px);
}
:focus-visible {
  outline-color: var(--accent) !important;
}
fieldset {
  min-width: 0;
  margin-inline: 0;
}
.photos img,
.body img {
  background: var(--panel);
}
#toast {
  background: var(--accent);
  color: #172027;
}
@media (max-width: 750px) {
  .grid,
  .hero {
    grid-template-columns: 1fr;
  }
  .brand img {
    width: 29px;
  }
  nav a {
    font-size: 0.8rem;
  }
  .hero .banner {
    margin-top: 0;
  }
  .banner h1 {
    font-size: 46px;
  }
  .banner p {
    font-size: 13px;
  }
}
@media (max-width: 480px) {
  .banner {
    display: block;
  }
  .banner h1 {
    font-size: 42px;
    max-width: 76%;
  }
  .banner > img {
    position: absolute;
    right: 5%;
    top: 32px;
    width: 23%;
  }
  .hero .banner > img {
    width: 23%;
  }
  .ribbon .button {
    margin-left: 0;
  }
  .card h3 {
    font-size: 19px;
  }
}
[hidden] { display: none !important; }
