/* ======== Globale Basis & Farbpalette ======== */

:root {
  /* Farbpalette an das Logo angepasst */
  --color-bg: #f4d6a0;
  --color-bg-light: #ffe9c2;
  --color-primary: #8c4a15;        /* dunkles Braun/Orange wie Rand + Text */
  --color-primary-soft: #c67829;   /* helleres Orange */
  --color-accent: #5a3210;         /* Akzent-Braun */
  --color-text: #3a2410;
  --radius-lg: 1.5rem;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.18);
}

/* Box-Sizing Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Grundlayout für alle Seiten */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  margin: 0;
  padding: 0;
  background: #f3f4f6;
  color: #111827;
}

/* Einheitliches Link-Design passend zur Farbpalette */

a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.15em;
  text-decoration-color: rgba(140, 74, 21, 0.45); 
  font-weight: 500;
}

a:visited {
  color: var(--color-accent);
  text-decoration-color: rgba(90, 50, 16, 0.5);
}

a:hover {
  color: var(--color-accent);
  text-decoration-color: rgba(90, 50, 16, 0.9);
}

a:focus-visible {
  outline: 2px solid var(--color-primary-soft);
  outline-offset: 2px;
}

/* Buttons sind Links, sollen aber wie Buttons aussehen */
a.btn {
  text-decoration: none;
}

/* Primäre Buttons: Text immer weiß, auch nach Besuch */
a.btn-primary,
a.btn-primary:visited {
  color: #ffffff;
}

/* Sekundäre Buttons: definierte Akzentfarbe, nicht Link-Blau */
a.btn-secondary,
a.btn-secondary:visited {
  color: var(--color-accent);
}


/* Landingpage / Startseite */
body.page-index {
  background: radial-gradient(circle at top, var(--color-bg-light), var(--color-bg));
  color: var(--color-text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

/* ======== Startseiten-Layout (Index) ======== */

.shell {
  width: 100%;
  max-width: 960px;
}

.card {
  background: #fff7e6; /* leicht cremefarben, wie Logo-Hintergrund */
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 2.5rem 2.25rem 2.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 2fr);
  gap: 2.5rem;
  border: 3px solid rgba(90, 50, 16, 0.08);
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}

header img {
  max-width: 220px;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 50%;
}

header h1 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
}

header p.subtitle {
  margin: 0;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--color-accent);
}

nav {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background-color 0.15s ease, filter 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-soft));
  color: #ffffff; /* <— hier ändern */
  box-shadow: 0 10px 24px rgba(140, 74, 21, 0.45);
}

.btn-secondary {
  background: #ffe9c2;
  color: var(--color-accent);
  border: 1px solid rgba(90, 50, 16, 0.18);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.btn:focus-visible {
  outline: 3px solid var(--color-primary-soft);
  outline-offset: 2px;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-self: center;
}

main h2 {
  margin: 0;
  font-size: 1.3rem;
  color: var(--color-accent);
}

main p {
  margin: 0 0 0.9rem;
  line-height: 1.7;
  font-size: 0.98rem;
  color: rgba(58, 36, 16, 0.92);
}

main p:last-child {
  margin-bottom: 0;
}

footer {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: rgba(58, 36, 16, 0.75);
}

/* Mobile Layout für Startseite */
@media (max-width: 768px) {
  body.page-index {
    padding: 1rem;
  }

  .card {
    grid-template-columns: minmax(0, 1fr);
    padding: 1.8rem 1.4rem 1.6rem;
    gap: 1.8rem;
  }

  header h1 {
    font-size: 1.7rem;
  }

  main h2 {
    font-size: 1.15rem;
  }
}

@media (max-width: 480px) {
  header img {
    max-width: 190px;
  }

  header h1 {
    font-size: 1.5rem;
  }

  .btn {
    width: 100%;
  }
}

/* ======== Formular-Seite: Etiketteneingabe (aus eingabe.css) ======== */

.wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

h1 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.6rem;
}

/* Karte für Formularbereich */
.form-section {
  background: #ffffff;
  padding: 18px 20px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
  margin-bottom: 20px;
}

/* Hinweisboxen */
.hint {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 5px;
}

.hint-strong {
  font-size: 0.9rem;
  color: #b91c1c;
  margin: 8px 0 10px 0;
}

/* Kopfzeile: Event / Seller / Checkbox */

.row-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 10px;
}

.row-inline > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

label {
  font-weight: 600;
  font-size: 0.95rem;
  color: #374151;
}

/* Textfelder allgemein */
input[type="text"] {
  font-size: 0.95rem;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background-color: #f9fafb;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  margin-bottom: 8px;
  margin-top: 8px;
}

/* Fokuszustand */
input[type="text"]:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
  background-color: #ffffff;
  margin-bottom: 8px;
  margin-top: 8px;
}

/* Desktop-Breite für Event / Seller */
#event-prefix-input {
  width: 100px;
  margin-left: 0;
}

#seller-input {
  width: 80px;
  margin-left: 0;
}

/* Checkbox rechts daneben */
.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.checkbox-inline label {
  display: inline-block;
}

/* Tabelle Titel / Preis */

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 0.9rem;
}

thead th {
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  padding: 4px 6px;
  background: #f9fafb;
  position: sticky;
  top: 0;
  z-index: 1;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

tbody td {
  padding: 3px 4px;
  border-bottom: 1px solid #f3f4f6;
}

.col-index {
  width: 40px;
  text-align: right;
  color: #6b7280;
}

.col-title input {
  width: 100%;
}

.col-price {
  width: 90px;
}

.col-price input {
  width: 100%;
  text-align: right;
}

/* Buttons */

.btn-row {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

button {
  font-size: 0.95rem;
  padding: 7px 16px;
  cursor: pointer;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-soft)); /*#2563eb;*/
  color: #ffffff;
  font-weight: 500;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
  transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.15s ease;
}

button:hover {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-soft));
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.2);
}

/* Responsive: Tablets */

@media (max-width: 900px) {
  .wrapper {
    padding: 16px 12px;
  }

  .form-section {
    padding: 16px 14px;
  }

  h1 {
    font-size: 1.4rem;
  }
}

/* Responsive: Smartphones */

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .wrapper {
    padding: 12px 10px;
  }

  .form-section {
    padding: 14px 12px;
    border-radius: 8px;
  }

  h1 {
    font-size: 1.3rem;
  }

  /* Eingabebereich untereinander statt nebeneinander */
  .row-inline {
    flex-direction: column;
    align-items: stretch;
  }

  .row-inline > div {
    width: 100%;
  }

  /* Event / Seller volle Breite, größere Felder */
  #event-prefix-input,
  #seller-input {
    width: 100%;
  }

  input[type="text"] {
    padding: 10px 12px;
    font-size: 1rem;
  }

  .checkbox-inline {
    margin-top: 4px;
  }

  /* Buttons untereinander, gut klickbar */
  .btn-row {
    flex-direction: column;
  }

  .btn-row button {
    width: 100%;
    padding: 10px 16px;
    font-size: 1rem;
  }

  /* Tabelle etwas größer & leichter antippbar */
  table {
    font-size: 0.9rem;
  }

  thead th {
    padding: 6px 6px;
  }

  tbody td {
    padding: 6px 4px;
  }

  /* Den kleinen Scrollcontainer für die 50 Zeilen aufheben,
     damit man auf dem Handy einfach normal nach unten scrollt */
  .wrapper div[style*="max-height: 400px"] {
    max-height: none !important;
  }
}
