/*
Theme Name: Marktplatz
Theme URI: https://www.marktplatz.mom
Author: Marktplatz
Description: Eigenes, korporatives Theme fuer die Marktplatz-Plattform (Wochenendmaerkte in Deutschland).
Version: 0.1.0
Requires PHP: 7.4
Text Domain: marktplatz-theme
*/

:root {
  --mp-navy: #0f2b46;
  --mp-navy-2: #163a5c;
  --mp-navy-3: #1f4a72;
  --mp-teal: #0d9488;
  --mp-teal-dark: #0b7d73;
  --mp-ink: #1f2937;
  --mp-gray: #52606d;
  --mp-gray-light: #64748b;
  --mp-bg: #f7f9fb;
  --mp-bg-alt: #eef2f5;
  --mp-border: #e2e8f0;
  --mp-white: #ffffff;
  --mp-radius: 10px;
  --mp-shadow: 0 1px 2px rgba(15, 43, 70, 0.06), 0 2px 8px rgba(15, 43, 70, 0.06);
  --mp-max-width: 1180px;
  --mp-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--mp-font);
  color: var(--mp-ink);
  background: var(--mp-bg);
  line-height: 1.6;
  font-size: 16px;
}

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

a {
  color: var(--mp-teal-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  color: var(--mp-navy);
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 700;
}

h1 { font-size: 2.1rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

.mp-container {
  max-width: var(--mp-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.mp-header {
  background: var(--mp-navy);
  color: var(--mp-white);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.mp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  max-width: var(--mp-max-width);
  margin: 0 auto;
}

.mp-logo {
  color: var(--mp-white);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.mp-logo:hover {
  text-decoration: none;
  opacity: 0.9;
}

.mp-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.mp-nav a {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  font-size: 0.94rem;
}

.mp-nav a:hover {
  color: var(--mp-white);
  text-decoration: none;
}

.mp-nav-cta {
  background: var(--mp-teal);
  color: var(--mp-white) !important;
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

.mp-nav-cta:hover {
  background: var(--mp-teal-dark);
}

.mp-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--mp-white);
  font-size: 1.6rem;
  cursor: pointer;
}

/* Hero */
.mp-hero {
  background: linear-gradient(rgba(15, 43, 70, 0.82), rgba(15, 43, 70, 0.82));
  background-size: cover;
  background-position: center;
  color: var(--mp-white);
  padding: 4rem 1.5rem;
  text-align: center;
}

.mp-hero h1 {
  color: var(--mp-white);
  max-width: 780px;
  margin: 0 auto 1rem;
}

.mp-hero p {
  max-width: 620px;
  margin: 0 auto 1.75rem;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.92);
}

.mp-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
}

.mp-btn:hover {
  text-decoration: none;
}

.mp-btn-primary {
  background: var(--mp-teal);
  color: var(--mp-white);
}

.mp-btn-primary:hover {
  background: var(--mp-teal-dark);
}

.mp-btn-outline {
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  color: var(--mp-white);
  margin-left: 0.75rem;
}

.mp-btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Sections / cards */
.mp-section {
  padding: 3rem 1.5rem;
}

.mp-section-alt {
  background: var(--mp-bg-alt);
}

.mp-card {
  background: var(--mp-white);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
  box-shadow: var(--mp-shadow);
}

.mp-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.mp-teaser {
  padding: 1.5rem;
}

.mp-teaser h3 {
  margin-top: 0;
}

.mp-photo-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.mp-photo-card .mp-teaser {
  padding: 1.25rem 1.5rem;
}

/* Market calendar cards (overrides plugin defaults) */
.mp-kalender {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.mp-markt-karte {
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
  padding: 1.25rem;
  background: var(--mp-white);
  box-shadow: var(--mp-shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mp-markt-karte:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 43, 70, 0.12);
}

.mp-markt-titel {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--mp-navy);
}

.mp-markt-datum strong {
  color: var(--mp-teal-dark);
}

.mp-markt-datum,
.mp-markt-ort,
.mp-markt-parkplaetze,
.mp-markt-entfernung {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  color: var(--mp-gray);
}

.mp-markt-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 700;
  color: var(--mp-teal-dark);
}

.mp-kalender-leer {
  padding: 1.5rem;
  text-align: center;
  color: var(--mp-gray-light);
}

/* Footer */
.mp-footer {
  background: var(--mp-navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 1.5rem 2rem;
  margin-top: 3rem;
}

.mp-footer-inner {
  max-width: var(--mp-max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.mp-footer-brand {
  max-width: 320px;
}

.mp-footer-brand h3 {
  color: var(--mp-white);
}

.mp-footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}

.mp-footer-col h4 {
  color: var(--mp-white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.mp-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mp-footer-col li {
  margin-bottom: 0.55rem;
}

.mp-footer-col a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.mp-footer-col a:hover {
  color: var(--mp-white);
}

.mp-footer-bottom {
  max-width: var(--mp-max-width);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Generic content wrapper */
.mp-content {
  max-width: var(--mp-max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.mp-content h1 {
  margin-bottom: 1rem;
}

/* Market single template */
.mp-markt-detail {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.mp-markt-detail-meta {
  background: var(--mp-white);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.mp-markt-detail-meta dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.5rem 1rem;
  margin: 0;
}

.mp-markt-detail-meta dt {
  color: var(--mp-gray-light);
  font-weight: 600;
}

.mp-markt-detail-meta dd {
  margin: 0;
}

/* WooCommerce basics */
.woocommerce {
  max-width: var(--mp-max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background: var(--mp-teal);
  color: #fff;
  border-radius: 6px;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background: var(--mp-teal-dark);
}

@media (max-width: 780px) {
  .mp-nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--mp-navy-2);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem 1.5rem;
    gap: 1rem;
    display: none;
  }

  .mp-nav.is-open {
    display: flex;
  }

  .mp-nav-toggle {
    display: block;
  }

  .mp-hero {
    padding: 2.75rem 1.25rem;
  }

  .mp-markt-detail-meta dl {
    grid-template-columns: 120px 1fr;
  }
}
