/* ============================================
   Schmidt Distinct Theme – Abgrenzung zu LNW
   ============================================
   Deaktivieren: schmidt_distinct_theme_enabled() → false
   in includes/template-data.php
   ============================================ */

body.schmidt-distinct {
  --light: #F5F1EA;
  --light-mid: #EBE6DC;
  --border: #DDD6C8;
  background-color: #FAF8F4;
  background-image:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(217, 78, 15, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 95% 100%, rgba(78, 128, 32, 0.07) 0%, transparent 50%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 48px,
      rgba(78, 128, 32, 0.018) 48px,
      rgba(78, 128, 32, 0.018) 49px
    );
}

/* --- Hero: wärmer, höher, persönlicher --- */
body.schmidt-distinct .hero-content .kicker {
  border-radius: 999px;
  padding: 0.35rem 1.1rem;
  box-shadow: 0 4px 14px rgba(217, 78, 15, 0.35);
  letter-spacing: 0.08em;
}
body.schmidt-distinct .hero-slide {
  height: min(82vh, 760px);
  min-height: 560px;
}
body.schmidt-distinct .hero-slide:not(.hero-slide--cms)::before {
  background: linear-gradient(108deg, rgba(28, 28, 28, 0.78) 0%, rgba(45, 74, 30, 0.45) 55%, rgba(217, 78, 15, 0.12) 100%);
}
body.schmidt-distinct .hero-slide-overlay {
  background: linear-gradient(
    108deg,
    rgba(28, 28, 28, 0.78) 0%,
    rgba(45, 74, 30, 0.45) 55%,
    rgba(217, 78, 15, 0.12) 100%
  );
}
/* Platz schaffen, damit die Karten den Slider überlappen können */
body.schmidt-distinct .hero-slide { padding-bottom: 5.5rem; }
body.schmidt-distinct .slider-controls { bottom: 6.5rem; }

/* Grüner Info-Balken entfällt im Distinct-Theme */
body.schmidt-distinct .info-strip { display: none; }

/* --- „Heute bei Schmidt“ – halb über dem Slider --- */
.schmidt-today-strip {
  position: relative;
  margin-top: -7rem;
  padding: 0 0 3.5rem;
  z-index: 6;
}

/* Schwebendes Live-Status-Pill (oben rechts über den Karten) */
.schmidt-today-strip__statusbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}
.schmidt-today-strip__status {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 10px 28px rgba(28, 28, 28, 0.12);
}
.schmidt-today-strip__status-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #dc2626;
}
.schmidt-today-strip__status--open .schmidt-today-strip__status-dot {
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
  animation: schmidt-pulse-open 2s ease-in-out infinite;
}
.schmidt-today-strip__status-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.schmidt-today-strip__status-text strong {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--dark);
}
.schmidt-today-strip__status-text span {
  font-size: 0.76rem;
  color: var(--text-muted);
}
@keyframes schmidt-pulse-open {
  0%, 100% { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2); }
  50% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0.07); }
}

.schmidt-today-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.schmidt-today-card {
  position: relative;
  display: flex;
  gap: 1rem;
  padding: 1.35rem 1.25rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(28, 28, 28, 0.06);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.schmidt-today-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}
.schmidt-today-card:hover {
  transform: translateY(-3px);
  border-color: rgba(217, 78, 15, 0.35);
  box-shadow: 0 14px 36px rgba(217, 78, 15, 0.1);
}
.schmidt-today-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(217, 78, 15, 0.12), rgba(78, 128, 32, 0.12));
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.schmidt-today-card__media {
  position: relative;
  flex-shrink: 0;
}
.schmidt-today-card__image {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--light);
}
.schmidt-today-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.schmidt-today-card--visual-image .schmidt-today-card__image {
  width: 56px;
  height: 56px;
}
.schmidt-today-card__media--both .schmidt-today-card__image {
  width: 56px;
  height: 56px;
}
.schmidt-today-card__media--both .schmidt-today-card__icon {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 0.72rem;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.schmidt-today-card--visual-image .schmidt-today-card__media:not(:has(.schmidt-today-card__image)) .schmidt-today-card__icon {
  width: 56px;
  height: 56px;
  font-size: 1.25rem;
}
.schmidt-today-card h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 0.4rem;
  line-height: 1.3;
}
.schmidt-today-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 0.65rem;
  line-height: 1.5;
}
.schmidt-today-card__highlight {
  font-size: 0.95rem !important;
  font-weight: 700;
  color: var(--dark) !important;
  letter-spacing: 0.01em;
}
.schmidt-today-card__badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  background: var(--primary);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  margin-bottom: 0.45rem;
}
/* Inhalt füllt die Karte, CTA sitzt unten bündig */
.schmidt-today-card { align-items: stretch; }
.schmidt-today-card > div:last-child {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
}
.schmidt-today-card > div:last-child > a {
  margin-top: auto;
  padding-top: 0.6rem;
}
.schmidt-today-card a {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  align-self: flex-start;
}
.schmidt-today-card a i { transition: transform 0.2s ease; }
.schmidt-today-card a:hover i { transform: translateX(3px); }

