/* ==========================================================================
   mecklar.de — Neugestaltung 2026
   ========================================================================== */

:root{
  --color-forest: #2f4a3c;
  --color-forest-dark: #203327;
  --color-forest-light: #4f7160;
  --color-terracotta: #b1552f;
  --color-terracotta-dark: #8f4324;
  --color-cream: #faf6ee;
  --color-cream-deep: #f2ead9;
  --color-ink: #262620;
  --color-ink-soft: #55534a;
  --color-line: #e2d9c6;
  --color-card: #ffffff;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 14px;
  --shadow-soft: 0 8px 24px rgba(38, 38, 32, 0.08);
  --shadow-lift: 0 16px 40px rgba(38, 38, 32, 0.14);
  --max-width: 1180px;
}

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

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a{ color: var(--color-terracotta-dark); text-decoration-thickness: 1.5px; }
a:hover{ color: var(--color-terracotta); }

h1, h2, h3, h4{
  font-family: var(--font-display);
  color: var(--color-forest-dark);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1{ font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2{ font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3{ font-size: 1.25rem; }

p{ margin: 0 0 1em; }

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

.eyebrow{
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-terracotta-dark);
  margin-bottom: 0.6em;
}

.lede{
  font-size: 1.15rem;
  color: var(--color-ink-soft);
  max-width: 62ch;
}

/* ---------------- Skip link ---------------- */
.skip-link{
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-forest-dark);
  color: #fff;
  padding: 10px 16px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus{ left: 0; }

/* ---------------- Header / Nav ---------------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--color-line);
}

.nav-bar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-forest-dark);
}
.brand:hover{ color: var(--color-forest-dark); }

.brand-mark{
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-forest);
  color: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.brand-text{ line-height: 1.1; }
.brand-text strong{
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
}
.brand-text span{
  display: block;
  font-size: 0.72rem;
  color: var(--color-ink-soft);
  letter-spacing: 0.04em;
}

.nav-toggle{
  display: none;
  background: none;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span{
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-forest-dark);
  margin: 4px 0;
}

.main-nav ul{
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.main-nav a{
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--color-ink);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
}
.main-nav a:hover,
.main-nav a[aria-current="page"]{
  background: var(--color-forest);
  color: var(--color-cream);
}

@media (max-width: 900px){
  .nav-toggle{ display: block; }
  .main-nav{
    display: none;
    width: 100%;
  }
  .main-nav.open{
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    background: var(--color-cream);
    border-bottom: 1px solid var(--color-line);
    box-shadow: var(--shadow-lift);
  }
  .main-nav ul{ flex-direction: column; padding: 8px 16px 16px; }
  .main-nav a{ display: block; }
  .nav-bar{ flex-wrap: wrap; position: relative; }
}

/* ---------------- Hero ---------------- */
.hero{
  position: relative;
  color: #fff;
  display: flex;
  align-items: flex-end;
  min-height: 56vh;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.hero::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(32,51,39,0.15) 0%, rgba(24,34,26,0.82) 100%);
  z-index: -1;
}
.hero-inner{ padding: 60px 24px 44px; max-width: var(--max-width); margin: 0 auto; width: 100%; }
.hero h1{ color: #fff; margin-bottom: 0.3em; }
.hero .lede{ color: rgba(255,255,255,0.92); }
.hero-small{ min-height: 32vh; }

.hero-facts{
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.25);
}
.hero-facts div strong{
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
}
.hero-facts div span{
  font-size: 0.82rem;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------------- Sections ---------------- */
section{ padding: 64px 0; }
section.tight{ padding: 40px 0; }
.section-alt{ background: var(--color-cream-deep); }
.section-forest{ background: var(--color-forest-dark); color: var(--color-cream); }
.section-forest h2, .section-forest h3{ color: var(--color-cream); }
.section-forest a{ color: #f4c9a8; }

.section-head{ max-width: 68ch; margin-bottom: 36px; }

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

.card{
  background: var(--color-card);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-line);
}
.card h3{ margin-bottom: 0.4em; }
.card p:last-child{ margin-bottom: 0; }
.card .tag{
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-forest);
  background: rgba(47,74,60,0.09);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.card-link{
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card-link:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  color: inherit;
}

.img-card{ overflow: hidden; padding: 0; }
.img-card img{ width: 100%; height: 190px; object-fit: cover; }
.img-card .card-body{ padding: 20px; }

/* ---------------- Buttons ---------------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--color-terracotta);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}
.btn:hover{ background: var(--color-terracotta-dark); color: #fff; }
.btn-outline{
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.7);
  color: #fff;
}
.btn-outline:hover{ background: rgba(255,255,255,0.15); color: #fff; }
.btn-forest{ background: var(--color-forest); }
.btn-forest:hover{ background: var(--color-forest-dark); }

/* ---------------- Timeline (Chronik) ---------------- */
.timeline{
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 3px solid var(--color-forest-light);
}
.timeline li{
  position: relative;
  padding: 2px 0 34px 30px;
}
.timeline li::before{
  content: "";
  position: absolute;
  left: -9px;
  top: 6px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--color-terracotta);
  border: 3px solid var(--color-cream);
}
.timeline .year{
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-terracotta-dark);
  font-size: 1.1rem;
}

