/* ============================================================
   ERZEUGERMARKT KONSTABLERWACHE — main.css
   ============================================================ */

/* ── CSS-Variablen (spiegeln theme.json) ── */
:root {
  --emk-green-dark:   #2d4a2d;
  --emk-green-mid:    #4a7c4a;
  --emk-green-light:  #7dab5c;
  --emk-cream:        #f5f0e8;
  --emk-warm-white:   #fdfaf4;
  --emk-earth:        #8b6f47;
  --emk-earth-light:  #c4a77d;
  --emk-rust:         #b5451b;
  --emk-text:         #2a2218;
  --emk-text-soft:    #5a4f3f;
  --emk-shadow:       0 4px 24px rgba(45,74,45,0.13);
  --emk-radius:       10px;
  --emk-transition:   0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  background: var(--emk-warm-white);
  color: var(--emk-text);
  overflow-x: hidden;
  margin: 0;
}

/* ── Typografie ── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--emk-green-dark);
  line-height: 1.2;
}

a { color: var(--emk-green-mid); transition: color var(--emk-transition); text-decoration: none; }
a:hover { color: var(--emk-green-dark); text-decoration: underline; }

.wp-block-post-content p { text-decoration: none !important; }
.wp-block-post-content p a { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* ── Navigation ── */
.wp-block-navigation a {
  color: var(--emk-green-dark) !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  transition: color var(--emk-transition) !important;
}
.wp-block-navigation a:hover { color: var(--emk-green-mid) !important; }

/* ── Buttons ── */
.wp-block-button__link,
.emk-btn-primary {
  background: var(--emk-green-mid) !important;
  color: #fff !important;
  border-radius: 3px !important;
  font-weight: 700 !important;
  font-family: 'Lato', sans-serif !important;
  letter-spacing: 0.05em !important;
  transition: background var(--emk-transition), transform 0.15s !important;
  border: none !important;
  text-decoration: none !important;
}
.wp-block-button__link:hover,
.emk-btn-primary:hover {
  background: var(--emk-green-dark) !important;
  transform: translateY(-2px) !important;
  color: #fff !important;
}

.emk-btn-outline {
  background: transparent !important;
  border: 2px solid rgba(255,255,255,0.6) !important;
  color: #fff !important;
  padding: 0.85rem 2.2rem;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all var(--emk-transition);
  text-decoration: none;
  display: inline-block;
}
.emk-btn-outline:hover {
  border-color: #fff !important;
  background: rgba(255,255,255,0.1) !important;
}

/* ── Hilfklassen ── */
.emk-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--emk-green-mid);
  margin-bottom: 0.8rem;
  display: block;
  font-family: 'Lato', sans-serif;
}

.emk-divider {
  width: 56px;
  height: 3px;
  background: var(--emk-green-light);
  margin: 1.2rem 0 2.2rem;
  border-radius: 2px;
  border: none;
}

/* ============================================================
   KARUSSELL
   ============================================================ */
.emk-karussell-wrap { width: 100%; margin-bottom: 3.5rem; }

.emk-karussell {
  position: relative;
  width: 100%;
  height: 480px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 48px rgba(45,74,45,0.22);
}

.emk-track {
  display: flex;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.77,0,0.18,1);
}

.emk-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  flex-shrink: 0;
  text-decoration: none;
  display: block;
  overflow: hidden;
}

.emk-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
  z-index: 0;
}
.emk-slide:hover img { transform: scale(1.03); }

.emk-slide-overlay { z-index: 1; }

.emk-slide-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
}

.emk-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,40,15,0.82) 0%, rgba(20,40,15,0.15) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.2rem 2.8rem;
  pointer-events: none;
}

.emk-slide-kat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--emk-earth-light);
  margin: 0 0 0.5rem;
  font-family: 'Lato', sans-serif;
}

.emk-slide-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  color: #fff;
  line-height: 1.15;
  margin: 0 0 0.6rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.emk-slide-kurz {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  line-height: 1.55;
  margin: 0 0 1.1rem;
  font-family: 'Lato', sans-serif;
}

.emk-slide-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--emk-green-mid);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.6rem 1.4rem;
  border-radius: 4px;
  pointer-events: all;
  transition: background var(--emk-transition);
  width: fit-content;
  font-family: 'Lato', sans-serif;
}
.emk-slide:hover .emk-slide-btn { background: var(--emk-green-dark); }

/* Pfeile */
.emk-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background var(--emk-transition), transform 0.15s;
}
.emk-arrow:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-50%) scale(1.08);
}
.emk-prev { left: 1.2rem; }
.emk-next { right: 1.2rem; }

/* Dots */
.emk-dots {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.emk-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: background var(--emk-transition), transform var(--emk-transition);
  padding: 0;
}
.emk-dot.active {
  background: #fff;
  transform: scale(1.3);
}

/* Counter */
.emk-counter {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(4px);
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  z-index: 10;
  font-family: 'Lato', sans-serif;
}

/* ============================================================
   AUSSTELLER GRID
   ============================================================ */
.emk-aussteller-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.6rem;
}

.emk-aussteller-card {
  background: #fff;
  border-radius: var(--emk-radius);
  overflow: hidden;
  box-shadow: var(--emk-shadow);
  transition: transform var(--emk-transition), box-shadow var(--emk-transition);
}
.emk-aussteller-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(45,74,45,0.18);
}

.emk-card-link { text-decoration: none; color: inherit; display: block; }

