/* =========================================================
   Loot & Liquid – Style (angepasst an Inventory Look)
   - Modernes Card-Layout
   - Saubere Darkmode Variablen
   - Bestehende Klassen bleiben kompatibel
   ========================================================= */

/* ---------- Theme Variables ---------- */
:root{
  --bg: #ffffff;
  --text: #111315;
  --muted: #6b7280;
  --card: #ffffff;
  --ghost: #f3f4f6;
  --line: #e5e7eb;

  --header-bg: #0f1113;
  --header-text: #ffffff;

  --btn-bg: #111315;
  --btn-text: #ffffff;
  --btn-bg-hover: #2b2f33;

  --shadow: 0 10px 30px rgba(0,0,0,.06);
  --radius: 16px;
  --radius-sm: 12px;

  --focus: 0 0 0 3px rgba(17,19,21,.15);
}

body.dark{
  --bg: #0b0c0f;
  --text: #f4f5f7;
  --muted: #a6adbb;
  --card: #111318;
  --ghost: #171a21;
  --line: rgba(255,255,255,.10);

  --header-bg: #0b0c0f;
  --header-text: #f4f5f7;

  --btn-bg: #f4f5f7;
  --btn-text: #111315;
  --btn-bg-hover: #dfe3ea;

  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --focus: 0 0 0 3px rgba(244,245,247,.18);
}

/* ---------- Base ---------- */
*{ box-sizing: border-box; }
html,body{ height: 100%; }
body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
}

a{ color: inherit; }
img{ max-width: 100%; height: auto; }

/* ==============================
   HEADER – Logo mittig
   Nav darunter mittig
   Toggle oben rechts
   ============================== */

.site-header{
  position: relative;                 /* wichtig für Toggle */
  background: var(--header-bg);
  color: var(--header-text);
  padding: 24px 16px 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

/* Logo */
.logo{
  height: 140px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.25));
}

/* Navigation zentriert */
.site-header nav{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.site-header nav a{
  color: var(--header-text);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
}

.site-header nav a:hover{
  background: rgba(255,255,255,.12);
}

/* Toggle oben rechts */
.toggle-btn{
  position: absolute;
  top: 18px;
  right: 18px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.10);
  color: var(--header-text);
  padding: 10px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: 0.2s ease;
}

.toggle-btn:hover{
  background: rgba(255,255,255,.18);
}

@media (max-width: 900px){
  .logo{ height: 96px; }
  .toggle-btn{ top: 14px; right: 14px; }
}

/* ---------- Main Card Container ---------- */
main{
  background: var(--card);
  margin: 16px auto;
  max-width: 1200px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* ---------- Footer ---------- */
footer{
  text-align: center;
  padding: 16px;
  margin-top: 16px;
  background: var(--header-bg);
  color: var(--header-text);
  border-top: 1px solid rgba(255,255,255,.08);
}

/* ---------- Cards / Sections ---------- */
.product{
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.product h3{
  margin: 0 0 8px 0;
  font-size: 18px;
}

.product p{
  margin: 0 0 12px 0;
  color: var(--muted);
}

/* ---------- Inputs / Selects ---------- */
input, select, textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  outline: none;
}

input:focus, select:focus, textarea:focus{
  box-shadow: var(--focus);
}

/* ---------- Buttons ---------- */
button{
  background: var(--btn-bg);
  color: var(--btn-text);
  border: 1px solid transparent;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 900;
  letter-spacing: .01em;
}

button:hover{
  background: var(--btn-bg-hover);
}

button:active{
  transform: translateY(1px);
}

a button{ display: inline-block; }

/* ---------- Helper ---------- */
.muted{ color: var(--muted); }

/* ---------- Repair Table ---------- */
.repair-table{
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.repair-table th,
.repair-table td{
  border-bottom: 1px solid var(--line);
  padding: 12px 12px;
  text-align: left;
}

.repair-table th{
  background: var(--ghost);
  color: var(--text);
  font-weight: 900;
}

.repair-table tr:nth-child(even) td{
  background: rgba(0,0,0,.02);
}
body.dark .repair-table tr:nth-child(even) td{
  background: rgba(255,255,255,.03);
}

/* ---------- Age warning overlay ---------- */
.age-warning{
  position: fixed;
  inset: 0;
  background: rgba(15,17,19,0.92);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  z-index: 9999;
}

.age-box{
  background: var(--card);
  color: var(--text);
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: center;
  max-width: 420px;
}

/* ---------- Reparatur Buttons ---------- */
.category-buttons{
  margin-top: 1.25rem;
}

.category-buttons button{
  display: inline-block;
  padding: 16px 28px !important;
  font-size: 18px !important;
  font-weight: 900;
  border-radius: var(--radius) !important;
  min-width: 220px;
  margin: 0.5rem 0.75rem 0.5rem 0;
  background: var(--ghost) !important;
  color: var(--text) !important;
  border: 1px solid var(--line) !important;
}

.category-buttons button:hover{
  filter: brightness(0.98);
}

.category-buttons button.active{
  background: var(--btn-bg) !important;
  color: var(--btn-text) !important;
  border-color: transparent !important;
  transform: scale(1.04);
}

.repair-form-btn{
  padding: 18px 34px !important;
  font-size: 18px !important;
  font-weight: 900;
  border-radius: var(--radius) !important;
  min-width: 280px;
  margin-top: 1.25rem;
}

/* =========================================================
   NEU: Startseite Struktur (Hero / Services / Kontakt)
   - Nutzt eure Variablen, bleibt Darkmode-kompatibel
   ========================================================= */

.section{
  margin-top: 18px;
  padding-top: 6px;
}

.section h2{
  margin: 6px 0 12px 0;
  font-size: 20px;
  letter-spacing: .01em;
}

/* Hero */
.hero{
  padding: 10px 0 6px;
}

.hero-inner{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.hero h1{
  margin: 0 0 10px 0;
  font-size: clamp(26px, 3vw, 36px);
}

.subtitle{
  margin: 0 0 14px 0;
  color: var(--muted);
  font-size: 16px;
}

.cta-buttons{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 8px;
}

.tip{
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--ghost);
  border: 1px solid var(--line);
  color: var(--muted);
}

/* Services */
.service-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.service-card{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.service-card h3{
  margin: 0 0 8px 0;
  font-size: 18px;
}

/* Schnellzugriff-Grid */
.cards-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

/* Kontakt */
.contact-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.contact-box{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.contact-link{
  font-weight: 900;
  text-decoration: none;
  border-bottom: 1px dashed var(--line);
}

.contact-link:hover{
  border-bottom-style: solid;
}

.age-note{
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line);
  color: var(--muted);
  background: var(--ghost);
}

/* Responsive */
@media (max-width: 980px){
  .cards-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-grid{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
}

/* ---------- Print ---------- */
@media print{
  header, footer, nav, .toggle-btn{
    display: none !important;
  }
  main{
    box-shadow: none !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}