:root {
  color-scheme: light;
  --ink: #20201d;
  --muted: #68645d;
  --paper: #fbfaf6;
  --line: #ded7ca;
  --green: #183f34;
  --red: #7c2032;
  --gold: #c09a48;
  --cream: #f0eadf;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(32, 32, 29, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(251, 250, 246, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
}

.brand-mark img {
  width: 92%;
  height: 92%;
  object-fit: contain;
}

.brand small,
.eyebrow {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

nav {
  display: flex;
  gap: 8px;
}

nav a {
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
}

nav a:hover,
.nav-button:hover {
  background: var(--cream);
  color: var(--ink);
}

.nav-button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 8px 10px;
}

.hero {
  min-height: min(680px, calc(100vh - 72px));
  display: flex;
  align-items: center;
  padding: clamp(48px, 8vw, 100px) clamp(18px, 4vw, 56px);
  background:
    linear-gradient(90deg, rgba(251, 250, 246, 0.98) 0%, rgba(251, 250, 246, 0.78) 42%, rgba(251, 250, 246, 0.12) 72%),
    url("assets/kerbe-klamotten-hero.png") center right / cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.deadline-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: var(--green);
  color: var(--white);
  text-align: center;
}

.deadline-banner strong {
  color: var(--gold);
}

.deadline-banner span {
  font-weight: 700;
}

.hero-copy {
  width: min(620px, 100%);
}

.hero h1 {
  margin: 8px 0 18px;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 0.98;
}

.hero p {
  max-width: 58ch;
  color: #3f3d38;
  font-size: 1.08rem;
}

.hero-badge {
  display: block;
  width: min(420px, 92vw);
  max-height: 110px;
  margin-top: 30px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 8px 18px rgba(32, 32, 29, 0.14));
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  background: var(--red);
  color: var(--white);
}

.button.is-confirmed {
  background: var(--green);
  color: var(--white);
}

.button.secondary {
  background: var(--white);
  border-color: var(--line);
  color: var(--ink);
}

.notice {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 0;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.notice div {
  padding: 20px clamp(18px, 4vw, 56px);
  background: var(--white);
}

.notice span {
  display: block;
  color: var(--muted);
}

.orders-closed {
  overflow: hidden;
}

.orders-closed .site-header,
.orders-closed main > :not(.closed-overlay),
.orders-closed footer {
  filter: grayscale(0.75);
  opacity: 0.28;
  pointer-events: none;
  user-select: none;
}

.closed-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(20px, 5vw, 72px);
  background: rgba(32, 32, 29, 0.58);
  backdrop-filter: blur(5px);
}

.closed-login {
  position: fixed;
  top: clamp(14px, 3vw, 28px);
  right: clamp(14px, 3vw, 28px);
  z-index: 101;
  border: 1px solid rgba(255, 248, 234, 0.62);
  border-radius: 7px;
  background: rgba(32, 32, 29, 0.58);
  color: var(--white);
  padding: 9px 12px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.closed-login:hover {
  background: rgba(32, 32, 29, 0.82);
}

.closed-card {
  width: min(940px, 100%);
  border: 3px solid var(--gold);
  border-radius: 8px;
  background: var(--red);
  color: var(--white);
  padding: clamp(30px, 7vw, 76px);
  text-align: center;
  box-shadow: 0 28px 90px rgba(32, 32, 29, 0.42);
}

.closed-card .eyebrow {
  color: #f6e7bd;
  font-weight: 800;
}

.closed-card h2 {
  margin: 8px auto 16px;
  max-width: 760px;
  color: var(--white);
  font-size: clamp(2.4rem, 7vw, 5.8rem);
  line-height: 0.96;
}

.closed-card p:last-child {
  max-width: 680px;
  margin: 0 auto;
  color: #fff8ea;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 700;
}

.section,
.order-layout,
.contact-band {
  padding: clamp(44px, 7vw, 78px) clamp(18px, 4vw, 56px);
}

.section-heading {
  margin-bottom: 24px;
}

h2 {
  margin: 4px 0 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.1;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(32, 32, 29, 0.08);
}

.product-visual {
  position: relative;
  display: grid;
  aspect-ratio: 1.28;
  place-items: center;
  background: var(--cream);
  color: var(--accent);
}

.product-visual svg {
  width: 64%;
  max-height: 72%;
}

.product-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-mark {
  position: absolute;
  right: 12%;
  bottom: 18%;
  width: 24%;
  max-height: 44%;
  object-fit: contain;
  padding: 5px;
  border-radius: 50%;
  background: rgba(251, 250, 246, 0.82);
  mix-blend-mode: multiply;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.product-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.product-title h3 {
  margin: 0;
  font-size: 1.1rem;
}

.price {
  white-space: nowrap;
  color: var(--green);
  font-weight: 800;
}

.product-body p {
  margin: 0;
  color: var(--muted);
}

.product-facts,
.admin-facts {
  display: grid;
  gap: 6px;
  margin: 0;
}

.product-facts div,
.admin-facts div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(222, 215, 202, 0.72);
  padding-top: 6px;
}

.product-facts dt,
.admin-facts dt {
  color: var(--muted);
  font-size: 0.84rem;
}

.product-facts dd,
.admin-facts dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: right;
}