.schmidt-today-quicklinks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.schmidt-today-quicklinks a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: var(--text);
  font-weight: 500;
}
.schmidt-today-quicklinks a i {
  width: 1.1rem;
  color: var(--primary);
  font-size: 0.75rem;
}
.schmidt-today-quicklinks a:hover { color: var(--primary); }

/* --- Info-Strip: grün statt orange --- */
body.schmidt-distinct .info-strip {
  background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary) 100%);
  border-top: 4px solid var(--primary);
}
body.schmidt-distinct .info-strip-item i {
  color: rgba(255, 255, 255, 0.95);
  background: rgba(217, 78, 15, 0.25);
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

/* --- Sektionen: wärmere Flächen --- */
body.schmidt-distinct .about-section {
  background: linear-gradient(180deg, rgba(245, 241, 234, 0.82), rgba(250, 248, 244, 0.95));
  border-top: 1px solid rgba(221, 214, 200, 0.72);
  border-bottom: 1px solid rgba(221, 214, 200, 0.72);
}
body.schmidt-distinct .home-welcome-section {
  background:
    radial-gradient(circle at 12% 20%, rgba(217, 78, 15, 0.08), transparent 30%),
    radial-gradient(circle at 88% 70%, rgba(78, 128, 32, 0.09), transparent 32%),
    linear-gradient(180deg, #f7f1e7 0%, #fbf8f2 100%);
  border: 0;
}
body.schmidt-distinct .home-welcome-card {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(255,252,246,0.93)),
    repeating-linear-gradient(-12deg, transparent 0 38px, rgba(78,128,32,0.025) 38px 39px);
  border-color: rgba(194, 181, 158, 0.72);
  box-shadow:
    0 26px 70px rgba(71, 52, 28, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.85);
}
body.schmidt-distinct .home-welcome-card .section-title {
  max-width: 760px;
  font-size: clamp(1.75rem, 3.2vw, 2.55rem);
  line-height: 1.15;
  text-wrap: balance;
}
body.schmidt-distinct .home-welcome-head .divider-primary {
  width: 74px;
  margin-top: 1.1rem;
  margin-bottom: 1.55rem;
}
body.schmidt-distinct .welcome-body {
  font-size: 1.02rem;
}
body.schmidt-distinct .welcome-body :is(h2, h3) {
  color: #211d18;
}
body.schmidt-distinct .welcome-body p {
  color: #514a40;
}
body.schmidt-distinct .welcome-body a[href^="http"] {
  background: rgba(217, 78, 15, 0.1);
  color: #a53809;
  border: 1px solid rgba(217, 78, 15, 0.16);
}
body.schmidt-distinct .home-welcome-note {
  background: linear-gradient(135deg, #2d2418, #31451e);
  border: 1px solid rgba(255,255,255,0.08);
}
body.schmidt-distinct .cat-section {
  background: transparent;
  padding-top: clamp(4rem, 7vw, 6.25rem);
  padding-bottom: clamp(4rem, 7vw, 6.25rem);
}
body.schmidt-distinct .news-section {
  background:
    linear-gradient(180deg, rgba(245,241,234,0.92), rgba(245,241,234,0.76)),
    radial-gradient(circle at 8% 10%, rgba(217,78,15,0.08), transparent 32%);
  border-top: 1px solid rgba(221, 214, 200, 0.72);
  border-bottom: 1px solid rgba(221, 214, 200, 0.72);
}
body.schmidt-distinct .offers-section {
  background: transparent;
  padding-top: clamp(4rem, 7vw, 6rem);
  padding-bottom: clamp(4rem, 7vw, 6rem);
}

body.schmidt-distinct .section-title {
  letter-spacing: -0.02em;
}
body.schmidt-distinct .divider-primary,
body.schmidt-distinct .divider-primary.center {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
  height: 4px;
}
body.schmidt-distinct .section-subtitle {
  color: #5a554c;
  font-style: normal;
}

/* --- Kategorie-Karten: charaktervoller --- */
body.schmidt-distinct .cat-card {
  border-radius: 16px;
  border-color: var(--border);
  box-shadow: 0 8px 24px rgba(28, 28, 28, 0.05);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
body.schmidt-distinct .cat-card::after {
  content: '';
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(217, 78, 15, 0.15);
  z-index: 2;
  pointer-events: none;
}
body.schmidt-distinct .cat-card {
  position: relative;
}
body.schmidt-distinct .cat-card-img {
  border-bottom: 3px solid var(--primary);
}
body.schmidt-distinct .cat-card-body h3 {
  padding-left: 0.75rem;
  border-left: 3px solid var(--primary);
}
body.schmidt-distinct .cat-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}
body.schmidt-distinct .cat-card-body a {
  margin-top: auto;
  align-self: flex-start;
}
body.schmidt-distinct .cat-card:hover {
  border-color: rgba(217, 78, 15, 0.4);
  box-shadow: 0 14px 36px rgba(217, 78, 15, 0.12);
}

/* --- News-Karten --- */
body.schmidt-distinct .news-card {
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(28, 28, 28, 0.05);
  display: flex;
  flex-direction: column;
}
body.schmidt-distinct .news-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}
body.schmidt-distinct .news-card-body .read-more {
  margin-top: auto;
}
body.schmidt-distinct .news-card-img {
  border-bottom: 3px solid var(--secondary);
}
body.schmidt-distinct .news-cat {
  background: rgba(217, 78, 15, 0.1);
  color: var(--primary);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
}

/* --- Angebots-Karten: Stempel-Look --- */
body.schmidt-distinct .offer-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 22px rgba(28, 28, 28, 0.06);
  position: relative;
  background: #fff;
}
body.schmidt-distinct .offer-card-body {
  min-height: 190px;
}
body.schmidt-distinct .offer-card-header {
  background: linear-gradient(135deg, var(--primary) 0%, #c4450c 100%);
}
body.schmidt-distinct .offer-card .badge-new {
  position: absolute;
  top: 3.2rem;
  right: 0.85rem;
  transform: rotate(8deg);
  background: var(--secondary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.06em;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

/* --- CTA-Band --- */
body.schmidt-distinct .cta-band {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2418 45%, var(--secondary-dark) 100%);
  position: relative;
  overflow: hidden;
}
body.schmidt-distinct .cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 50%, rgba(217, 78, 15, 0.2), transparent 45%);
  pointer-events: none;
}

