/* ==========================================================================
   Maßstab Diamant — Kampagnen-Landingpage „Zollstöcke mit Botschaft"
   Design-Tokens aus massstab-diamant.de (Elementor-Kit) extrahiert
   ========================================================================== */

:root {
  /* Farben */
  --primary:        #D50057;
  --primary-hover:  #B00048;
  --primary-light:  #D50057;
  --secondary:      #5D7261;
  --secondary-deep: #4A5C4E;
  --bg:             #F5F6F5;
  --surface:        #FFFFFF;
  --border:         #DDE3E0;
  --text:           #2F3634;
  --text-light:     #6B7672;
  --on-dark:        #F3F5F4;
  --on-dark-muted:  #B9C4BE;

  /* Typografie */
  --font-head: 'museo-slab', 'Bitter', Georgia, serif;
  --font-body: 'museo-sans', 'Mulish', -apple-system, 'Segoe UI', sans-serif;

  /* Spacing-Skala */
  --s-1: 0.25rem;  --s-2: 0.5rem;  --s-3: 0.75rem; --s-4: 1rem;
  --s-6: 1.5rem;   --s-8: 2rem;    --s-12: 3rem;   --s-16: 4rem;
  --s-24: 6rem;

  --radius: 4px;
  --maxw: 68rem;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--secondary);
  line-height: 1.15;
  margin: 0 0 var(--s-4);
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 6.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }

p { margin: 0 0 var(--s-4); }

a { color: var(--primary); }

.accent { color: var(--primary); }

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

section { padding-block: clamp(3.5rem, 9vw, 6.5rem); }
section[id] { scroll-margin-top: 96px; }

.eyebrow {
  display: inline-block;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--s-3);
}

.lead { font-size: clamp(1.1rem, 2.5vw, 1.25rem); color: var(--text-light); max-width: 44rem; }

