/* HPS Lerntreff – modernes, responsives Remake
   Marke: Grün + Sonnengelb + Dunkelblau, Glühbirne als Leitmotiv. */

:root {
  --navy: #16306b;
  --navy-deep: #0d1f47;
  --blue: #2f6fed;
  --sky: #45b3e8;
  --green: #43a317;
  --green-light: #74cf2e;
  --green-deep: #2c7a10;
  --yellow: #ffd21a;
  --yellow-soft: #ffe680;
  --ink: #1d2733;
  --muted: #5d6b78;
  --bg: #ffffff;
  --bg-soft: #f3faef;
  --card: #ffffff;
  --line: #e6efe1;
  --radius: 18px;
  --shadow-sm: 0 2px 10px rgba(22, 48, 107, .07);
  --shadow: 0 10px 30px rgba(22, 48, 107, .12);
  --shadow-lg: 0 22px 60px rgba(22, 48, 107, .18);
  --container: 1120px;
  --font: "Nunito", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --script: "Pacifico", "Segoe Script", "Brush Script MT", cursive;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--green-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { color: var(--navy); line-height: 1.2; font-weight: 800; }
h1 { font-size: clamp(2rem, 6vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 70px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 4px; }
.logo:hover { text-decoration: none; }
.logo-hps {
  font-family: "Archivo Black", system-ui, sans-serif;
  color: #2a74c2;
  font-size: 2.7rem; line-height: 1; letter-spacing: 0;
  -webkit-text-stroke: 4px #15306b; paint-order: stroke fill;
  transform: translateY(0.12em); /* Unterkante auf Hoehe der L-Unterkante */
}
.logo-hps .l2 { margin-left: 0.06em; }
.logo-hps .l3 { margin-left: 0.03em; }
.logo-lt { height: 66px; width: auto; display: block; }
@media (max-width: 400px) { .logo-hps { font-size: 2.1rem; -webkit-text-stroke-width: 3px; } .logo-lt { height: 56px; } }

/* Nav links */
.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px; justify-content: center;
  width: 46px; height: 42px; border: 0; background: transparent; cursor: pointer; padding: 8px;
}
.nav-toggle span { height: 3px; border-radius: 3px; background: var(--navy); transition: .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-menu { list-style: none; margin: 0; padding: 0; }
.nav-menu a { color: var(--navy); font-weight: 700; }
.nav-menu > li > a { display: block; }
.nav-menu a.active { color: var(--green-deep); }

/* Dropdown */
.sub-toggle { display: inline-flex; align-items: center; justify-content: center; }
.caret { width: 9px; height: 9px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg); transition: transform .2s; margin-top: -3px; }
.submenu { list-style: none; margin: 0; padding: 0; }

/* Mobile-first nav */
.nav-menu {
  position: fixed; inset: 70px 0 auto 0;
  background: #fff; border-bottom: 1px solid var(--line);
  display: grid; gap: 2px; padding: 10px 16px 22px;
  transform: translateY(-130%); transition: transform .32s ease; box-shadow: var(--shadow);
  max-height: calc(100vh - 70px); overflow-y: auto;
}
.nav-menu.open { transform: translateY(0); }
.nav-menu > li > a, .nav-menu .sub-link {
  display: block; padding: 12px 8px; border-radius: 10px; font-size: 1.05rem; color: var(--navy); font-weight: 700;
}
.nav-menu > li > a:hover, .nav-menu .sub-link:hover { background: var(--bg-soft); text-decoration: none; }
.nav-menu a.active, .nav-menu .sub-link.active { color: var(--green-deep); }
.has-sub { display: flex; flex-wrap: wrap; align-items: center; }
.has-sub > .sub-link { flex: 1; }
.has-sub > .sub-toggle {
  background: none; border: 0; cursor: pointer; color: var(--navy);
  width: 46px; height: 46px; border-radius: 10px;
}
.has-sub > .sub-toggle:hover { background: var(--bg-soft); }
.submenu { display: none; flex-basis: 100%; padding-left: 14px; }
.has-sub.open .submenu { display: grid; gap: 2px; }
.has-sub.open .caret { transform: rotate(-135deg); margin-top: 2px; }
.submenu a { display: block; padding: 9px 10px; border-radius: 8px; font-weight: 600; color: var(--ink); }
.submenu a:hover { background: var(--bg-soft); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px; font-weight: 800; cursor: pointer;
  border: 2px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s;
  font-size: 1rem;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--green-light), var(--green)); color: #fff; box-shadow: 0 8px 22px rgba(67, 163, 23, .35); }
