* { box-sizing: border-box; }
:root {
  color-scheme: dark;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: #fff3e8;
  background: #171210;
  --panel: #241b17;
  --border: #513d33;
  --muted: #d6bba8;
  --accent: #ffad4d;
}
body { margin: 0; line-height: 1.5; }
header { background: #201813; border-bottom: 1px solid var(--border); }
.header-inner, main { width: min(1180px, 100% - 2rem); margin-inline: auto; }
.header-inner, .marke, .profil, .titel, .produkt, .preisform, .team-zeile, .team-zeile form {
  display: flex; align-items: center; gap: .75rem;
}
.header-inner { min-height: 82px; justify-content: space-between; }
.marke { color: inherit; text-decoration: none; font-weight: 800; font-size: 1.2rem; }
.marke img, .login-logo { border: 1px solid var(--border); border-radius: 16px; }
small { display: block; font-size: .875rem; color: var(--muted); font-weight: 500; }
.profil { flex-wrap: wrap; justify-content: end; overflow-wrap: anywhere; }
main { padding-block: clamp(1.75rem, 5vw, 4rem); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.9rem, 4vw, 3.2rem); letter-spacing: -.04em; line-height: 1.12; }
h2 { font-size: 1.15rem; margin-bottom: .8rem; }
h3 { margin-block: 1.25rem .55rem; }
.titel { justify-content: space-between; align-items: end; margin-bottom: 1.4rem; flex-wrap: wrap; }
.titel p { color: var(--muted); margin-top: .4rem; }
.rolle { color: var(--accent); border: 1px solid var(--border); border-radius: 999px; padding: .3rem .75rem; }
.karten { display: grid; gap: 1rem; align-items: start; }
.karten { grid-template-columns: repeat(auto-fit, minmax(min(100%, 345px), 1fr)); }
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: 19px; padding: 1.15rem; }
ul { padding: 0; margin: 0; list-style: none; }
.produkt, .team-zeile { min-height: 55px; padding-block: .5rem; justify-content: space-between; border-top: 1px solid var(--border); }
.produkt > span, .team-zeile > strong { overflow-wrap: anywhere; }
.preisform { gap: .35rem; flex-shrink: 0; }
.preisform span, .team-zeile span { color: var(--muted); }
input, button, select { font: inherit; min-height: 40px; border-radius: 9px; padding: .4rem .65rem; }
input, select { color: inherit; background: #180f0b; border: 1px solid #79583f; min-width: 0; }
select {
  appearance: none; padding-right: 2rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 14px) 53%, calc(100% - 9px) 53%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.preisform input { width: 5.65rem; text-align: right; }
button { font-weight: 700; color: #221306; background: var(--accent); border: 1px solid transparent; cursor: pointer; }
button:hover { filter: brightness(1.13); }
button.secondary { background: #342218; color: #fff3e8; border-color: #79583f; font-size: .875rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.felder { display: grid; gap: .8rem; }
.felder label { display: grid; gap: .25rem; font-size: .9375rem; color: var(--muted); }
.felder input, .felder select { font-size: 1rem; }
.felder button { justify-self: start; margin-top: .25rem; }
.login { max-width: 430px; margin: clamp(1rem, 6vh, 5rem) auto; padding: clamp(1.2rem, 5vw, 2rem); }
.login-logo { display: block; margin-bottom: 1rem; }
.login h1 { font-size: 2rem; margin-bottom: 1.3rem; }
.login button { justify-self: stretch; }
.meldung { border: 1px solid #8c632e; border-radius: 10px; background: #352516; color: #ffdda9; padding: .65rem .85rem; margin-bottom: 1rem; }
.meldung.fehler { border-color: #ad634e; background: #3d211c; color: #ffd0c2; }
@media (max-width: 410px) {
  .produkt, .team-zeile { flex-wrap: wrap; }
  .preisform { margin-left: auto; }
  .team-zeile form { flex-wrap: wrap; }
}

.titel-aktionen { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.produkt-link {
  display: inline-block; background: var(--accent); color: #221306; text-decoration: none;
  border-radius: 9px; padding: .45rem .75rem; font-weight: 700;
}
.produkt-link:hover { filter: brightness(1.13); }
.produkt-titel { min-width: 0; overflow-wrap: anywhere; }
.produkt-loeschen { margin-top: .125rem; color: #ffb7a8; }
.produkt-loeschen summary { width: fit-content; font-size: .875rem; cursor: pointer; }
button.gefahr { background: #51281f; border-color: #ad634e; color: #ffd0c2; font-size: .875rem; margin-top: .25rem; }

.verwaltung, .eigenes-konto { margin-top: clamp(2rem, 5vw, 3.75rem); }
.verwaltung > h2 {
  border-bottom: 1px solid var(--border);
  margin: 0 0 1.25rem;
  padding-bottom: .75rem;
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  letter-spacing: -.025em;
}
.verwaltung-raster {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.verwaltung-spalte { display: grid; gap: 1.25rem; min-width: 0; }
.verwaltung .panel, .eigenes-konto .panel { padding: clamp(1.15rem, 2.4vw, 1.6rem); }
.eigenes-konto { max-width: 38rem; }
.panel { scroll-margin-top: 1rem; }
.panel:target { border-color: var(--accent); }
.panel-titel { margin: 0 0 1.15rem; font-size: 1.22rem; }
.team-untertitel { margin: 1.15rem 0 .6rem; font-size: 1rem; }
.einstellungen-hauptfelder, .produkt-hauptfelder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(6rem, 9rem);
  gap: .8rem;
  align-items: start;
}
.verwaltung input, .verwaltung select { min-height: 44px; }
.verwaltung .felder button { margin-top: .55rem; }
.verwaltung button.secondary { min-height: 42px; }
.produkt-link.link-zurueckhaltend {
  background: transparent;
  color: var(--accent);
  border: 1px solid #79583f;
}
#passwort > h3 { margin: 0 0 1.15rem; font-size: 1.22rem; }
@media (max-width: 730px) {
  .verwaltung-raster { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 540px) {
  .header-inner { gap: .6rem; min-height: 72px; padding-block: .5rem; }
  .marke { min-width: 0; gap: .55rem; font-size: 1rem; }
  .marke img { flex: none; width: 42px; height: 42px; border-radius: 12px; }
  .marke > span { min-width: 0; overflow-wrap: anywhere; }
  .marke small { font-size: .8125rem; }
  .profil { flex: 0 1 auto; min-width: 0; max-width: 40%; gap: .3rem; }
  .profil > span { font-size: .875rem; text-align: right; }
  .profil button { white-space: nowrap; }
  .karten { grid-template-columns: minmax(0, 1fr); }
  .panel, .team-zeile, .team-zeile form { min-width: 0; }
  .team-zeile, .team-zeile form { flex-wrap: wrap; }
  .team-zeile select { max-width: 100%; }
  .einstellungen-hauptfelder, .produkt-hauptfelder { grid-template-columns: minmax(0, 1fr); }
  .verwaltung .felder, .eigenes-konto .felder { grid-template-columns: minmax(0, 1fr); }
  .verwaltung .felder button, .eigenes-konto .felder button { justify-self: stretch; }
}