/* --------------------------------------------------------------------------
   Buttons — Signatur: versetzter Farbblock-Schatten wie auf der Hauptseite
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  padding: 0.9rem 1.8rem;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 7px 7px 0 var(--secondary-deep);
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translate(2px, 2px);
  box-shadow: 5px 5px 0 var(--secondary-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--secondary);
  box-shadow: inset 0 0 0 2px var(--secondary);
}
.btn-ghost:hover { background: var(--secondary); color: #fff; }

.btn-on-dark {
  background: #fff;
  color: var(--primary);
  box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.35);
}
.btn-on-dark:hover { transform: translate(2px, 2px); box-shadow: 5px 5px 0 rgba(0,0,0,0.35); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding-block: 0.7rem;
}

.logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.logo img { height: 44px; width: auto; flex: none; }
@media (max-width: 480px) { .logo img { height: 36px; } }
.logo-text { font-family: var(--font-head); font-weight: 800; line-height: 1.05; font-size: 1.05rem; }
.logo-text .l1 { color: var(--primary); display: block; }
.logo-text sup { font-size: 0.5em; font-weight: 400; margin-left: 1px; }
.logo-text .l2 { color: var(--secondary); display: block; }

.header-phone {
  font-weight: 800;
  color: var(--secondary);
  text-decoration: none;
  font-size: 0.95rem;
  white-space: nowrap;
}
.header-phone:hover { color: var(--primary); }

/* Made by Deltatec */
.header-right { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.made-by { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.made-by .mb-label {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
  transition: color 0.15s;
  white-space: nowrap;
}
.made-by img { height: 36px; width: auto; display: block; }
.made-by:hover .mb-label { color: var(--primary); }
.made-by-footer img { height: 40px; }
.made-by-footer .mb-label { color: var(--on-dark-muted); }
.made-by-footer:hover .mb-label { color: #fff; }
@media (max-width: 480px) { .made-by img { height: 30px; } }

/* Zollstock-Skala als Trennelement (Signatur der Hauptseite) */
.ruler-divider { display: block; width: 100%; height: 26px; color: var(--secondary); opacity: 0.55; }
.ruler-divider.on-dark { color: var(--on-dark-muted); opacity: 0.5; }

/* Skala an der Oberkante jeder Sektion */
main section { position: relative; }
.ruler-divider.sec { position: absolute; top: 0; left: 0; width: 100%; opacity: 0.4; }
.ruler-divider.sec.on-dark { opacity: 0.35; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { padding-block: clamp(3rem, 8vw, 5.5rem) clamp(3.5rem, 9vw, 6rem); }

.hero .wrap { display: grid; gap: var(--s-8); }

.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-6); }

.hero-zollstock { width: 100%; overflow: visible; }

/* Aufklapp-Animation: jedes Glied klappt gestaffelt auf */
.zs-seg {
  transform-box: fill-box;
  transform-origin: 8px center;
  opacity: 0;
  transform: rotate(-70deg);
}
.js-ready .zs-seg {
  animation: unfold 0.7s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
  animation-delay: calc(var(--i) * 0.16s + 0.2s);
}
@keyframes unfold {
  to { opacity: 1; transform: rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
  .zs-seg { opacity: 1; transform: none; }
  .js-ready .zs-seg { animation: none; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   Scroll-Reveals
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (prefers-reduced-motion: no-preference) {
  html.smooth-ok { scroll-behavior: smooth; }
}

/* --------------------------------------------------------------------------
   Fakten-Karten
   -------------------------------------------------------------------------- */
.section-white { background: var(--surface); }

.facts-grid {
  display: grid;
  gap: var(--s-6);
  grid-template-columns: 1fr;
  margin-top: var(--s-8);
}

.fact-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-6);
}

.fact-card .big {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--secondary);
  display: block;
  margin-bottom: var(--s-2);
}

.fact-card.highlight { background: var(--primary); border-color: var(--primary); }
.fact-card.highlight .big, .fact-card.highlight h3, .fact-card.highlight p { color: #fff; }
.fact-card.highlight p { opacity: 0.92; }

@media (min-width: 640px) {
  .facts-grid { grid-template-columns: 1fr 1fr; }
  /* leichte Asymmetrie statt starrem Raster */
  .fact-card:nth-child(2) { transform: translateY(14px); }
  .fact-card:nth-child(4) { transform: translateY(14px); }
  .fact-card:nth-child(2).reveal.in,
  .fact-card:nth-child(4).reveal.in { transform: translateY(14px); }
}

/* --------------------------------------------------------------------------
   Botschaften-Showcase (dunkle Sektion)
   -------------------------------------------------------------------------- */
.section-dark { background: var(--secondary); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: var(--on-dark-muted); }
.section-dark .eyebrow { color: #FFFFFF; }

.msg-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: var(--s-6) 0; }

.chip {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1.5px solid var(--on-dark-muted);
  background: transparent;
  color: var(--on-dark);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.chip:hover { border-color: #fff; }
.chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }

.msg-stage { margin-block: var(--s-6); }

.msg-rule {
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.25));
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.msg-rule.swap { opacity: 0; transform: translateY(10px); }

.msg-caption {
  min-height: 3.2em;
  font-size: 1rem;
  color: var(--on-dark-muted);
  max-width: 40rem;
}
.msg-caption strong { color: #fff; }

/* --------------------------------------------------------------------------
   Referenzen / Kundenprojekte
   -------------------------------------------------------------------------- */
.ref-grid {
  display: grid;
  gap: var(--s-6);
  margin-top: var(--s-8);
}

.ref-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-6);
}

.ref-card img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: var(--s-4);
  filter: drop-shadow(0 12px 20px rgba(47, 54, 52, 0.16));
}

.ref-card h3 { margin-bottom: var(--s-1); }
.ref-card p { font-size: 0.95rem; color: var(--text-light); margin: 0 0 var(--s-3); }

/* Karten sind klickbar → Story-Dialog */
.ref-card[data-story] {
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.ref-card[data-story]:hover,
.ref-card[data-story]:focus-visible {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 10px 24px rgba(47, 54, 52, 0.14);
  outline: none;
}
.story-cue {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--primary);
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s;
}
.ref-card[data-story]:hover .story-cue,
.ref-card[data-story]:focus-visible .story-cue { border-color: var(--primary); }

@media (min-width: 820px) {
  .ref-grid { grid-template-columns: 1fr 1fr; }
}

/* Story-Dialog */
.story-dialog {
  border: 0;
  border-radius: var(--radius);
  border-top: 4px solid var(--primary);
  padding: clamp(1.25rem, 4vw, 2.25rem);
  max-width: min(38rem, 92vw);
  width: 100%;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.story-dialog::backdrop { background: rgba(28, 36, 34, 0.62); }
.story-dialog img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: var(--s-4);
  filter: drop-shadow(0 10px 16px rgba(47, 54, 52, 0.16));
}
.story-side {
  display: block;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: var(--s-2);
}
#storyImgB { margin-top: var(--s-2); }
.story-dialog h3 { font-size: 1.5rem; margin-bottom: var(--s-3); }
.story-dialog p { margin: 0; color: var(--text); line-height: 1.7; }
.story-link {
  display: inline-block;
  margin-top: var(--s-4);
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 1px;
}
.story-link[hidden] { display: none; }
.story-link:hover { color: var(--primary-hover); border-color: var(--primary-hover); }

.story-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--text-light);
  cursor: pointer;
  padding: 4px 8px;
}
.story-close:hover { color: var(--primary); }