/* --- Buttons: etwas weicher --- */
body.schmidt-distinct .btn-primary-brand {
  border-radius: 8px;
}
body.schmidt-distinct .btn-secondary-brand {
  border-radius: 8px;
}

/* --- Kontakt-Karte (wenn distinct aktiv) --- */
body.schmidt-distinct .contact-info-card {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

/* --- Page Header --- */
body.schmidt-distinct .page-header::before {
  background: linear-gradient(105deg, rgba(217, 78, 15, 0.22) 0%, rgba(78, 128, 32, 0.12) 50%, transparent 75%);
}

/* --- Allgemeine Inhaltsseiten als Karte --- */
body.schmidt-distinct .content-section {
  padding-top: 0;
}
body.schmidt-distinct .content-section .content-page {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: clamp(1.75rem, 4vw, 3.25rem);
  box-shadow: 0 18px 48px rgba(28, 28, 28, 0.07);
  position: relative;
  overflow: hidden;
  margin-top: -3rem;
  z-index: 3;
}
@media (max-width: 767px) {
  body.schmidt-distinct .content-section .content-page { margin-top: -1.75rem; }
}
body.schmidt-distinct .content-section .content-page::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}
body.schmidt-distinct .content-text h2 {
  letter-spacing: -0.01em;
}
body.schmidt-distinct .content-text h2::after {
  width: 64px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

/* --- Galerie Empty State --- */
body.schmidt-distinct .gallery-section {
  background:
    radial-gradient(circle at 10% 8%, rgba(217, 78, 15, 0.07), transparent 30%),
    radial-gradient(circle at 90% 92%, rgba(78, 128, 32, 0.08), transparent 32%),
    linear-gradient(180deg, #f7f1e7 0%, #fbf8f2 100%);
}
body.schmidt-distinct .gallery-empty__card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(255, 252, 246, 0.94));
  border-color: rgba(194, 181, 158, 0.72);
}

