:root {
  --color-bg: #1a1b1e;
  --color-surface: #232428;
  --color-text: #f1efe9;
  --color-muted: #a2a5ab;
  --color-accent: #ef9143;
  --color-accent-strong: #d97a2e;
  --color-border: #34363b;
  --color-on-accent: #1a1b1e;

  /* Produktkarten bleiben hell, damit Produktfotos (meist auf weißem Grund) sauber aussehen */
  --color-card: #f7f5f1;
  --color-card-border: #e6e2da;
  --color-card-text: #1c1d20;
  --color-card-muted: #6b6f76;
  --color-price: #c1560f;

  --radius: 10px;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text);
}
.logo:hover { text-decoration: none; }
.main-nav a {
  margin-left: 12px;
  padding: 10px 12px;
  color: var(--color-text);
  font-weight: 500;
  border-radius: 6px;
}
.main-nav a:hover { color: var(--color-accent); }

/* Hero */
.hero {
  padding: 64px 0 40px;
  text-align: center;
}
.hero h1 {
  font-size: 2.4rem;
  margin: 0 0 12px;
}
.hero p {
  color: var(--color-muted);
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto 28px;
}

/* Vollbild-Foto-Hero (Startseite) */
.hero--photo {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: 82svh;
  padding: 0;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,12,0.85) 0%, rgba(10,10,12,0.55) 22%, rgba(10,10,12,0.1) 42%, transparent 60%);
}
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 22px;
}
.hero-content h1 {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  margin-bottom: 12px;
}
.hero--photo .hero-search {
  flex-direction: row;
}
.hero--photo .hero-search input {
  background: rgba(35,36,40,0.82);
  backdrop-filter: blur(3px);
}

@media (min-width: 700px) {
  .hero--photo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 82vh;
    height: 82vh;
    min-height: 520px;
    max-height: 860px;
    align-items: stretch;
  }
  .hero-bg {
    position: static;
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
  }
  .hero-overlay { display: none; }
  .hero-content {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    justify-self: stretch;
    width: 100%;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
    padding: 0 48px;
    text-align: left;
  }
  .hero-content h1 {
    color: var(--color-text);
    text-shadow: none;
    font-size: 2.8rem;
  }
  .hero--photo .hero-search {
    margin: 0;
    max-width: 420px;
  }
}
.button {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-on-accent);
  padding: 12px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  border: 1px solid var(--color-accent);
}
.button:hover { background: var(--color-accent-strong); border-color: var(--color-accent-strong); text-decoration: none; }
.button.secondary {
  background: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}
.button.secondary:hover { background: rgba(239,145,67,0.12); }

.hero-search {
  display: flex;
  max-width: 460px;
  margin: 0 auto 18px;
  gap: 8px;
}
.hero-search input {
  flex: 1;
  padding: 12px 16px;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font: inherit;
  font-size: 1rem;
}
.hero-search .button { flex-shrink: 0; }

.search-box { max-width: 460px; margin: 0 0 28px; }
.search-box input {
  width: 100%;
  padding: 12px 16px;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font: inherit;
  font-size: 1rem;
}
.search-box input:focus,
.hero-search input:focus {
  outline: none;
  border-color: var(--color-accent);
}

/* Carousel */
.carousel-section { padding: 0 0 40px; }
.carousel {
  max-width: 720px;
  margin: 0 auto;
}
.carousel-track {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-card);
  border: 1px solid var(--color-card-border);
}
.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.carousel-slide.active { opacity: 1; pointer-events: auto; }
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.carousel-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 18px;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: var(--color-border);
  cursor: pointer;
  padding: 0;
}
.carousel-dot.active { background: var(--color-accent); }

/* Sections */
section { padding: 40px 0; }
section h2 {
  font-size: 1.6rem;
  margin-bottom: 24px;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--color-card);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--color-card);
}
.product-card .info {
  padding: 14px 16px 18px;
}
.product-card .name {
  color: var(--color-card-text);
  font-weight: 600;
  margin: 0 0 6px;
  font-size: 0.95rem;
}
.product-card .price {
  color: var(--color-price);
  font-weight: 700;
}

.shop-embed {
  background: var(--color-card);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 4px;
}

.placeholder-box {
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  color: var(--color-muted);
}

/* Forms */
form.contact-form {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
form.contact-form label {
  font-weight: 600;
  font-size: 0.9rem;
}
form.contact-form input,
form.contact-form textarea {
  padding: 10px 12px;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font: inherit;
  width: 100%;
}
form.contact-form input:focus,
form.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}
form.contact-form textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--color-muted); }
.form-success { background: #1d3324; border: 1px solid #2f5c3c; color: #b8e6c2; padding: 14px 16px; border-radius: var(--radius); }
.form-error { background: #3a1f1f; border: 1px solid #6b2f2f; color: #f2b8b8; padding: 14px 16px; border-radius: var(--radius); }

/* Legal pages */
.legal-page h1 { margin-bottom: 8px; }
.legal-page h2 { font-size: 1.15rem; margin-top: 32px; }
.legal-page p, .legal-page li { color: var(--color-text); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  margin-top: 40px;
  padding: 28px 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}
.footer-nav { margin-bottom: 10px; }
.footer-nav a { margin-right: 16px; color: var(--color-muted); }

@media (max-width: 600px) {
  .site-header .wrap { flex-direction: column; height: auto; padding: 12px 16px; gap: 4px; }
  .main-nav { display: flex; }
  .main-nav a { margin: 0 2px; padding: 8px 10px; font-size: 0.95rem; }
  .wrap { padding: 0 16px; }
  .hero:not(.hero--photo) { padding: 36px 0 28px; }
  .hero h1 { font-size: 1.7rem; }
  .hero p { font-size: 1rem; }
  section { padding: 28px 0; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
  .button { display: block; text-align: center; }
  .hero-search { flex-direction: column; }
}