/* --------------------------------------------------------------------------
   Anlass / Küchenmeile
   -------------------------------------------------------------------------- */
.event-flex { display: grid; gap: var(--s-8); margin-top: var(--s-8); }

.event-date-badge {
  display: inline-grid;
  place-items: center;
  text-align: center;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  padding: var(--s-6) var(--s-8);
  box-shadow: 9px 9px 0 var(--secondary);
  font-family: var(--font-head);
}
.event-date-badge .d { font-size: 2.6rem; font-weight: 800; line-height: 1; }
.event-date-badge .m { font-size: 1.05rem; font-weight: 700; letter-spacing: 0.06em; }

.countdown { display: flex; gap: var(--s-4); margin-top: var(--s-6); flex-wrap: wrap; }
.cd-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-3) var(--s-4);
  min-width: 4.6rem;
  text-align: center;
}
.cd-box .n { font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; color: var(--primary); display: block; line-height: 1.1; }
.cd-box .l { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-light); }

@media (min-width: 760px) {
  .event-flex { grid-template-columns: auto 1fr; align-items: start; }
}

/* --------------------------------------------------------------------------
   Über uns / Services / FAQ
   -------------------------------------------------------------------------- */
.services { display: grid; gap: var(--s-3); margin: var(--s-6) 0; padding: 0; list-style: none; }
.services li { display: flex; gap: var(--s-3); align-items: baseline; }
.services li::before {
  content: "";
  flex: none;
  width: 0.65em; height: 0.65em;
  background: var(--primary);
  transform: rotate(45deg) translateY(-1px);
}
@media (min-width: 640px) { .services { grid-template-columns: 1fr 1fr; } }

.trust-note { font-size: 0.92rem; color: var(--text-light); }

.about-grid { display: grid; gap: var(--s-8); }
@media (min-width: 820px) { .about-grid { grid-template-columns: 1.2fr 1fr; align-items: start; } }

.faq { border-top: 1px solid var(--border); margin-top: var(--s-4); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--secondary);
  padding: var(--s-4) 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 1.3em; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: var(--s-4); margin: 0; }

/* --------------------------------------------------------------------------
   Termin / Kontakt (dunkle CTA-Sektion)
   -------------------------------------------------------------------------- */
.section-deep { background: var(--secondary-deep); }
.section-deep h2 { color: #fff; }
.section-deep p { color: var(--on-dark-muted); }
.section-deep .eyebrow { color: #FFFFFF; }

.contact-grid { display: grid; gap: var(--s-8); margin-top: var(--s-8); }
@media (min-width: 820px) { .contact-grid { grid-template-columns: 1fr 1.15fr; } }

.contact-ways { display: grid; gap: var(--s-4); align-content: start; }
.way {
  display: block;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: var(--s-4) var(--s-6);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.way:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255,255,255,0.35); }
.way .k { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--on-dark-muted); display: block; }
.way .v { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: #fff; }

.contact-form { display: grid; gap: var(--s-4); }
.contact-form label { display: grid; gap: var(--s-1); font-size: 0.88rem; font-weight: 700; color: var(--on-dark); }
.contact-form input, .contact-form textarea {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: 3px solid var(--primary-light);
  outline-offset: 1px;
}
.contact-form input.error { border-color: var(--primary-light); outline: 2px solid var(--primary-light); }
.field-hint { color: #FFFFFF; font-size: 0.82rem; font-weight: 700; display: none; }
.field-hint.show { display: block; }

.form-banner {
  display: none;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  padding: var(--s-3) var(--s-4);
  font-weight: 700;
}
.form-banner.show { display: block; }
.form-banner.ok { background: #2E7D4F; }

.form-note { font-size: 0.82rem; color: var(--on-dark-muted); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--secondary-deep); border-top: 1px solid rgba(255,255,255,0.14); padding-block: 0 var(--s-8); }
.site-footer > .ruler-divider { margin-bottom: var(--s-8); }
.site-footer, .site-footer a { color: var(--on-dark-muted); }
.site-footer a:hover { color: #fff; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-8); justify-content: space-between; font-size: 0.9rem; }
.site-footer nav { display: flex; gap: var(--s-6); flex-wrap: wrap; }
