@import url('custom-colors.css');
@import url('custom-fonts.css');

/* ============================================================
   DIAMANT Schnapke & Söhne GmbH
   Pixel-genaues CSS nach Vorlage
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 126px; /* Zweizeiliger Header: Top-Bar + Navigationszeile */
  overflow-x: hidden;
}
body { font-family: var(--font-body, Arial, sans-serif); color: #222; background: #fff; overflow-x: hidden;
  display: flex; flex-direction: column; min-height: 100vh; }

/* Kein Abstand zwischen den Seiten-Sektionen */
.page-main {
  display: flex;
  flex-direction: column;
  background: var(--dark-bg); /* Sub-Pixel-Lücken bleiben dunkel = unsichtbar */
  overflow: hidden;           /* Schneidet alles sauber ab */
}
.page-main > * {
  margin: 0;
  flex-shrink: 0;
  transform: translateZ(0);  /* Erzwingt eigene GPU-Compositing-Ebene */
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
address { font-style: normal; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  background: #fff;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

/* Abstand damit Inhalt nicht unter dem fixierten Header verschwindet */
body { padding-top: 126px; }

/* Zeile 1: Logo + Kontakt – feste Höhe damit padding-top immer stimmt */
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 80px;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ===== Shop-Header (neue Struktur) ===== */
.sh-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 80px;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Suchleiste */
.sh-search {
  flex: 1;
  display: flex;
  align-items: center;
  background: #f4f4f4;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.sh-search:focus-within {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(240,122,26,.15);
}
.sh-search input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
  color: #222;
}
.sh-search button {
  background: var(--yellow);
  border: none;
  padding: 0 18px;
  height: 44px;
  cursor: pointer;
  color: #fff;
  font-size: 17px;
  transition: background .2s;
  flex-shrink: 0;
}
.sh-search button:hover { background: var(--yellow-d); }

/* Icon-Gruppe */
.sh-icons {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.sh-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  color: #333;
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  position: relative;
  transition: color .2s, background .2s;
}
.sh-icon span:not(.cart-badge) {
  font-size: 10px;
  font-weight: 600;
  color: #666;
  white-space: nowrap;
}
.sh-icon:hover { color: var(--yellow); background: var(--yellow-10); }
.sh-icon:hover span:not(.cart-badge) { color: var(--yellow-d); }

/* Warenkorb in sh-icons */
.sh-cart { color: var(--dark-bg); }
.sh-cart:hover { color: var(--yellow); }

/* Zeile 2: Navigationsleiste */
.mainnav {
  background: var(--dark-bg);
  border-bottom: 4px solid var(--yellow);
  display: flex;
}
.mainnav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  width: 100%;
  justify-content: center;
}

/* --- Logo --- */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-text-name {
  font-size: 24px;
  font-weight: 900;
  color: #111;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1;
  border-bottom: 3px solid var(--yellow);
  padding-bottom: 4px;
  margin-bottom: 4px;
}

.logo-text-sub {
  font-size: 10px;
  font-weight: 600;
  color: #777;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Logo als Bild (wenn hochgeladen) */
.logo-img {
  height: 80px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* --- Navigation (Zeile 2) --- */
.mainnav a {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #ccc;
  text-transform: uppercase;
  letter-spacing: .6px;
  padding: 13px 20px;
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s, background .2s;
}
.mainnav-active,
.mainnav-active:hover {
  color: var(--yellow) !important;
  font-weight: 700;
  border-bottom-color: var(--yellow) !important;
}
.mainnav a:hover {
  color: var(--yellow);
  border-bottom-color: var(--yellow);
  background: rgba(255,255,255,.05);
}

/* --- Header Kontakt --- */
.header-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  font-size: 13px;
  flex-shrink: 0;
  margin-left: auto;
}
.header-contact a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #222;
  transition: color .2s;
}
.header-contact a:hover { color: var(--yellow-d); }
.header-contact i { color: var(--yellow); font-size: 12px; }

/* --- Burger --- */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 24px;
  height: 3px;
  background: #222;
  border-radius: 2px;
  transition: .25s;
}
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 460px;
  overflow: hidden;
  background: var(--dark-bg); /* Fallback – kein weißer Durchblick */
}

/* Bild füllt den gesamten Hero-Bereich */
.hero-image {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, #2a2a2a 0%, #555 100%);
  overflow: hidden;
}