/* --- Externer Link Modal --- */
body.schmidt-distinct .schmidt-external-modal-card {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(255, 252, 246, 0.96));
  border-color: rgba(194, 181, 158, 0.75);
  box-shadow:
    0 32px 80px rgba(71, 52, 28, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

/* --- Zertifikate --- */
body.schmidt-distinct .cert-section-v2 {
  background:
    radial-gradient(circle at 10% 12%, rgba(78,128,32,0.08), transparent 30%),
    radial-gradient(circle at 90% 85%, rgba(217,78,15,0.07), transparent 32%),
    linear-gradient(180deg, #f7f1e7 0%, #fbf8f2 100%);
}
body.schmidt-distinct .cert-card-v2 {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.97), rgba(255,252,246,0.94));
  border-color: rgba(194, 181, 158, 0.72);
}

/* --- Lieferservice --- */
body.schmidt-distinct .delivery-section {
  background:
    radial-gradient(circle at 10% 12%, rgba(217,78,15,0.07), transparent 30%),
    radial-gradient(circle at 90% 80%, rgba(78,128,32,0.08), transparent 32%),
    linear-gradient(180deg, #f7f1e7 0%, #fbf8f2 100%);
}
body.schmidt-distinct .delivery-intro-card {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.97), rgba(255,252,246,0.94)),
    repeating-linear-gradient(-12deg, transparent 0 38px, rgba(78,128,32,0.025) 38px 39px);
  border-color: rgba(194, 181, 158, 0.72);
  box-shadow: 0 22px 60px rgba(71, 52, 28, 0.12);
}
body.schmidt-distinct .delivery-intro-card .section-title {
  letter-spacing: -0.01em;
  text-wrap: balance;
}
body.schmidt-distinct .delivery-feature,
body.schmidt-distinct .delivery-step {
  border-color: rgba(194, 181, 158, 0.7);
}
body.schmidt-distinct .delivery-feature { background: rgba(255,255,255,0.96); }
body.schmidt-distinct .delivery-step {
  background: linear-gradient(160deg, rgba(255,255,255,0.95), rgba(245,241,234,0.92));
}
body.schmidt-distinct .divider-primary.center {
  margin-left: auto;
  margin-right: auto;
}

/* --- News-Detail wie Inhaltsseiten --- */
body.schmidt-distinct .news-detail-section {
  padding-top: 0;
}
body.schmidt-distinct .news-detail-section .news-detail {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: clamp(1.75rem, 4vw, 3.25rem);
  box-shadow: 0 18px 48px rgba(28, 28, 28, 0.07);
  position: relative;
  overflow: hidden;
  margin-top: -3rem;
  z-index: 3;
}
body.schmidt-distinct .news-detail-section .news-detail::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}
@media (max-width: 767px) {
  body.schmidt-distinct .news-detail-section .news-detail { margin-top: -1.75rem; }
}

/* --- Responsive --- */
@media (max-width: 1199px) {
  .schmidt-today-strip {
    margin-top: -5rem;
  }
  .schmidt-today-strip__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 767px) {
  body.schmidt-distinct .hero-slide {
    height: auto;
    min-height: 480px;
    padding-bottom: 3rem;
  }
  body.schmidt-distinct .slider-controls { bottom: 1.5rem; }
  .schmidt-today-strip {
    margin-top: -2.5rem;
    padding-bottom: 2.5rem;
  }
  .schmidt-today-strip__grid {
    grid-template-columns: 1fr;
  }
  .schmidt-today-card {
    padding: 1.15rem 1rem;
  }
}
