/* Haidinger – Elektro, Radio- und Videoelektronik
   Farben aus dem Logo: Blau der Ringe, Rot der Kugel. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-variable.woff2") format("woff2-variations"),
       url("../fonts/archivo-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #0C3D89;
  --blue-dark: #082B63;
  --blue-line: #3F68AC;
  --blue-soft: #E6ECF6;
  --blue-muted: #C7D3EA;
  --red: #C8201A;
  --ink: #14202B;
  --text: #3A4652;
  --muted: #4A5560;
  --line: #DADDD8;
  --line-2: #CDD2CB;
  --sand: #F3F4F1;
  --open: #1E7F45;
  --closed: #B4471F;
  --open-on-blue: #6FD39A;
  --closed-on-blue: #F08A6B;
  --wrap: 1200px;
  --pad: 24px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: #FFFFFF;
  color: var(--ink);
  font-family: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, figure { margin: 0; }
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: var(--blue-line); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--blue); color: #fff; padding: 12px 16px; font-weight: 700;
}
.skip:focus { top: 8px; color: #fff; }

/* ---------- Typografie ---------- */
.eyebrow {
  font-size: 14px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--red);
}
.h1 {
  font-size: clamp(38px, 4.4vw, 62px); line-height: 1; font-weight: 800;
  font-stretch: 78%; letter-spacing: -0.01em; text-wrap: balance;
}
.h2 {
  font-size: clamp(34px, 4.4vw, 56px); line-height: 1; font-weight: 800;
  font-stretch: 80%; text-wrap: balance;
}
.lead { font-size: 20px; line-height: 1.5; color: var(--text); max-width: 34em; text-wrap: pretty; }
.body-lg { font-size: 19px; line-height: 1.6; color: var(--text); max-width: 32em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 14px 22px;
  font: inherit; font-size: 17px; font-weight: 700; line-height: 1.2;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.btn svg { flex: none; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: #A8160F; color: #fff; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-dark); color: #fff; }
.btn--outline { border-color: var(--blue); color: var(--blue); background: transparent; font-weight: 600; }
.btn--outline:hover { background: var(--blue); color: #fff; }
.btn--lg { font-size: 18px; padding: 16px 24px; }

/* ---------- Kopfzeile ---------- */
.site-header { border-bottom: 1px solid #E2E4E0; background: #fff; }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px 32px; padding-top: 18px; padding-bottom: 18px;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 84px; width: auto; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 16px; font-weight: 500; }
.main-nav a.nav-link { padding: 12px 10px; text-decoration: none; }
.main-nav .btn { margin-left: 8px; font-size: 16px; font-weight: 600; padding: 12px 18px; }

@media (max-width: 760px) {
  .brand img { height: 64px; }
  .main-nav a.nav-link { display: none; }
  .main-nav .btn { margin-left: 0; }
}
@media (max-width: 420px) {
  .site-header .wrap { justify-content: center; }
}

/* ---------- Einstieg ---------- */
.hero {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr));
  gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 64px;
}
.hero__text { display: flex; flex-direction: column; gap: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__media { position: relative; min-height: 460px; background: #EEF0EC; overflow: hidden; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero__badge {
  position: absolute; left: 0; bottom: 0; background: var(--blue); color: #fff;
  padding: 20px 24px; display: flex; flex-direction: column; gap: 6px;
}
.hero__badge span:first-child {
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-muted);
}
.hero__badge span:last-child { font-size: 18px; font-weight: 600; }

@media (max-width: 760px) {
  .hero { padding-top: 40px; padding-bottom: 48px; gap: 32px; }
  .hero__media { min-height: 300px; }
  .lead { font-size: 18px; }
}

.status { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; min-height: 24px; }
.status[hidden] { display: none; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--closed); flex: none; }
.is-open .dot { background: var(--open); }

/* ---------- Leiste ---------- */
.facts { background: var(--blue); color: #fff; }
.facts .wrap {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 24px 48px; padding-top: 32px; padding-bottom: 32px;
}
.fact { display: flex; flex-direction: column; gap: 4px; }
.fact strong { font-size: 20px; font-weight: 700; }
.fact span { font-size: 16px; color: var(--blue-muted); }

/* ---------- Abschnitte ---------- */
.section { padding-top: 112px; padding-bottom: 112px; }
@media (max-width: 760px) { .section { padding-top: 72px; padding-bottom: 72px; } }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 720px; margin-bottom: 48px; }

/* Leistungen */
.services {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  border-top: 2px solid var(--blue); list-style: none; margin: 0; padding: 0;
}
.service {
  padding: 32px 32px 40px 0; border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px;
}
.service h3 { font-size: 24px; font-weight: 700; line-height: 1.2; }
.service p { font-size: 17px; line-height: 1.55; color: var(--text); }
.service--cta { justify-content: space-between; }
.service--cta .btn { align-self: flex-start; }

/* Sortiment */
.bg-sand { background: var(--sand); }
.two-col {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 56px 72px; align-items: start;
}
.stack { display: flex; flex-direction: column; gap: 24px; }
.showroom { position: relative; min-height: 380px; background: #E4E7E2; overflow: hidden; display: flex; align-items: flex-end; }
.showroom img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.showroom .btn { position: relative; margin: 20px; }
.range { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--blue); }
.range li {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 4px 24px; padding: 20px 0; border-bottom: 1px solid var(--line-2);
}
.range li strong { font-size: 19px; font-weight: 700; }
.range li span { font-size: 17px; line-height: 1.5; color: var(--text); }
.range li.range__note { display: block; border-bottom: 0; font-size: 17px; color: var(--text); }
.range li.range__note strong { font-size: 17px; color: var(--ink); }
.range__label { font-size: 15px; font-weight: 600; color: var(--muted); }

/* Über uns */
.portrait { max-width: 440px; display: flex; flex-direction: column; gap: 12px; }
.portrait__bg { background: var(--blue-soft); padding-top: 40px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.portrait__bg img { width: 100%; height: auto; }
.portrait figcaption { display: flex; flex-direction: column; gap: 2px; }
.portrait figcaption strong { font-size: 18px; }
.portrait figcaption span { font-size: 15px; color: var(--muted); }
.timeline { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--blue); }
.timeline li {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.timeline .year { font-size: 28px; font-weight: 800; font-stretch: 80%; line-height: 1.2; }
.timeline .what { font-size: 17px; line-height: 1.5; color: var(--text); padding-top: 4px; }

/* Kontakt */
.contact { background: var(--blue); color: #fff; }
.contact .eyebrow { color: var(--blue-muted); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 48px; }
.contact-list { display: flex; flex-direction: column; gap: 28px; font-style: normal; }
.contact-item { display: flex; flex-direction: column; gap: 4px; color: #fff; text-decoration: none; }
a.contact-item:hover { color: #fff; }
a.contact-item:hover .contact-value { text-decoration: underline; text-underline-offset: 4px; }
.label { font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue-muted); }
.contact-value { font-size: 22px; font-weight: 700; line-height: 1.35; }
.contact-value--xl { font-size: 32px; font-weight: 800; font-stretch: 85%; }
.contact-value--mail { text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }

.hours-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.hours-head .status { font-size: 15px; }
.contact .dot { background: var(--closed-on-blue); width: 9px; height: 9px; }
.contact .is-open .dot { background: var(--open-on-blue); }
.hours { margin: 0; border-top: 1px solid var(--blue-line); }
.hours div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px; border-bottom: 1px solid var(--blue-line); font-size: 18px;
}
.hours dt, .hours dd { margin: 0; }
.hours-note { margin-top: 14px; font-size: 15px; line-height: 1.5; color: var(--blue-muted); }
.hours div.is-today { background: var(--red); font-weight: 700; border-bottom-color: transparent; }

.place { display: flex; flex-direction: column; gap: 16px; }
.place img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.place .btn { align-self: flex-start; }

/* Fußzeile */
.site-footer { background: var(--blue-dark); color: var(--blue-muted); font-size: 15px; }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px;
  padding-top: 32px; padding-bottom: 32px;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--blue-muted); }

/* ---------- 360°-Rundgang ---------- */
.tour {
  width: min(1200px, 100vw - 32px); height: min(760px, 100vh - 32px);
  padding: 0; border: 0; background: #000; color: #fff; overflow: hidden;
}
.tour::backdrop { background: rgba(8, 43, 99, 0.85); }
.tour__bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 18px; background: rgba(8, 43, 99, 0.9);
}
.tour__title { font-weight: 700; font-size: 17px; }
.tour__close {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.5); cursor: pointer;
}
.tour__close:hover { background: rgba(255,255,255,0.15); }
#panorama { position: absolute; inset: 0; }
.tour .pnlm-controls-container { top: 76px; }
.tour__hint { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 5;
  background: rgba(8,43,99,.85); padding: 8px 14px; font-size: 15px; pointer-events: none; }