/* --- Slider --- */
.slider {
  position: absolute;
  inset: 0;
}
.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  opacity: 0;
  transition: opacity .8s ease;
}
.slide.active {
  opacity: 1;
}

/* --- Hero-Textoverlay (einzelnes Element, wird per JS befüllt) --- */
.hero-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px 36px 32px;
  background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.25) 65%, transparent 100%);
  z-index: 10;
  pointer-events: none;
}
.hero-caption h2 {
  font-size: 28px;
  font-weight: 800;
  font-family: var(--font-heading, Arial, sans-serif);
  color: #fff;
  margin: 0 0 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,.55);
  line-height: 1.2;
}
.hero-caption p {
  font-size: 15px;
  color: rgba(255,255,255,.92);
  margin: 0;
  text-shadow: 0 1px 5px rgba(0,0,0,.55);
  line-height: 1.55;
  max-width: 540px;
}
@media (max-width: 960px) {
  .hero-caption { padding: 18px 22px 22px; }
  .hero-caption h2 { font-size: 20px; }
  .hero-caption p  { font-size: 13px; }
}
@media (max-width: 600px) {
  .hero-caption { padding: 12px 14px 16px; }
  .hero-caption h2 { font-size: 16px; margin-bottom: 4px; }
  .hero-caption p  { font-size: 12px; }
}

/* Pfeil-Buttons */
.slider-prev,
.slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0,0,0,.45);
  border: none;
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.slider-prev { left: 14px; }
.slider-next { right: 14px; }
.slider-prev:hover,
.slider-next:hover { background: var(--yellow-75); }

/* Dots */
.slider-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 10;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s;
}
.slider-dot.active {
  background: var(--yellow);
  transform: scale(1.25);
}

/* --- Service-Kacheln: rechts, nur untere 42.5% --- */
.hero-services {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 32%;
  height: 42.5%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  background: var(--module-bg);
}

/* Schräge Kante */
.hero-services::before {
  content: '';
  position: absolute;
  right: 100%;
  top: 0;
  bottom: 0;
  width: 17%;
  background: var(--module-bg);
  clip-path: polygon(100% 0%, 100% 100%, 0% 100%);
  pointer-events: none;
}

.sc {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.09);
  color: #fff;
  transition: background .2s;
}
.sc:nth-child(1),
.sc:nth-child(2) {
  border-top: 5px solid var(--yellow);
}
.sc:hover { background: var(--yellow-10); }
.sc--link { text-decoration: none; cursor: pointer; }
.sc--link:hover { background: var(--yellow-10); }

.sc-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--yellow);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  font-size: 20px;
}

.sc-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.sc-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 3px;
  color: #fff;
}
.sc-text span {
  font-size: 11px;
  color: #bbb;
  line-height: 1.35;
}

/* ============================================================
   UNSERE LEISTUNGEN
   ============================================================ */
.leistungen-section {
  padding: 60px 0;
  background: #fff;
}

.leistungen-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-size: 26px;
  font-weight: 700;
  font-family: var(--font-heading, Arial, sans-serif);
  color: #222;
  margin-bottom: 24px;
}

.leistungen-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

/* --- Formular --- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 2px;
  font-size: 14px;
  font-family: inherit;
  color: #333;
  background: #fff;
  outline: none;
  transition: border-color .2s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #999; }
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--yellow); }
.contact-form textarea { resize: vertical; min-height: 100px; }

.btn-send {
  align-self: flex-end;
  background: var(--yellow);
  color: #111;
  border: none;
  padding: 10px 32px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 2px;
  cursor: pointer;
  transition: background .2s;
}
.btn-send:hover { background: var(--yellow-d); }

.form-msg {
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 2px;
  display: none;
}
.form-msg.success { display: block; background: #d4edda; color: #155724; }
.form-msg.error   { display: block; background: #f8d7da; color: #721c24; }

/* --- Info-Box --- */
.info-box {
  background: var(--dark-bg);
  color: #fff;
  padding: 24px;
  border-radius: 2px;
}

.info-box h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
}

.info-address {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: #ccc;
  margin-bottom: 10px;
  line-height: 1.6;
}
.info-address i { color: var(--yellow); margin-top: 3px; flex-shrink: 0; }

