/* =========================================================
   HOF Electronic Service GmbH – Stylesheet (Neuaufbau)
   Schrift lokal eingebunden (keine Verbindung zu Google)
   ========================================================= */

@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); }

:root {
  --blue: #00428d;
  --blue-dark: #00336d;
  --yellow: #ffc801;
  --grey: #6b6b6b;
  --grey-light: #f2f4f7;
  --line: #e3e7ec;
  --text: #2b2b2b;
  --max: 1200px;
  --pad: clamp(16px, 4vw, 40px);
  --radius: 6px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Source Sans 3", "Source Sans Pro", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

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

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--blue); color: #fff; padding: 10px 14px; text-decoration: none;
  border-radius: var(--radius); transition: top .2s;
}
.skip-link:focus { top: 8px; color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px !important; height: 1px !important;
  margin: -1px !important; padding: 0 !important; overflow: hidden !important;
  clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important;
}

/* ---------- Topbar ---------- */
.topbar { background: var(--blue); color: #fff; font-size: 14px; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar span + span { margin-left: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 96px; }
.brand img { height: 78px; width: auto; }

.main-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 10px 16px; text-decoration: none;
  color: var(--grey); font-weight: 600; font-size: 15px;
  letter-spacing: .06em; text-transform: uppercase; position: relative;
}
.main-nav a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px;
  background: var(--yellow); transform: scaleX(0); transition: transform .25s;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--blue); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 12px; font: inherit; font-weight: 600; color: var(--blue); cursor: pointer;
}
.nav-toggle-bars { display: inline-block; width: 18px; height: 2px; background: currentColor; position: relative; vertical-align: middle; margin-right: 8px; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; }
.nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }

@media (max-width: 820px) {
  .site-header .wrap { min-height: 72px; }
  .brand img { height: 56px; }
  .nav-toggle { display: inline-block; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 8px var(--pad) 16px; }
  .main-nav a::after { left: 16px; right: auto; width: 40px; }
  .topbar .hide-sm { display: none; }
}

/* ---------- Hero / Slider ---------- */
.hero { background: linear-gradient(180deg, #fff 0%, var(--grey-light) 100%); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 24px; padding-top: 32px; padding-bottom: 32px; }

.hero-text .eyebrow { color: var(--blue); font-weight: 700; font-size: 1.2em; margin: 0 0 6px; }
.slides { position: relative; min-height: 2.6em; font-size: clamp(28px, 3.6vw, 42px); }
.slide-title {
  margin: 0; line-height: 1.1; font-weight: 700; color: var(--grey);
  position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(10px);
  transition: opacity .6s, transform .6s;
}
.slide-title.active { opacity: 1; transform: none; position: relative; }
.hero-text .lead { margin: 16px 0 24px; font-size: 1.15em; color: var(--grey); }

.hero-visual { position: relative; aspect-ratio: 961 / 399; }
.hero-visual img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  opacity: 0; transition: opacity .8s;
  mix-blend-mode: multiply; /* weißer Bildhintergrund verschmilzt mit dem Verlauf */
}
.hero-visual img.active { opacity: 1; }

.slider-controls { display: flex; align-items: center; gap: 10px; margin-top: 22px; }
.slider-controls button {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  color: var(--blue); cursor: pointer; font-size: 15px; line-height: 1; display: grid; place-items: center;
}
.slider-controls button:hover { border-color: var(--blue); }
.dots { display: flex; gap: 8px; margin: 0 6px; }
.dots button { width: 12px; height: 12px; padding: 0; border-radius: 50%; background: #c9d1db; border: 0; }
.dots button[aria-current="true"] { background: var(--blue); }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
}

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 22px; border-radius: var(--radius);
  font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; transition: background-color .2s, color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); color: #fff; }
