@import url('https://fonts.cdnfonts.com/css/anton');
@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@400;600;700;800&display=swap');

:root{
  --bg: #05080c;
  --bg-soft: #0b111a;
  --panel: #ffffff;
  --panel-soft: #f6f8fb;
  --text: #111111;
  --muted: #5c6672;
  --blue: #004bcf;
  --lime: #d7e80a;
  --yellow: #f1de27;
  --line: rgba(11, 17, 26, .12);
  --shadow: 0 24px 60px rgba(0, 0, 0, .32);
  --radius-xl: 16px;
  --radius-lg: 12px;
  --radius-md: 8px;
  --max: 1180px;
  --font-display: 'anton', 'Arial Narrow', 'Impact', sans-serif;
  --font-body: 'Lexend', "Segoe UI", Verdana, Tahoma, sans-serif;
  --plus-offset-top: -3px;
  --plus-offset-right: -3px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: #fff;
  background: #070b10;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px;
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: var(--shadow);
  min-height: 560px;
  display: grid;
  grid-template-columns: 1.0fr 1fr;
  gap: 24px;
  padding-bottom: 48px;
  background: #0a1018;
}

.hero-left {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 8px 10px 6px;
}

.eyebrow {
  display: inline-block;
  color: var(--lime);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .88rem;
  margin-bottom: 18px;
  padding: 6px 12px;
  border: 1px solid rgba(215,232,10,.35);
  border-radius: 999px;
  background: rgba(215,232,10,.08);
}

h1 {
  margin: 0;
  line-height: .88;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(4.2rem, 13vw, 8.0rem);
  text-transform: uppercase;
  letter-spacing: -.03em;
  color: #fff;
}

.hero-accent {
  position: relative;
  z-index: 3;
  display: inline-block;
  background: var(--lime);
  color: #000;
  padding: .04em .14em;
  transform: rotate(-2deg);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.q37-badge {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #fff;
  padding: .05em .18em;
  transform: rotate(-1deg);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.date-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #000;
  padding: .05em .18em;
  transform: rotate(-0.5deg);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.pill {
  border-left: 3px solid var(--lime);
  padding: 4px 0 4px 12px;
  font-weight: 700;
  color: rgba(255,255,255,.94);
}

.hero-copy {
  max-width: 780px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255,255,255,.86);
  margin-top: 22px;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--lime);
  color: #000;
  font-weight: 900;
  text-decoration: none;
  border-radius: 4px;
  padding: 14px 18px;
  min-width: 180px;
}

.cta:hover {
  background: #c3d300;
}

.cta.secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.35);
}

.cta.secondary:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.cta.cta-firmen-mobil {
  display: none;
}

.panel {
  position: relative;
  z-index: 1;
  background: var(--panel);
  color: var(--text);
  border-radius: 6px;
  padding: 24px;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}

.side h2, .section h2 {
  margin: 0 0 14px;
  font-family: var(--font-body);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 1.35rem;
  line-height: 1.2;
  color: #10151c;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--lime);
}

.side p, .section p {
  color: var(--muted);
  line-height: 1.6;
}

.logos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 12px;
  margin-top: 24px;
  align-items: stretch;
}

.logo-card {
  position: relative;
  border: none;
  border-radius: 4px;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  color: #2c3440;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: .88rem;
  width: 100%;
}

.logo-card:hover {
  border-color: var(--blue);
}

/* Firmen ohne Logo (z.B. Karate & Kobudo): Name als Text, ohne grauen
   Kasten. Das Padding pro Firma wird direkt per Inline-Style aus
   firmen.json (logoPadding) gesetzt, siehe Handlebars-Template. */
.logo-card img,
.logo-card svg {
  max-width: 100%;
  max-height: 76px;
  object-fit: contain;
}

/* Move in Arts: transparentes PNG bekommt einen schwarzen Hintergrund,
   der an jeder Seite 10px grösser ist als das Logo selbst. */
.logo-card[data-firma="move-in-arts"] img {
  background: #000;
  padding: 10px;
  max-height: calc(100% - 20px);
}

.logo-card[data-firma="move-in-arts"] {
  grid-row: span 2;
}

/* ===================================================== */
/*  "Klick mich!"-Hinweise auf den Logos                         */
/*  Alle Logos "wackeln" periodisch (dezenter Scale-Pulse),      */
/*  zeitlich versetzt in alphabetischer Reihenfolge der Firmen,  */
/*  damit nicht alle gleichzeitig aufblitzen.                    */
/* ===================================================== */
.logo-card[data-firma] {
  border-radius: 8px;
  animation: idee-attention 6.5s ease-in-out infinite;
}
@keyframes idee-attention {
  0%            { transform: scale(100%); }
  6%            { transform: scale(109%); }
  12%, 100%     { transform: scale(100%); }
}

/* Zeitversatz in alphabetischer Reihenfolge der Firmennamen,
   damit das Pulsieren wie eine Welle über die Kacheln läuft.
   Start nach 1 Sekunde für das erste Logo, dann jeweils 1s Versatz. */
.logo-card[data-firma="art-hermes"]          { animation-delay: 1s; }
.logo-card[data-firma="ho-schreinerei"]      { animation-delay: 2s; }
.logo-card[data-firma="fablab-makerspace"]   { animation-delay: 3s; }
.logo-card[data-firma="karate-kobudo"]       { animation-delay: 4s; }
.logo-card[data-firma="mc-ladygym"]          { animation-delay: 5s; }
.logo-card[data-firma="moon-takeaway"]       { animation-delay: 6s; }
.logo-card[data-firma="move-in-arts"]        { animation-delay: 7s; }
.logo-card[data-firma="oncologic"]           { animation-delay: 8s; }
.logo-card[data-firma="praevena"]            { animation-delay: 9s; }
.logo-card[data-firma="putzi-laserdesign"]   { animation-delay: 10s; }
.logo-card[data-firma="safety-pro"]          { animation-delay: 11s; }