.info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #ccc;
  margin-bottom: 8px;
}
.info-row i { color: var(--yellow); font-size: 12px; flex-shrink: 0; }
.info-row a { color: #ccc; transition: color .2s; }
.info-row a:hover { color: var(--yellow); }

.info-social {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.social-fb,
.social-ig {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  transition: opacity .2s;
}
.social-fb:hover, .social-ig:hover { opacity: .85; }
.social-fb { background: #1877f2; }
.social-ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark-bg);
  border-top: 4px solid var(--yellow);
  padding: 16px 20px;
  flex-shrink: 0;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-nav a {
  font-size: 13px;
  font-weight: 600;
  color: #ccc;
  transition: color .2s;
}
.footer-nav a:hover { color: var(--yellow); }
.footer-nav span { color: #555; font-size: 13px; }

.footer-copy {
  font-size: 12px;
  color: #888;
  margin: 0;
}
.footer-copy a { color: #888; transition: color .2s; }
.footer-copy a:hover { color: var(--yellow); }

/* ============================================================
   AKTUELLES-STREIFEN (schmal, direkt unter dem Hero)
   ============================================================ */
.aktuelles-strip {
  background: #f0f0f0;
  border-bottom: 1px solid #ddd;
}
.aktuelles-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: baseline;
  gap: 0;
  min-height: 44px;
  border-left: 5px solid var(--yellow);
}
.aktuelles-label {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--yellow);
  color: #111;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  padding: 0 16px;
  height: 44px;
  margin-right: 20px;
  white-space: nowrap;
}
.aktuelles-label i { font-size: 12px; }
.aktuelles-text {
  flex: 1;
  padding: 10px 0;
  font-size: 13px;
  color: #444;
  line-height: 1.6;
  overflow: hidden;
}
/* CMS-Inhalt im Streifen: nur inline-Text, keine Block-Elemente aufgebläht */
.cms-content--strip p        { margin: 0; font-size: 13px; color: #444; line-height: 1.6; }
.cms-content--strip h2,
.cms-content--strip h3       { display: inline; font-size: 13px; font-weight: 700;
                                color: #222; border: none; padding: 0; margin: 0; }
.cms-content--strip ul,
.cms-content--strip ol       { margin: 2px 0 0 1.2em; font-size: 13px; color: #444; }
.cms-content--strip li       { margin-bottom: 0; }
.cms-content--strip strong   { color: #111; }
.cms-content--strip a        { color: var(--yellow-d); text-decoration: underline; }

/* ============================================================
   CONTENT-SEKTIONEN (Startseite – dynamisch)
   ============================================================ */
.content-section {
  padding: 60px 20px;
  background: #fff;
}
.content-section--alt {
  background: #f7f7f7;
}
.content-section--dark {
  background: var(--dark-bg);
}
.content-section--dark .section-title { color: #fff; }
.content-section--dark .section-title::after { background: var(--yellow); }
.content-section--dark .cms-content h2 { color: #eee; }
.content-section--dark .cms-content h3 { color: #ccc; }
.content-section--dark .cms-content p,
.content-section--dark .cms-content address,
.content-section--dark .cms-content ul,
.content-section--dark .cms-content ol { color: #bbb; }
.content-section--dark .cms-content strong { color: #fff; }
.content-section--dark .cms-content blockquote { background: rgba(255,255,255,.06); color: #ccc; }
.content-section--dark .cms-content td,
.content-section--dark .cms-content th { border-color: #2c4d7a; }
.content-section--dark .cms-content th { background: rgba(255,255,255,.1); }

/* Kontaktformular im dunklen Abschnitt */
.content-section--dark .contact-form input,
.content-section--dark .contact-form textarea {
  background: #172b46;
  border-color: #2c4d7a;
  color: #ddd;
}
.content-section--dark .contact-form input::placeholder,
.content-section--dark .contact-form textarea::placeholder { color: #7a9bbf; }
.content-section--dark .contact-form input:focus,
.content-section--dark .contact-form textarea:focus { border-color: var(--yellow); }

/* Info-Box im dunklen Abschnitt: zentriert, linksbündig */
.content-section--dark .leistungen-cols {
  align-items: center;
}
.content-section--dark .info-box {
  background: #172b46;
  border: 1px solid #2c4d7a;
  max-width: 340px;
  margin: 0 auto;
  text-align: left;
}

.content-section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* Abschnitts-Kopf: Icon + Titel */
.section-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 4px solid var(--yellow);
}
.section-header-icon {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  background: var(--yellow);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  font-size: 22px;
}
.section-header .section-title {
  margin-bottom: 0;
  position: relative;
  padding-bottom: 8px;
}
.section-header .section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  background: var(--yellow);
  border-radius: 2px;
}

/* CMS-Inhalt (aus TinyMCE) */
.cms-content {
  margin-top: 0;
}
.cms-content h2 {
  font-size: 20px;
  font-weight: 700;
  font-family: var(--font-heading, Arial, sans-serif);
  color: #222;
  margin: 1.6em 0 .5em;
  padding-bottom: 5px;
  border-bottom: 2px solid var(--yellow);
}
.cms-content h2:first-child { margin-top: 0; }
.cms-content h3 {
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-heading, Arial, sans-serif);
  color: #333;
  margin: 1.2em 0 .4em;
}
.cms-content p,
.cms-content address {
  font-size: 14px;
  color: #444;
  line-height: 1.8;
  margin-bottom: .85em;
  font-style: normal;
}
.cms-content ul,
.cms-content ol {
  margin: 0 0 .85em 1.5em;
  font-size: 14px;
  color: #444;
  line-height: 1.8;
}
.cms-content li { margin-bottom: .2em; }
.cms-content a { color: var(--yellow-d); text-decoration: underline; }
.cms-content a:hover { color: var(--yellow); }
.cms-content strong { color: #222; }
.cms-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 1em;
}
.cms-content td,
.cms-content th {
  padding: 9px 14px;
  border: 1px solid #ddd;
  text-align: left;
}
.cms-content th {
  background: var(--dark-bg);
  color: #fff;
  font-weight: 600;
}
.cms-content blockquote {
  border-left: 4px solid var(--yellow);
  padding: 10px 16px;
  background: #f9f5e0;
  margin: 1em 0;
  font-style: italic;
  color: #555;
}
.cms-content img {
  max-width: 100%;
  height: auto;
  border-radius: 3px;
}

/* 2-Spalten-Layout für breiten Inhalt */
.cms-content .cms-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
@media (max-width: 700px) {
  .cms-content .cms-cols { grid-template-columns: 1fr; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero {
    height: auto;
    display: flex;
    flex-direction: column;
    overflow: visible; /* kein Abschneiden der gestackten Kacheln */
  }
  .hero-image {
    position: relative;
    height: 280px;
    flex-shrink: 0;
    overflow: hidden; /* Slider-Bild bleibt geclippt */
  }
  .hero-services {
    position: relative;
    width: 100%;
    height: auto;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    background: var(--dark-bg);
    overflow: visible;
  }
  .hero-services::before { display: none; } /* Diagonale auf Tablet sinnlos */
  .leistungen-cols {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sh-search { display: none; }
  .sh-icon span:not(.cart-badge) { display: none; }
  .sh-inner {
    height: 68px;
    gap: 8px;
    padding: 0 16px; /* weniger Padding auf Mobile */
  }
  .header-contact { display: none; }

  /* Burger sichtbar machen und ans Ende setzen */
  .burger {
    display: flex;
    order: 10; /* Ans Ende, aber sichtbar */
    flex-shrink: 0; /* Nie verkleinern */
    margin-left: auto; /* Rechts ausrichten */
  }

  /* Icons kompakter */
  .sh-icons {
    gap: 2px;
    order: 5; /* Nach Logo, vor Burger */
  }
  .logo { order: 1; } /* Logo zuerst */

  .mainnav {
    display: none;
    border-bottom: none;
  }
  .mainnav.open {
    display: flex;
    border-bottom: 4px solid var(--yellow);
  }
  .mainnav-inner {
    flex-direction: column;
    padding: 0;
    justify-content: flex-start;
  }
  .mainnav a {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  /* Logo auf Mobile: kompakter */
  .logo-text-name {
    font-size: 16px;
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
  }
  .logo-text-sub { display: none; }
  .logo-img { height: 52px; }
  html { scroll-padding-top: 68px; }
  body { padding-top: 68px; }
  .header-inner { height: 68px; }
  .hero { height: auto; flex-direction: column; overflow: visible; }
  .hero-image { position: relative; height: 220px; flex-shrink: 0; overflow: hidden; }
  .hero-services {
    position: relative; width: 100%; height: auto;
    grid-template-columns: 1fr 1fr; grid-template-rows: auto auto;
    overflow: visible;
  }
  .sc { padding: 10px 12px; }
  .sc-icon { width: 38px; height: 38px; font-size: 16px; }
}

/* Extra Small Devices - Burger immer sichtbar */
@media (max-width: 400px) {
  .sh-inner {
    gap: 4px;
    padding: 0 12px;
  }
  .sh-icons {
    gap: 0;
  }
  .sh-icon {
    padding: 8px 6px;
    font-size: 1.1rem;
  }
  .logo-img {
    height: 48px;
  }
  .logo-text-name {
    font-size: 14px;
    max-width: 140px;
  }
}

/* ===== Downloads-Sektion ===== */
.dl-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.dl-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.dl-card:hover {
  border-color: var(--yellow);
  background: #fffcf0;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
}
.dl-card-icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  background: #fff0f0;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: #c0392b;
  font-size: 20px;
}
.dl-card-info { flex: 1; min-width: 0; }
.dl-card-title {
  font-size: 14px; font-weight: 600; color: #222;
  line-height: 1.4;
  word-break: break-word;
}
.dl-card-hint { font-size: 12px; color: #888; margin-top: 4px; }
.dl-card-arrow { flex-shrink: 0; color: var(--yellow-d); font-size: 13px; }
.dl-empty { text-align: center; color: #aaa; font-size: 14px; padding: 40px 0; }
@media (max-width: 500px) { .dl-grid { grid-template-columns: 1fr; } }

/* ===== Legal-Sektionen (Impressum / Datenschutz) ===== */
.legal-section { background: #fafafa; }
.legal-content { max-width: 820px; }
.legal-content h2 {
  font-size: 18px; font-weight: 700; color: #222;
  margin: 1.6em 0 .4em; padding-bottom: 5px;
  border-bottom: 2px solid var(--yellow);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 14px; font-weight: 600; color: #333; margin: 1.1em 0 .3em; }
.legal-content p, .legal-content address, .legal-content li {
  font-size: 13px; color: #555; line-height: 1.8; margin-bottom: .7em;
}
.legal-content ul, .legal-content ol { margin: 0 0 .7em 1.4em; }
.legal-content a { color: var(--yellow-d); text-decoration: underline; }
.legal-content a:hover { color: var(--yellow); }

/* ===== Legal Modals (Impressum / Datenschutz) ===== */
.wm-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 900;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
}
.wm-overlay.open { display: flex; }
.wm-box {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  width: 100%;
  max-width: 760px;
  padding: 40px 48px;
  position: relative;
  animation: wmIn .2s ease;
  color: #333;
}
@keyframes wmIn {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.wm-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #999;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  transition: color .15s;
}
.wm-close:hover { color: #333; }
.wm-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--yellow, #f5c400);
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.wm-content {
  font-size: 14px;
  color: #444;
  line-height: 1.8;
  text-align: left;
}
.wm-content p   { margin: 0 0 12px; }
.wm-content h2,
.wm-content h3  { color: #222; font-size: 15px; margin: 16px 0 6px; }
.wm-content a   { color: var(--yellow, #f5c400); }
.wm-footer {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.08);
  text-align: right;
}
.wm-btn-close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--yellow, #f5c400);
  border: 1px solid transparent;
  border-radius: 4px;
  color: #111;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.wm-btn-close:hover { background: var(--yellow-d, #c9a000); color: #111; }
@media (max-width: 600px) {
  .wm-box { padding: 28px 20px; }
  .wm-footer { text-align: center; }
}

/* ============================================================
   PAGE-HERO (wird von Shop-Seiten und seite-template genutzt)
   ============================================================ */
.page-hero {
  background: var(--dark-bg);
  border-bottom: 2px solid var(--yellow);
  padding: 19px 16px;
}
.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.page-hero h1 {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin: 0;
}
.page-hero h1 span { color: var(--yellow); }

/* ============================================================
   SHOP – Gemeinsame Styles
   ============================================================ */
.shop-section {
  padding: 48px 20px 64px;
  flex: 1 0 auto;
}
.shop-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* Warenkorb-Icon im Header */
.header-cart-row {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-cart {
  position: relative;
  color: var(--dark-bg);
  font-size: 20px;
  text-decoration: none;
  display: flex;
  align-items: center;
}
.header-cart:hover { color: var(--yellow); }
.cart-badge {
  position: absolute;
  top: -7px;
  right: -8px;
  background: var(--yellow);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ── Shop Topbar (Breadcrumb + Kategorie-Tabs) ── */
.shop-topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  background: #f4f5f7;
  border-bottom: 1px solid #ddd;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.shop-topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Breadcrumb */
.shop-breadcrumb {
  font-size: 12px;
  color: #888;
  margin: 0;
  padding: 10px 0 0;
}
.shop-breadcrumb a { color: #666; text-decoration: none; }
.shop-breadcrumb a:hover { color: var(--yellow-d); }
.shop-breadcrumb span { margin: 0 5px; color: #bbb; }

/* Kategorie-Nav innerhalb Topbar */
.shop-kat-nav {
  margin: 0;
  padding: 0;
}

.shop-kat-tabs {
  border-bottom: 2px solid #eee;
  position: relative;
}
.shop-kat-tabs-scroll {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.shop-kat-tabs-scroll::-webkit-scrollbar { display: none; }

/* Fade-Hinweis rechts: zeigt dass mehr Tabs da sind */
.shop-kat-tabs::after,
.shop-kat-subtabs::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 40px;
  background: linear-gradient(to right, transparent, #f4f5f7);
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
}
.shop-kat-tabs.has-overflow::after,
.shop-kat-subtabs.has-overflow::after {
  opacity: 1;
}
.shop-kat-subtabs {
  position: relative;
}

.shop-kat-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  font-size: .88rem;
  font-weight: 500;
  color: #666;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color .2s, border-color .2s;
}
.shop-kat-tab:hover { color: var(--dark-bg); }
.shop-kat-tab.active {
  color: var(--dark-bg);
  border-bottom-color: var(--yellow);
  font-weight: 600;
}

.shop-kat-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: #f0f0f0;
  color: #888;
  font-size: .72rem;
  font-weight: 600;
}
.shop-kat-tab.active .shop-kat-count {
  background: var(--yellow);
  color: #fff;
}

/* Unterkategorien */
.shop-kat-subtabs {
  background: #f8f9fa;
}
.shop-kat-subtabs .shop-kat-tabs-scroll { padding: 0; }

.shop-kat-subtab {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 16px;
  font-size: .82rem;
  color: #666;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 16px;
  margin: 6px 2px;
  transition: background .15s, color .15s;
}
.shop-kat-subtab:hover { background: #e8e8e8; color: #333; }
.shop-kat-subtab.active { background: var(--dark-bg); color: #fff; }
.shop-kat-subtab.active .shop-kat-count { background: rgba(255,255,255,.25); color: #fff; }
.shop-kat-subtab .shop-kat-count { font-size: .7rem; min-width: 18px; height: 18px; padding: 0 5px; }

/* Sortierleiste */
.shop-sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
}
.shop-sort-count { font-size: .85rem; color: #888; }
.shop-sort-right { display: flex; align-items: center; gap: 8px; }
.shop-sort-right label { font-size: .82rem; color: #888; }
.shop-sort-select {
  padding: 6px 28px 6px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: .82rem;
  color: #444;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none;
  cursor: pointer;
}
.shop-sort-select:focus { outline: none; border-color: var(--yellow); }

/* Mobile: Topbar + Kategorie-Tabs */
@media (max-width: 768px) {
  .shop-topbar-inner { padding: 0 16px; }
  .shop-breadcrumb { padding-top: 8px; font-size: 11px; }
  .shop-kat-tabs-scroll {
    /* Horizontaler Scroll mit Swipe-Hinweis */
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }
  .shop-kat-tab {
    padding: 10px 14px;
    font-size: .82rem;
    scroll-snap-align: start;
  }
  .shop-kat-subtab {
    padding: 7px 12px;
    font-size: .78rem;
    scroll-snap-align: start;
  }
  .shop-kat-count { min-width: 18px; height: 18px; font-size: .68rem; padding: 0 5px; }
  .shop-sort-bar { flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px 0; }
  .shop-sort-right { width: 100%; }
  .shop-sort-select { flex: 1; }
}

/* Kleine Smartphones */
@media (max-width: 400px) {
  .shop-topbar-inner { padding: 0 12px; }
  .shop-kat-tab { padding: 8px 10px; font-size: .78rem; }
  .shop-kat-subtab { padding: 6px 10px; font-size: .74rem; }
}

/* Produkt-Grid */
.produkt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .produkt-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .produkt-grid { grid-template-columns: 1fr; } }

/* Produktkarte */
.produkt-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
  text-decoration: none;
  color: inherit;
}
.produkt-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  transform: translateY(-2px);
}
.produkt-card-bild {
  height: 180px;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.produkt-card-bild img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  transition: transform .3s;
}
.produkt-card:hover .produkt-card-bild img { transform: scale(1.04); }
.produkt-card-bild .no-img { color: #ccc; font-size: 2rem; }
.produkt-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.produkt-card-kat {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--yellow-d);
  margin-bottom: 4px;
}
.produkt-card-name {
  font-size: .97rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 6px;
  line-height: 1.35;
}
.produkt-card-kurz {
  font-size: .82rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 12px;
}
.produkt-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}
.produkt-preis {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--dark-bg);
}
.produkt-preis-sub {
  font-size: .7rem;
  color: #999;
  font-weight: 400;
}
.btn-shop {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--yellow);
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
  white-space: nowrap;
}
.btn-shop:hover { background: var(--yellow-d); color: #fff; }
.btn-shop--outline {
  background: transparent;
  color: var(--dark-bg);
  border: 2px solid var(--dark-bg);
}
.btn-shop--outline:hover { background: var(--dark-bg); color: #fff; }

/* Produktdetail */
.produkt-detail-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
  align-items: start;
}
@media (max-width: 860px) { .produkt-detail-grid { grid-template-columns: 1fr; } }

.gallery-main {
  height: 320px;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  margin-bottom: 10px;
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: opacity .2s;
}
.btn-personalisieren {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 14px;
  padding: 13px;
  background: var(--dark-bg);
  color: #fff;
  border: 2px solid var(--dark-bg);
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.btn-personalisieren:not(:disabled):hover {
  background: transparent;
  color: var(--dark-bg);
}
.btn-personalisieren:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.gallery-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.gallery-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 5px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color .15s;
}
.gallery-thumb.active,
.gallery-thumb:hover { border-color: var(--yellow); }

.produkt-info-box {
  position: sticky;
  top: 140px;
}
.produkt-info-kat {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--yellow-d);
  margin-bottom: 6px;
}
.produkt-info-name {
  font-size: 1.6rem;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.25;
  margin-bottom: 12px;
}
.produkt-info-preis {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--dark-bg);
  margin-bottom: 4px;
}
.produkt-info-mwst {
  font-size: .78rem;
  color: #999;
  margin-bottom: 20px;
}
.produkt-info-kurz {
  font-size: .9rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #eee;
}
.produkt-menge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.produkt-menge-row label {
  font-size: .85rem;
  font-weight: 600;
  color: #444;
  white-space: nowrap;
}
.menge-input {
  width: 70px;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: .95rem;
  text-align: center;
}
.btn-warenkorb {
  width: 100%;
  padding: 13px;
  background: var(--yellow);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .15s;
  text-decoration: none;
}
.btn-warenkorb:hover { background: var(--yellow-d); color: #fff; }
.btn-warenkorb:disabled { background: #ccc; cursor: not-allowed; }
.warenkorb-feedback {
  margin-top: 10px;
  font-size: .83rem;
  color: #2d7a2d;
  display: none;
}
.produkt-beschreibung {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 2px solid #f0f0f0;
}
.produkt-beschreibung h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #222;
}
.produkt-beschreibung-content {
  font-size: .9rem;
  color: #444;
  line-height: 1.8;
}
.produkt-beschreibung-content p  { margin-bottom: .8em; }
.produkt-beschreibung-content ul { margin: 0 0 .8em 1.4em; }

/* Leer-Hinweis */
.shop-empty {
  text-align: center;
  padding: 60px 20px;
  color: #aaa;
  font-size: 1rem;
}
.shop-empty i { font-size: 2.5rem; display: block; margin-bottom: 12px; }

/* Warenkorb-Toast */
.cart-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1a1a2e;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  z-index: 9999;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .25s, transform .25s;
  pointer-events: none;
}
.cart-toast.show { opacity: 1; transform: translateY(0); }