.emk-card-bild {
  width: 100%;
  height: 180px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.emk-card-emoji {
  font-size: 3rem;
  position: absolute;
  z-index: 1;
  opacity: 0.35;
}

.emk-card-bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  z-index: 2;
  transition: transform 0.4s ease;
}
.emk-aussteller-card:hover .emk-card-bild img { transform: scale(1.06); }

.emk-card-body { padding: 1.2rem 1.4rem 1.5rem; }

.emk-card-kat {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--emk-green-mid);
  margin: 0 0 0.4rem;
  font-family: 'Lato', sans-serif;
}

.emk-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--emk-green-dark);
  margin: 0 0 0.4rem;
}

.emk-card-kurz {
  font-size: 0.88rem;
  color: var(--emk-text-soft);
  line-height: 1.55;
  margin: 0;
  font-family: 'Lato', sans-serif;
}

.emk-card-mehr {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--emk-green-mid);
  letter-spacing: 0.04em;
  font-family: 'Lato', sans-serif;
}

/* ============================================================
   ÖFFNUNGSZEITEN
   ============================================================ */
.emk-oz-tabelle {
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
}

.emk-oz-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background 0.15s;
}
.emk-oz-row:last-of-type { border-bottom: none; }
.emk-oz-row:hover { background: rgba(255,255,255,0.06); }

.emk-oz-tag {
  font-weight: 700;
  color: var(--emk-earth-light);
  font-size: 0.95rem;
  font-family: 'Lato', sans-serif;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.emk-oz-badge {
  display: inline-block;
  background: var(--emk-rust);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
}

.emk-oz-zeit {
  color: rgba(245,240,232,0.9);
  font-size: 0.95rem;
  font-family: 'Lato', sans-serif;
}

.emk-oz-closed {
  color: rgba(245,240,232,0.35) !important;
  font-style: italic;
}

.emk-oz-hinweis {
  margin: 1rem 1.4rem 1.2rem;
  font-size: 0.85rem;
  color: rgba(245,240,232,0.55);
  line-height: 1.6;
  font-family: 'Lato', sans-serif;
}

/* Helle Variante (auf weißem Hintergrund) */
.emk-oz-tabelle.emk-oz-light {
  background: var(--emk-cream);
  border-color: rgba(45,74,45,0.1);
}
.emk-oz-light .emk-oz-row { border-color: rgba(45,74,45,0.08); }
.emk-oz-light .emk-oz-row:hover { background: rgba(45,74,45,0.03); }
.emk-oz-light .emk-oz-tag  { color: var(--emk-green-dark); }
.emk-oz-light .emk-oz-zeit { color: var(--emk-text-soft); }
.emk-oz-light .emk-oz-closed { color: rgba(90,79,63,0.4) !important; }
.emk-oz-light .emk-oz-hinweis { color: var(--emk-text-soft); }

/* ============================================================
   AUSSTELLER DETAIL-SEITE
   ============================================================ */
.emk-aussteller-hero {
  min-height: 380px;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.emk-aussteller-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.emk-aussteller-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,40,15,0.75) 0%, transparent 65%);
  z-index: 1;
}

.emk-aussteller-hero-content {
  position: relative;
  z-index: 2;
  padding: 2.5rem;
  color: #fff;
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
}

.emk-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.emk-meta-item {
  background: var(--emk-cream);
  border-radius: 6px;
  padding: 0.9rem 1.1rem;
}

.emk-meta-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--emk-earth);
  margin-bottom: 0.3rem;
  font-family: 'Lato', sans-serif;
}

.emk-meta-value {
  font-size: 0.93rem;
  color: var(--emk-text);
  font-family: 'Lato', sans-serif;
}

.emk-tag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.emk-tag-pill {
  background: var(--emk-green-dark);
  color: var(--emk-cream);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  letter-spacing: 0.04em;
  font-family: 'Lato', sans-serif;
}

/* ============================================================
   INFO-KACHELN
   ============================================================ */
.emk-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.8rem;
}

.emk-info-card {
  background: var(--emk-cream);
  border-radius: var(--emk-radius);
  padding: 2rem 1.8rem;
  border-left: 4px solid var(--emk-green-light);
  transition: transform var(--emk-transition);
}
.emk-info-card:hover { transform: translateY(-3px); }

.emk-info-icon {
  font-size: 2.2rem;
  margin-bottom: 0.9rem;
}

.emk-info-card h3 {
  font-size: 1.1rem;
  margin: 0 0 0.6rem;
}

.emk-info-card p {
  font-size: 0.9rem;
  color: var(--emk-text-soft);
  line-height: 1.65;
  margin: 0;
  font-family: 'Lato', sans-serif;
}

/* ============================================================
   ADMIN STYLES (nur im Backend)
   ============================================================ */
.emk-no-aussteller {
  padding: 2rem;
  text-align: center;
  color: var(--emk-text-soft);
  font-style: italic;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .emk-karussell { height: 320px; }
  .emk-slide-overlay { padding: 1.4rem 1.6rem; }
  .emk-slide-name { font-size: 1.4rem; }
  .emk-slide-kurz { display: none; }
  .emk-aussteller-grid { grid-template-columns: 1fr 1fr; }
  .emk-meta-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .emk-karussell { height: 260px; border-radius: 8px; }
  .emk-aussteller-grid { grid-template-columns: 1fr; }
  .emk-meta-grid { grid-template-columns: 1fr; }
  .emk-arrow { width: 38px; height: 38px; font-size: 1rem; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .emk-karussell-wrap,
  .emk-arrow,
  .emk-dots,
  .emk-counter { display: none !important; }
}