.btn-primary:hover { box-shadow: 0 12px 28px rgba(67, 163, 23, .45); }
.btn-ghost { background: #fff; color: var(--navy); border-color: rgba(22,48,107,.18); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-sun { background: linear-gradient(135deg, var(--yellow-soft), var(--yellow)); color: var(--navy-deep); box-shadow: 0 8px 22px rgba(255, 210, 26, .4); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(255,210,26,.30), transparent 55%),
    linear-gradient(160deg, var(--green) 0%, var(--green-deep) 60%, #1f5e0c 100%);
  color: #fff;
}
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; gap: 28px; padding: clamp(48px, 9vw, 96px) 0; align-items: center; }
.hero h1 { color: #fff; text-shadow: 0 3px 18px rgba(0,0,0,.18); }
.hero .tagline {
  font-family: var(--script); color: var(--yellow); font-size: clamp(1.6rem, 5vw, 2.4rem);
  margin: 0 0 6px; text-shadow: 0 2px 14px rgba(0,0,0,.25);
}
.hero p.lead { font-size: 1.15rem; max-width: 52ch; color: rgba(255,255,255,.95); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-art { display: flex; justify-content: center; align-items: center; }
.hero-art .bulb-big { width: min(78vw, 340px); height: auto; filter: drop-shadow(0 18px 40px rgba(0,0,0,.25)); }

/* floating sparkles */
.sparkle { position: absolute; color: var(--yellow); opacity: .85; pointer-events: none; z-index: 1; animation: twinkle 3.2s ease-in-out infinite; }
@keyframes twinkle { 0%,100% { transform: scale(.6) rotate(0deg); opacity: .25; } 50% { transform: scale(1.15) rotate(20deg); opacity: .95; } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.bulb-float { animation: floaty 5s ease-in-out infinite; }

/* wave divider */
.wave { display: block; width: 100%; height: auto; margin-top: -1px; }

/* ---------- Page header (interior pages) ---------- */
.page-hero {
  background:
    radial-gradient(100% 120% at 90% 0%, rgba(255,210,26,.25), transparent 50%),
    linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%);
  color: #fff; position: relative; overflow: hidden;
}
.page-hero .container { position: relative; z-index: 2; padding: clamp(34px, 7vw, 64px) 20px; }
.page-hero h1 { color: #fff; margin: 0 0 6px; }
.breadcrumb { font-size: .95rem; color: rgba(255,255,255,.85); margin: 0; }
.breadcrumb a { color: #fff; font-weight: 700; }
.page-hero .bulb-deco { position: absolute; right: -20px; bottom: -30px; width: 180px; opacity: .9; z-index: 1; }

/* ---------- Sections ---------- */
section { padding: clamp(44px, 7vw, 80px) 0; }
.section-soft { background: var(--bg-soft); }
.section-title { text-align: center; max-width: 60ch; margin: 0 auto 8px; }
.section-sub { text-align: center; color: var(--muted); max-width: 56ch; margin: 0 auto 36px; }

.prose { max-width: 70ch; margin: 0 auto; }
.prose p { margin: 0 0 1.05em; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: .4em 0; }
.prose blockquote {
  margin: 1.4em 0; padding: 16px 22px; border-left: 5px solid var(--yellow);
  background: var(--bg-soft); border-radius: 0 12px 12px 0; font-style: italic; color: var(--navy);
}

/* lead intro under page hero */
.intro { font-size: 1.15rem; color: var(--muted); }

/* ---------- Cards / Grid ---------- */
.grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } .grid.cols-4 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
  display: flex; flex-direction: column; gap: 10px; height: 100%;
}
a.card { color: inherit; }
a.card:hover { text-decoration: none; transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--green-light); }
.card .icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--yellow-soft), var(--yellow)); margin-bottom: 4px;
}
.card .icon svg { width: 30px; height: 30px; }
.card h3 { margin: 0; font-size: 1.25rem; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }
.card .more { margin-top: auto; font-weight: 800; color: var(--green-deep); display: inline-flex; align-items: center; gap: 6px; }
a.card:hover .more { gap: 10px; }