/* ---------------- Quote / source block ---------------- */
blockquote.source{
  margin: 1.4em 0;
  padding: 18px 22px;
  background: var(--color-cream-deep);
  border-left: 4px solid var(--color-forest);
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: var(--color-ink-soft);
}
blockquote.source cite{
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-forest-dark);
}

.prose{ max-width: 74ch; }
.prose h3{ margin-top: 1.6em; }
.prose figure{ margin: 1.6em 0; }
.prose figcaption{ font-size: 0.85rem; color: var(--color-ink-soft); margin-top: 8px; }

/* ---------------- Tables ---------------- */
.table-wrap{ overflow-x: auto; margin: 1.4em 0; }
table.data{
  border-collapse: collapse;
  width: 100%;
  min-width: 480px;
  background: var(--color-card);
  font-size: 0.92rem;
}
table.data caption{ text-align: left; font-weight: 700; margin-bottom: 8px; }
table.data th, table.data td{
  border: 1px solid var(--color-line);
  padding: 9px 12px;
  text-align: left;
}
table.data th{ background: var(--color-cream-deep); }
table.data tr:nth-child(even) td{ background: rgba(47,74,60,0.03); }

/* ---------------- Gallery ---------------- */
.gallery{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}
.gallery figure{
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-card);
  box-shadow: var(--shadow-soft);
}
.gallery img{
  width: 100%;
  height: 210px;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}
.gallery img:hover{ transform: scale(1.04); }
.gallery figcaption{ padding: 12px 14px; font-size: 0.88rem; color: var(--color-ink-soft); }

.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(20, 24, 20, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 40px 20px;
}
.lightbox.open{ display: flex; }
.lightbox img{ max-width: 100%; max-height: 82vh; border-radius: 8px; margin: 0 auto; }
.lightbox figcaption{ color: #f2ead9; text-align: center; margin-top: 14px; }
.lightbox-close{
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* ---------------- Person / contact list ---------------- */
.people-list{ list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.people-list li{
  background: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: 10px;
  padding: 14px 18px;
}
.people-list .role{ color: var(--color-ink-soft); font-size: 0.9rem; }

/* ---------------- Callout / notice ---------------- */
.callout{
  border-radius: var(--radius);
  padding: 22px 24px;
  background: #fff7ea;
  border: 1px solid #ecd9ab;
  margin: 1.6em 0;
}
.callout.forest{ background: rgba(47,74,60,0.08); border-color: rgba(47,74,60,0.25); }
.callout h3{ margin-top: 0; }

/* ---------------- Footer ---------------- */
.site-footer{
  background: var(--color-forest-dark);
  color: rgba(250,246,238,0.85);
  padding: 52px 0 24px;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
@media (max-width: 780px){
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px){
  .footer-grid{ grid-template-columns: 1fr; }
}
.site-footer h4{
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.site-footer ul{ list-style: none; margin: 0; padding: 0; }
.site-footer li{ margin-bottom: 8px; }
.site-footer a{ color: rgba(250,246,238,0.85); text-decoration: none; }
.site-footer a:hover{ color: #fff; text-decoration: underline; }
.footer-bottom{
  border-top: 1px solid rgba(250,246,238,0.15);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(250,246,238,0.6);
}

/* ---------------- Utilities ---------------- */
.mt-0{ margin-top: 0; }
.text-center{ text-align: center; }
.badge-row{ display: flex; flex-wrap: wrap; gap: 10px; margin: 1em 0; }
.badge{
  background: rgba(47,74,60,0.09);
  color: var(--color-forest-dark);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
}
.map-embed{ border-radius: var(--radius); overflow: hidden; border: 1px solid var(--color-line); }
.map-embed iframe{ width: 100%; height: 380px; border: 0; display: block; }

.breadcrumb{ font-size: 0.85rem; color: var(--color-ink-soft); margin-bottom: 10px; }
.breadcrumb a{ color: var(--color-ink-soft); }