.choice-row {
  display: grid;
  grid-template-columns: 1fr 82px;
  gap: 10px;
  margin-top: auto;
}

label {
  display: grid;
  gap: 7px;
  color: #383631;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #cfc6b8;
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
  padding: 11px 12px;
}

input:focus,
textarea:focus,
select:focus {
  outline: 3px solid rgba(192, 154, 72, 0.28);
  border-color: var(--gold);
}

.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.8fr);
  gap: 20px;
  background: #f4f0e8;
  border-block: 1px solid var(--line);
}

.order-form,
.cart-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: clamp(18px, 3vw, 28px);
  box-shadow: var(--shadow);
}

.order-form {
  display: grid;
  gap: 16px;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-weight: 400;
}

.check-row input {
  width: 18px;
  min-width: 18px;
  margin-top: 3px;
}

.cart-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.cart-head strong {
  font-size: 1.25rem;
  color: var(--green);
}

.cart-items {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fffdf8;
}

.cart-line strong {
  display: block;
}

.cart-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.cart-remove {
  align-self: start;
  border: 0;
  background: transparent;
  color: var(--red);
  cursor: pointer;
  font-weight: 800;
}

.cart-empty {
  padding: 18px 0;
  color: var(--muted);
}

.cart-feedback {
  margin: 12px 0 0;
  border: 1px solid rgba(24, 63, 52, 0.18);
  border-radius: 7px;
  background: #eef6f1;
  color: var(--green);
  padding: 10px 12px;
  font-weight: 700;
}

.order-success {
  display: grid;
  margin-top: 16px;
  border: 1px solid rgba(24, 63, 52, 0.18);
  border-radius: 7px;
  background: #eef6f1;
  color: var(--green);
  padding: 12px;
  font-weight: 700;
}

.admin-login {
  display: grid;
  min-height: calc(100vh - 73px);
  place-items: center;
  padding: clamp(44px, 7vw, 78px) clamp(18px, 4vw, 56px);
}

.admin-login .order-form {
  width: min(460px, 100%);
}

.admin-shell {
  padding: clamp(36px, 6vw, 72px) clamp(18px, 4vw, 56px);
}

.admin-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.admin-topline h1,
.admin-login h1 {
  margin: 4px 0 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.admin-section {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: clamp(18px, 3vw, 28px);
  box-shadow: 0 8px 24px rgba(32, 32, 29, 0.08);
}

.settings-form {
  display: grid;
  max-width: 620px;
  gap: 14px;
}

.settings-status {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.admin-list,
.product-admin-grid {
  display: grid;
  gap: 12px;
}

.product-admin-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  padding: 14px;
}

.admin-card.is-inactive {
  opacity: 0.62;
}

.admin-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-card-head span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

.admin-card p {
  color: var(--muted);
}

.admin-product-image {
  display: block;
  width: 100%;
  aspect-ratio: 1.55;
  margin-top: 12px;
  border-radius: 7px;
  object-fit: cover;
  background: var(--cream);
}

.export-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.export-line span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.product-editor {
  margin-top: 18px;
  box-shadow: none;
}

.product-editor h3 {
  margin: 0;
}

.editor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.image-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 14px;
  align-items: end;
}

.image-preview {
  display: grid;
  min-height: 118px;
  place-items: center;
  border: 1px dashed #cfc6b8;
  border-radius: 7px;
  background: #fffdf8 center / cover no-repeat;
  color: var(--muted);
  padding: 10px;
  text-align: center;
}

.image-preview.has-image {
  border-style: solid;
}

.contact-band {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 28px;
  align-items: center;
}

.contact-band p:last-child {
  color: var(--muted);
  font-size: 1.05rem;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px clamp(18px, 4vw, 56px);
  color: var(--muted);
}

.footer-login {
  margin-left: auto;
  border-bottom: 1px solid transparent;
  color: #8a857d;
  font-size: 0.86rem;
  text-decoration: none;
}

.footer-login:hover {
  border-bottom-color: currentColor;
  color: var(--ink);
}

@media (max-width: 980px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-admin-grid,
  .editor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-layout,
  .contact-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    overflow-x: auto;
  }

  .hero {
    min-height: 620px;
    align-items: flex-start;
    background:
      linear-gradient(180deg, rgba(251, 250, 246, 0.98) 0%, rgba(251, 250, 246, 0.84) 47%, rgba(251, 250, 246, 0.08) 100%),
      url("assets/kerbe-klamotten-hero.png") center bottom / cover no-repeat;
  }

  .hero-badge {
    width: min(320px, 86vw);
    max-height: 86px;
  }

  .deadline-banner {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    text-align: left;
  }

  .notice,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-admin-grid,
  .editor-grid,
  .image-editor {
    grid-template-columns: 1fr;
  }

  .choice-row {
    grid-template-columns: 1fr;
  }

  .admin-topline {
    align-items: flex-start;
    flex-direction: column;
  }
}