/* Info-Badge: Plus-Icon im Kreis oben rechts (Idee "Hofstetter"),
   für alle Firmen einheitlich verwendet. Position um 5px nach unten
   und 5px nach links verschoben (top/right von -8px auf -3px).
   Der Hintergrund ist nun ein animierter Farbverlauf (Gradient),
   der laufend seine Farben wechselt, während das Logo pulsiert. */
.logo-card[data-firma]::after {
  content: "+";
  position: absolute;
  top: var(--plus-offset-top);
  right: var(--plus-offset-right);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #1a63e0, var(--lime), var(--blue));
  background-size: 400% 400%;
  animation: idee-gradient-shift 8.5s ease-in-out infinite;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
}
@keyframes idee-gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===================================================== */
/*  MODAL (Firmen-Details)                               */
/* ===================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 12, .7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}

.modal-overlay[hidden] { display: none; }

.modal-box {
  background: var(--panel);
  color: var(--text);
  border-radius: 6px;
  max-width: 480px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 28px;
  position: relative;
  border-top: 4px solid var(--blue);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: #5c6672;
  padding: 4px 8px;
}

.modal-close:hover { color: #111; }

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(255,255,255,.9);
  color: #5c6672;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
  z-index: 51;
}

.modal-nav:hover { color: #111; background: #fff; }

.modal-nav-prev { left: -12px; }
.modal-nav-next { right: -12px; }

@media (max-width: 560px) {
  .modal-nav-prev { left: 4px; }
  .modal-nav-next { right: 4px; }
  .modal-nav {
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,.85);
  }
}

.modal-logo,
svg.modal-logo {
  max-width: 100%;
  max-height: 90px;
  object-fit: contain;
  display: block;
  margin-bottom: 16px;
}

.modal-logo[data-firma="move-in-arts"] {
  background: #000;
  padding: 10px;
  box-sizing: content-box;
}

.modal-box h3 {
  margin: 0 0 6px;
  font-size: 1.3rem;
  color: #10151c;
}

.modal-website {
  margin: 0 0 4px;
}

.modal-website a {
  color: var(--muted);
  font-weight: 400;
  text-decoration: none;
}

.modal-website a:hover {
  text-decoration: underline;
}

.modal-telefon {
  margin: 0 0 10px;
  color: var(--muted);
  font-weight: 400;
}

.modal-stock {
  display: inline-block;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 10px;
}

.modal-box p.modal-desc {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 18px;
}

.modal-box h4 {
  margin: 18px 0 8px;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .95rem;
  color: #10151c;
  border-bottom: 2px solid var(--lime);
  padding-bottom: 6px;
}

.modal-angebote {
  display: grid;
  gap: 8px;
}

.modal-angebote .item {
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.modal-angebote .item:first-child { border-top: none; }

.section {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
}

.timeline {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.time {
  width: 96px;
  flex: 0 0 96px;
  font-weight: 700;
  color: var(--blue);
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.card {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 16px;
  background: #f6f8fb;
  min-height: 118px;
}

.card strong {
  display: block;
  margin-bottom: 8px;
  color: #111;
}

.full { grid-column: 1 / -1; }

.foodlist {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0 28px;
}

.fooditem {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
}

.fooditem:not(:first-child) {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}

.fooditem strong {
  color: #111;
  flex: 0 0 auto;
}

.fooditem span {
  color: var(--muted);
}

.fooditem-time {
  font-weight: 700;
  color: var(--blue);
}

.note {
  font-size: .95rem;
  color: #66717d;
  margin-top: 12px;
}

.footerbar {
  margin-top: 24px;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  padding: 18px 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between
}

.footerbar strong {
  font-size: 1.02rem;
}

.footerbar span {
  color: rgba(255,255,255,.88);
}

.footerbar-link {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footerbar-link:hover {
  color: var(--lime);
}

/* ===================================================== */
/*  IMPRESSUM-SEITE                                      */
/* ===================================================== */
.legal-block {
  margin-top: 20px;
}

.legal-block:first-of-type {
  margin-top: 24px;
}

.legal-block h3 {
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: .95rem;
  color: #10151c;
}

.legal-block p {
  margin: 0 0 6px;
  line-height: 1.6;
}

.legal-block a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.legal-block a:hover {
  text-decoration: underline;
}

.legal-small {
  font-size: .88rem;
  color: var(--muted);
}

.legal-note {
  padding: 14px 16px;
  background: var(--panel-soft);
  border-left: 3px solid var(--blue);
  border-radius: 4px;
}

.nowrap {
  display: inline-block;
  white-space: nowrap;
}

.firma-link {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
  display: inline;
}

.firma-link:hover {
  text-decoration: underline;
  color: var(--blue);
}

@media (max-width: 960px) {
  .hero, .section {
    grid-template-columns: 1fr;
  }

  .cta.cta-firmen-mobil {
    display: inline-flex;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .foodlist {
    grid-template-columns: 1fr;
  }

  .fooditem:not(:first-child) {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--line);
  }

  h1 {
    font-size: clamp(3.8rem, 18vw, 6.8rem);
  }

  .wrap {
    padding: 14px;
  }

  .hero {
    padding: 20px;
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .meta {
    gap: 8px;
  }

  .pill {
    font-size: .95rem;
  }

  .time {
    width: 84px;
    flex-basis: 84px;
  }
}
