:root {
  --farbe-bg: #faf7f2;
  --farbe-card: #ffffff;
  --farbe-text: #2e2a26;
  --farbe-muted: #7a7268;
  --farbe-akzent: #7b1e3a;
  --farbe-akzent-dunkel: #591530;
  --farbe-rand: #e5ddd0;
  --farbe-fehler: #b3261e;
  --farbe-erfolg: #2e7d32;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--farbe-bg);
  color: var(--farbe-text);
  line-height: 1.5;
}

a {
  color: var(--farbe-akzent-dunkel);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

header.site-header {
  background: var(--farbe-card);
  border-bottom: 1px solid var(--farbe-rand);
  padding: 0.8rem 1.5rem;
}

.header-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--farbe-akzent-dunkel);
  white-space: nowrap;
  text-decoration: none;
}

.logo-bild {
  height: 64px;
  width: auto;
}

.search-form {
  flex: 1;
  display: flex;
  min-width: 220px;
}
.search-form input[type="text"] {
  flex: 1;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--farbe-rand);
  border-radius: var(--radius) 0 0 var(--radius);
  font-size: 1rem;
}
.search-form button {
  border-radius: 0 var(--radius) var(--radius) 0;
}

.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
  white-space: nowrap;
}

.category-bar {
  max-width: 1200px;
  margin: 0.6rem auto 0;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}
.category-bar a.active {
  font-weight: 700;
  color: var(--farbe-akzent-dunkel);
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
}

.layout-with-sidebar {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.layout-with-sidebar .content {
  flex: 1;
  min-width: 0;
}
.sidebar {
  width: 220px;
  flex-shrink: 0;
}

button, .btn {
  background: var(--farbe-akzent);
  color: white;
  border: none;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.95rem;
  display: inline-block;
}
button:hover, .btn:hover {
  background: var(--farbe-akzent-dunkel);
  text-decoration: none;
}
.btn-secondary {
  background: var(--farbe-card);
  color: var(--farbe-text);
  border: 1px solid var(--farbe-rand);
}
.btn-secondary:hover {
  background: var(--farbe-bg);
}
.btn-danger {
  background: var(--farbe-fehler);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
}

.product-card {
  background: var(--farbe-card);
  border: 1px solid var(--farbe-rand);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-card .thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--farbe-bg);
}
.product-card .thumb-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--farbe-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--farbe-muted);
  font-size: 2rem;
}
.product-card .info {
  padding: 0.8rem;
}
.product-card .title {
  font-weight: 600;
  margin: 0 0 0.3rem;
  display: block;
}
.product-card .price {
  color: var(--farbe-akzent-dunkel);
  font-weight: 700;
}
.product-card .shop {
  color: var(--farbe-muted);
  font-size: 0.85rem;
}

.card {
  background: var(--farbe-card);
  border: 1px solid var(--farbe-rand);
  border-radius: var(--radius);
  padding: 1.2rem;
}

form.stacked label {
  display: block;
  margin: 0.8rem 0 0.3rem;
  font-weight: 600;
}
form.stacked input[type="text"],
form.stacked input[type="email"],
form.stacked input[type="password"],
form.stacked input[type="number"],
form.stacked textarea,
form.stacked select {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--farbe-rand);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
}
form.stacked textarea {
  resize: vertical;
}

.error-box {
  background: #fdecea;
  color: var(--farbe-fehler);
  border: 1px solid #f5c6c0;
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  margin-bottom: 1rem;
}

.info-box {
  background: #fbeef2;
  color: var(--farbe-akzent-dunkel);
  border: 1px solid #eccbd6;
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin-bottom: 1.2rem;
}
.info-box h3 {
  margin-top: 0;
}
.info-box ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.hint {
  color: var(--farbe-muted);
  font-size: 0.9rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}
table th, table td {
  text-align: left;
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--farbe-rand);
}

.status-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  background: var(--farbe-bg);
  border: 1px solid var(--farbe-rand);
}
.status-badge.bezahlt, .status-badge.abgeschlossen {
  background: #e8f5e9;
  color: var(--farbe-erfolg);
  border-color: #c8e6c9;
}
.status-badge.versandt {
  background: #e3f2fd;
  color: #1565c0;
  border-color: #bbdefb;
}
.status-badge.warteliste {
  background: #fff3e0;
  color: #e65100;
  border-color: #ffe0b2;
}
.status-badge.storniert {
  background: #fdecea;
  color: var(--farbe-fehler);
  border-color: #f5c6c0;
}

/* Werbeflächen: bewusst deutlich markierte Platzhalter, bis echtes
   Google AdSense freigeschaltet ist (Seite braucht dafür Inhalt + Prüfung
   durch Google) - dann kommt hier das <ins class="adsbygoogle"> Snippet
   rein statt des Platzhaltertexts. */
.ad-slot {
  background: repeating-linear-gradient(45deg, #f1ece3, #f1ece3 10px, #ece5d8 10px, #ece5d8 20px);
  border: 1px dashed #c9bfa9;
  border-radius: var(--radius);
  color: var(--farbe-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ad-slot--banner {
  height: 90px;
  max-width: 1200px;
  margin: 0.8rem auto;
}
.ad-slot--sidebar {
  height: 250px;
  margin-bottom: 1.2rem;
}
.ad-slot--infeed {
  grid-column: 1 / -1;
  height: 100px;
}

/* Eigenwerbung für Kays/Annes eigene Homepages, bis echtes Google AdSense
   freigeschaltet ist (Seite braucht dafür Inhalt + Prüfung durch Google) -
   dann werden diese Blöcke durch <ins class="adsbygoogle"> Snippets ersetzt. */
.eigenwerbung {
  display: flex;
  gap: 0.6rem;
}
.eigenwerbung--banner,
.eigenwerbung--infeed {
  max-width: 1200px;
  margin: 0.8rem auto;
}
.eigenwerbung--infeed {
  grid-column: 1 / -1;
}
.eigenwerbung--sidebar {
  flex-direction: column;
  margin-bottom: 1.2rem;
}
.eigenwerbung-karte {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.8rem;
  background: #fff;
  border: 1px solid var(--farbe-akzent);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease;
  overflow: hidden;
}
.eigenwerbung-karte:hover {
  box-shadow: 0 2px 8px rgba(123, 30, 58, 0.15);
}
.eigenwerbung-logo {
  height: 44px;
  width: 44px;
  object-fit: contain;
  flex-shrink: 0;
}
.eigenwerbung-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.eigenwerbung-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--farbe-muted);
}
.eigenwerbung-name {
  font-weight: 600;
  color: var(--farbe-akzent-dunkel);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.eigenwerbung-info {
  font-size: 0.85rem;
  color: var(--farbe-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.seller-nav {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}

.cart-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--farbe-rand);
}
.cart-row img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--farbe-bg);
}
.cart-row .grow {
  flex: 1;
}
.cart-row input[type="number"] {
  width: 60px;
}

.order-group {
  margin-bottom: 1.5rem;
}
.order-group h3 {
  margin-bottom: 0.4rem;
}

footer.site-footer {
  text-align: center;
  color: var(--farbe-muted);
  padding: 2rem 1rem;
  font-size: 0.85rem;
}

.donate-btn {
  background: #ffc439;
  color: #1a1a1a;
  font-weight: 600;
}
.donate-btn:hover {
  background: #f0b429;
  color: #1a1a1a;
}