.btn-yellow { background: var(--yellow); color: #1d1d1d; }
.btn-yellow:hover { background: #e6b400; color: #1d1d1d; }
.btn-ghost { background: #fff; color: var(--blue); border: 2px solid var(--blue); }
.btn-ghost:hover { background: var(--blue); color: #fff; }

/* ---------- Service-Kacheln ---------- */
.services { padding: 56px 0 8px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  display: block; padding: 24px 22px; border: 1px solid var(--line); border-radius: var(--radius);
  border-top: 4px solid var(--blue); text-decoration: none; color: var(--text); background: #fff;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.card:hover { box-shadow: 0 10px 24px rgba(0,66,141,.10); transform: translateY(-2px); border-top-color: var(--yellow); color: var(--text); }
.card h3 { margin: 0 0 6px; color: var(--blue); font-size: 1.15em; }
.card p { margin: 0; color: var(--grey); font-size: .95em; line-height: 1.5; }
.card .more { display: inline-block; margin-top: 12px; font-weight: 700; color: var(--blue); font-size: .9em; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Inhalt ---------- */
main article { max-width: var(--max); margin: 0 auto; padding: 56px var(--pad); }
main article h1 {
  font-size: clamp(28px, 3.4vw, 40px); line-height: 1.2; color: var(--blue);
  text-align: center; margin: 0 0 12px; overflow-wrap: anywhere; hyphens: auto;
}
main article .subtitle-main { text-align: center; color: var(--grey); font-size: 1.3em; margin: 0 0 44px; }
main article .subtitle-main::after { content: ""; display: block; width: 60px; height: 3px; background: var(--yellow); margin: 14px auto 0; }
main article.legal h1 { margin-bottom: 36px; }
main article.legal h1::after { content: ""; display: block; width: 60px; height: 3px; background: var(--yellow); margin: 14px auto 0; }

.content-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
@media (max-width: 820px) { .content-columns { grid-template-columns: 1fr; gap: 24px; } }

main article h2 { font-size: 1.35em; line-height: 1.3; color: #4a4a4a; margin: 32px 0 6px; }
main article .content-columns > div > h2:first-child,
main article .content-columns > div > .contact-info:first-child h2 { margin-top: 0; }
main article h3 { font-size: 1.12em; color: var(--blue); margin: 24px 0 6px; }
main article h4 { font-size: 1em; margin: 18px 0 4px; }
main article .subtitle { color: var(--grey); font-size: 1.08em; margin: 0 0 16px; font-style: italic; }
main article p { margin: 0 0 16px; }
main article ul { margin: 12px 0 20px; padding-left: 0; list-style: none; }
main article ul li { position: relative; padding-left: 26px; margin: 8px 0; }
main article ul li::before {
  content: ""; position: absolute; left: 4px; top: .6em; width: 9px; height: 9px;
  background: var(--yellow); border-radius: 2px;
}
main article img { border-radius: var(--radius); margin: 8px 0 20px; }
main article.legal { max-width: 900px; }
main article.legal p, main article.legal li { overflow-wrap: anywhere; }

/* Kontaktbox */
.contact-info {
  background: var(--grey-light); border-left: 4px solid var(--blue);
  padding: 22px 24px; border-radius: var(--radius); margin-bottom: 24px;
}
.contact-info h2, .contact-info h3 { margin-top: 0 !important; }
.contact-info a { text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

.info-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 24px; }
.info-box h2 { margin-top: 0 !important; }
.info-box .btn-row { margin-top: 12px; }

/* ---------- Shops-Band ---------- */
.shops { background: var(--grey-light); padding: 44px 0; }
.shops .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.shops h2 { margin: 0 0 4px; color: var(--blue); font-size: 1.5em; }
.shops p { margin: 0; color: var(--grey); }

/* ---------- Partner ---------- */
.partner { padding: 40px 0; border-top: 1px solid var(--line); }
.partner img { margin: 0 auto; max-height: 80px; width: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue); color: #fff; font-size: 15px; }
.site-footer .wrap { display: grid; grid-template-columns: auto 1fr 1fr 1fr; gap: 40px; padding-top: 40px; padding-bottom: 40px; }
.site-footer img { height: 54px; width: auto; filter: brightness(0) invert(1); }
.site-footer h2 { font-size: 1em; margin: 0 0 8px; color: var(--yellow); letter-spacing: .04em; text-transform: uppercase; }
.site-footer p { margin: 0; line-height: 1.7; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
@media (max-width: 1000px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer .wrap { grid-template-columns: 1fr; gap: 28px; } }

.legal-nav { background: var(--blue-dark); font-size: 14px; }
.legal-nav .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.legal-nav ul { display: flex; flex-wrap: wrap; gap: 6px 24px; list-style: none; margin: 0; padding: 0; }
.legal-nav a { color: rgba(255,255,255,.85); text-decoration: none; }
.legal-nav a:hover, .legal-nav a[aria-current="page"] { color: #fff; text-decoration: underline; }
.legal-nav small { color: rgba(255,255,255,.6); }

@media print {
  .topbar, .site-header nav, .nav-toggle, .hero, .shops, .partner, .legal-nav { display: none !important; }
  .site-header { position: static; box-shadow: none; }
}

/* Startseite: Slider und Kacheln unterhalb der Shops */
.shops + .hero { border-top: 1px solid var(--line); }
.hero + .services { padding: 48px 0 48px; }

/* ---------- PPWR-Warnhinweis (Startseite) ---------- */
.ppwr-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(200, 0, 0, .28);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
}
.ppwr-overlay[hidden] { display: none; }
.ppwr-box {
  max-width: 760px; width: 100%; text-align: center; color: #fff;
  background: rgba(204, 0, 0, .82);
  border: 3px solid rgba(255,255,255,.85); border-radius: 10px;
  padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 20px 60px rgba(120,0,0,.45);
}
.ppwr-icon { font-size: clamp(44px, 6vw, 64px); line-height: 1; margin-bottom: 8px; }
.ppwr-title { margin: 0 0 6px; font-size: clamp(26px, 4vw, 40px); font-weight: 700; letter-spacing: .04em; }
.ppwr-text { margin: 0 0 18px; font-size: clamp(18px, 2.4vw, 24px); font-weight: 600; line-height: 1.35; }
.ppwr-claim {
  display: inline-block; margin: 0 0 26px; padding: 8px 16px;
  font-size: clamp(18px, 2.6vw, 26px); font-weight: 700; letter-spacing: .05em;
  border-top: 2px solid #fff; border-bottom: 2px solid #fff;
}
.ppwr-close {
  display: block; margin: 0 auto; padding: 12px 24px; border: 0; border-radius: 6px;
  background: #fff; color: #b00000; font: inherit; font-weight: 700; cursor: pointer;
}
.ppwr-close:hover { background: #ffe5e5; }