/* feature row (home) */
.features { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { text-align: center; padding: 8px; }
.feature .icon { margin: 0 auto 14px; }

/* ---------- Info / contact boxes ---------- */
.info-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .info-grid { grid-template-columns: 1.1fr .9fr; } }
.info-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ci {
  width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: var(--bg-soft); color: var(--green-deep);
}
.contact-list .ci svg { width: 22px; height: 22px; }
.contact-list b { color: var(--navy); display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.hours { list-style: none; margin: 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.hours li:last-child { border-bottom: 0; }
.hours .day { font-weight: 700; color: var(--navy); }
.hours .time { color: var(--green-deep); font-weight: 800; }

.map-figure { margin: 0; }
.map-embed { display: block; border: 0; width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.map-credit { margin-top: 4px; font-size: .65rem; color: var(--muted, #667); text-align: right; }
.map-credit a { color: inherit; text-decoration: underline; }

.badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.18); color:#fff; padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: .9rem; }
.badge svg { width: 1.2em; height: 1.2em; flex: none; }

/* CTA band */
.cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff; text-align: center; border-radius: var(--radius); padding: clamp(34px, 6vw, 56px) 24px;
  position: relative; overflow: hidden;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.9); max-width: 50ch; margin: 0 auto 22px; }

/* ---------- Datenschutz / legal ---------- */
.legal { max-width: 80ch; margin: 0 auto; }
.legal .ds-h { font-size: 1.15rem; margin: 1.6em 0 .4em; color: var(--navy); scroll-margin-top: 90px; }
.legal p { margin: 0 0 1em; color: #34414f; }
.legal a { word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #cdd7e8; padding: 54px 0 26px; margin-top: 10px; }
.footer-grid { display: grid; gap: 30px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h4 { color: #fff; margin: 0 0 14px; font-size: 1.05rem; }
.site-footer a { color: #cdd7e8; }
.site-footer a:hover { color: var(--yellow); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-logo { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 14px; background: #fff; padding: 8px 14px; border-radius: 12px; }
.footer-logo .logo-lt { height: 58px; width: auto; display: block; }
.footer-logo .logo-hps { font-size: 2.4rem; -webkit-text-stroke-width: 3.5px; }
.footer-about { max-width: 38ch; color: #aab6cc; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 34px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: .9rem; color: #93a1bb; }
.footer-bottom a { color: #93a1bb; }

/* ---------- Desktop nav ---------- */
@media (min-width: 980px) {
  .nav-toggle { display: none; }
  .nav-menu {
    position: static; transform: none; display: flex; align-items: center; gap: 4px;
    background: none; border: 0; padding: 0; box-shadow: none; max-height: none; overflow: visible; inset: auto;
  }
  .nav-menu > li { position: relative; }
  .nav-menu > li > a, .nav-menu .sub-link { padding: 9px 14px; border-radius: 10px; font-size: 1rem; }
  .has-sub { flex-wrap: nowrap; gap: 0; }
  .has-sub > .sub-link { flex: none; padding-right: 6px; }
  .has-sub > .sub-toggle { width: 30px; height: 38px; }
  .submenu {
    position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px;
    background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
    padding: 8px; display: grid; gap: 2px; opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: .2s; padding-left: 8px;
  }
  .has-sub:hover .submenu, .has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
  .has-sub:hover .caret { transform: rotate(-135deg); margin-top: 2px; }
  .nav-cta { margin-left: 8px; }
}

@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; transition: none !important; }
}