@media (max-width: 760px) {
  .tour { width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; }
}

/* ---------- Unterseiten (Impressum, Datenschutz) ---------- */
.legal { padding-top: 72px; padding-bottom: 112px; }
.legal .h1 { margin-bottom: 40px; }
.legal-body { max-width: 760px; }
.legal-body h2 { font-size: 24px; font-weight: 700; margin: 40px 0 12px; line-height: 1.25; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--text); font-size: 17px; line-height: 1.6; }
.legal-body p + p { margin-top: 12px; }
.legal-body ul { padding-left: 20px; margin: 12px 0 0; }
.legal-body dl { display: grid; grid-template-columns: minmax(140px, max-content) 1fr; gap: 8px 24px; margin: 0; }
.legal-body dt { font-weight: 700; color: var(--ink); }
.legal-body dd { margin: 0; color: var(--text); }
@media (max-width: 560px) { .legal-body dl { grid-template-columns: 1fr; gap: 2px; } .legal-body dd { margin-bottom: 10px; } }
.todo { background: #FFF3C4; color: #5A4500; padding: 0 4px; }
.back { display: inline-flex; margin-bottom: 24px; font-weight: 600; }

/* ---------- Hinweisbalken (Betriebsurlaub, geänderte Zeiten) ---------- */
.notice { background: var(--red); color: #fff; }
.notice .wrap { padding-top: 12px; padding-bottom: 12px; display: flex; flex-direction: column; gap: 6px; }
.notice__item { display: flex; align-items: flex-start; gap: 10px; font-size: 16px; line-height: 1.45; }
.notice__item svg { flex: none; margin-top: 3px; }

.main-nav a.nav-link--hot { color: var(--red); font-weight: 700; }

/* ---------- Aktuelle Angebote ---------- */
.offers { background: var(--sand); }
.offers__wrap { padding-top: 80px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 40px; }
@media (max-width: 760px) { .offers__wrap { padding-top: 56px; padding-bottom: 56px; gap: 28px; } }
.offers__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.offers__legal { font-size: 15px; color: var(--muted); }
.offers__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.offer { background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; }
.offer img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.offer__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.offer__until { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--red); }
.offer h3 { font-size: 24px; font-weight: 800; font-stretch: 85%; line-height: 1.15; margin: 0; }
.offer p { font-size: 16px; line-height: 1.5; color: var(--text); flex-grow: 1; }
.offer__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: auto; }
.offer__now { font-size: 26px; font-weight: 800; color: var(--red); }
.offer__was { font-size: 16px; color: var(--muted); }
