/* Glücksspiel-Sucht-Hilfe.de — Main Stylesheet
   Palette: teal-calm | Fonts: Nunito + Karla (self-hosted)
   Archetype: public-health-reference-portal
   Class prefix: glh- (footprint divergence)
*/

/* ─── Self-hosted fonts (latin subset) ───────────────────── */
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/nunito-400.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+FEFF,U+FFFD; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/nunito-600.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+FEFF,U+FFFD; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/nunito-700.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+FEFF,U+FFFD; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/nunito-800.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+FEFF,U+FFFD; }
@font-face { font-family: 'Karla';  font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/karla-400.woff2')  format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+FEFF,U+FFFD; }
@font-face { font-family: 'Karla';  font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/karla-500.woff2')  format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+FEFF,U+FFFD; }

/* ─── Tokens ──────────────────────────────────────────────── */
:root {
  --glh-primary:       #0c6b65;
  --glh-primary-dark:  #094f4a;
  --glh-primary-light: #1a8a83;
  --glh-accent:        #e05a3a;
  --glh-accent-hover:  #c44d2e;
  --glh-bg:            #f3faf9;
  --glh-bg-card:       #e4f3f1;
  --glh-bg-white:      #ffffff;
  --glh-text:          #1a2e2c;
  --glh-text-muted:    #4a6663;
  --glh-border:        #c5e0dd;
  --glh-radius:        8px;
  --glh-radius-lg:     14px;
  --glh-shadow:        0 2px 14px rgba(12,107,101,0.10);
  --glh-shadow-card:   0 1px 6px rgba(12,107,101,0.08);
  --glh-max:           1120px;
  --glh-reading:       760px;
  --glh-font-head:     'Nunito', system-ui, sans-serif;
  --glh-font-body:     'Karla', system-ui, sans-serif;
}

/* ─── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--glh-font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--glh-text);
  background: var(--glh-bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--glh-primary); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--glh-primary-dark); }
ul, ol { padding-left: 1.4rem; }

/* ─── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--glh-font-head); line-height: 1.25; color: var(--glh-text); }
h1 { font-size: clamp(1.75rem, 4vw, 2.6rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 3vw, 2rem);   font-weight: 700; margin-top: 2.5rem; margin-bottom: 0.9rem; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); font-weight: 700; margin-top: 2rem; margin-bottom: 0.6rem; }
h4 { font-size: 1rem; font-weight: 700; margin-top: 1.5rem; margin-bottom: 0.4rem; }
p  { margin-bottom: 1.1rem; }

/* ─── Layout helpers ──────────────────────────────────────── */
.glh-wrap  { max-width: var(--glh-max); margin: 0 auto; padding: 0 1.5rem; }
.glh-prose { max-width: var(--glh-reading); margin: 0 auto; }
.glh-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ─── Header / Nav ────────────────────────────────────────── */
.glh-header {
  background: var(--glh-primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.glh-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  max-width: var(--glh-max);
  margin: 0 auto;
}
.glh-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}
.glh-logo-text {
  font-family: var(--glh-font-head);
  font-weight: 800;
  font-size: 1.05rem;
  color: #ffffff;
  line-height: 1.2;
}
.glh-logo-text span { display: block; font-weight: 400; font-size: 0.7rem; opacity: 0.8; letter-spacing: 0.04em; }
.glh-nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  padding: 0;
  flex-wrap: wrap;
}
.glh-nav-links a {
  display: block;
  padding: 0.4rem 0.7rem;
  font-family: var(--glh-font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  border-radius: var(--glh-radius);
  transition: background 0.15s, color 0.15s;
}
.glh-nav-links a:hover,
.glh-nav-links a[aria-current="page"] {
  background: rgba(255,255,255,0.15);
  color: #ffffff;
}
.glh-nav-cta {
  background: var(--glh-accent);
  color: #ffffff !important;
  padding: 0.4rem 1rem !important;
  border-radius: 20px !important;
}
.glh-nav-cta:hover { background: var(--glh-accent-hover) !important; }

/* Mobile nav */
.glh-nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 6px;
  padding: 0.4rem 0.55rem;
  cursor: pointer;
  color: white;
  font-size: 1.1rem;
  line-height: 1;
}

/* ─── Hero Banner ─────────────────────────────────────────── */
.glh-hero {
  background: linear-gradient(135deg, var(--glh-primary-dark) 0%, var(--glh-primary) 60%, var(--glh-primary-light) 100%);
  padding: 4rem 1.5rem 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.glh-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.glh-hero-inner { position: relative; max-width: 740px; margin: 0 auto; }
.glh-hero h1 { color: #ffffff; font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1rem; }
.glh-hero p  { color: rgba(255,255,255,0.88); font-size: 1.15rem; margin-bottom: 2rem; }
.glh-hero-btns { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ─── Page banner (non-homepage) ──────────────────────────── */
.glh-page-banner {
  background: linear-gradient(135deg, var(--glh-primary-dark) 0%, var(--glh-primary) 100%);
  padding: 2.5rem 1.5rem 2rem;
}
.glh-page-banner h1 { color: #ffffff; max-width: var(--glh-max); margin: 0 auto; }
.glh-breadcrumb {
  max-width: var(--glh-max);
  margin: 0 auto 0.6rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
}
.glh-breadcrumb a { color: rgba(255,255,255,0.8); text-decoration: none; }
.glh-breadcrumb a:hover { color: #fff; }
.glh-breadcrumb span { margin: 0 0.35rem; }

/* ─── Buttons ─────────────────────────────────────────────── */
.glh-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: 24px;
  font-family: var(--glh-font-head);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all 0.15s;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.3;
}
.glh-btn-primary {
  background: var(--glh-accent);
  color: #ffffff;
  border-color: var(--glh-accent);
}
.glh-btn-primary:hover { background: var(--glh-accent-hover); border-color: var(--glh-accent-hover); color: #fff; }
.glh-btn-outline {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255,255,255,0.7);
}
.glh-btn-outline:hover { background: rgba(255,255,255,0.15); color: #fff; border-color: #fff; }
.glh-btn-teal {
  background: var(--glh-primary);
  color: #ffffff;
  border-color: var(--glh-primary);
}
.glh-btn-teal:hover { background: var(--glh-primary-dark); border-color: var(--glh-primary-dark); color: #fff; }

/* ─── Quicklinks / Feature cards ─────────────────────────── */
.glh-quicklinks {
  background: var(--glh-bg-white);
  padding: 3rem 1.5rem;
  border-bottom: 1px solid var(--glh-border);
}
.glh-quicklinks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  max-width: var(--glh-max);
  margin: 0 auto;
}
.glh-qcard {
  background: var(--glh-bg);
  border: 1.5px solid var(--glh-border);
  border-radius: var(--glh-radius-lg);
  padding: 1.5rem 1.25rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s;
}
.glh-qcard:hover {
  box-shadow: var(--glh-shadow);
  transform: translateY(-2px);
  border-color: var(--glh-primary-light);
  text-decoration: none;
}
.glh-qcard-icon {
  width: 44px;
  height: 44px;
  background: var(--glh-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}
.glh-qcard-icon svg { width: 24px; height: 24px; fill: none; stroke: white; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.glh-qcard h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--glh-text);
  margin: 0;
}
.glh-qcard p {
  font-size: 0.88rem;
  color: var(--glh-text-muted);
  margin: 0;
  line-height: 1.5;
}
.glh-qcard-arrow {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--glh-primary);
  margin-top: auto;
  padding-top: 0.5rem;
}

/* ─── Content sections ────────────────────────────────────── */
.glh-main { padding: 3rem 1.5rem 4rem; }
.glh-article { max-width: var(--glh-reading); margin: 0 auto; }
.glh-article h2 { color: var(--glh-primary-dark); border-bottom: 2px solid var(--glh-border); padding-bottom: 0.4rem; }
.glh-article li { margin-bottom: 0.4rem; }
.glh-article table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.92rem; }
.glh-article th { background: var(--glh-primary); color: white; padding: 0.7rem 1rem; text-align: left; font-family: var(--glh-font-head); font-weight: 700; }
.glh-article td { padding: 0.65rem 1rem; border-bottom: 1px solid var(--glh-border); }
.glh-article tr:nth-child(even) td { background: var(--glh-bg-card); }
.glh-meta { display: flex; gap: 1rem; font-size: 0.82rem; color: var(--glh-text-muted); margin-bottom: 1.5rem; flex-wrap: wrap; }

/* ─── Info box ────────────────────────────────────────────── */
.glh-infobox {
  background: var(--glh-bg-card);
  border-left: 4px solid var(--glh-primary);
  border-radius: 0 var(--glh-radius) var(--glh-radius) 0;
  padding: 1.1rem 1.25rem;
  margin: 1.75rem 0;
}
.glh-infobox strong { font-family: var(--glh-font-head); color: var(--glh-primary-dark); display: block; margin-bottom: 0.3rem; }

/* Hotline box */
.glh-hotline {
  background: var(--glh-primary);
  color: white;
  border-radius: var(--glh-radius-lg);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.glh-hotline-icon { font-size: 2rem; flex-shrink: 0; }
.glh-hotline strong { font-family: var(--glh-font-head); font-size: 1.25rem; display: block; color: #fff; }
.glh-hotline a { color: rgba(255,255,255,0.9); }
.glh-hotline p { margin: 0.3rem 0 0; font-size: 0.88rem; color: rgba(255,255,255,0.85); }

/* ─── Clinic cards ────────────────────────────────────────── */
.glh-clinic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.1rem;
  margin: 1.5rem 0;
}
.glh-clinic-card {
  background: var(--glh-bg-white);
  border: 1.5px solid var(--glh-border);
  border-radius: var(--glh-radius-lg);
  padding: 1.25rem;
  box-shadow: var(--glh-shadow-card);
}
.glh-clinic-card h3, .glh-clinic-card h4 { margin-top: 0; color: var(--glh-primary-dark); font-size: 0.98rem; }
.glh-clinic-card p  { font-size: 0.86rem; color: var(--glh-text-muted); margin: 0.25rem 0; }
.glh-clinic-tag {
  display: inline-block;
  background: var(--glh-bg-card);
  color: var(--glh-primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: 10px;
  margin-right: 0.3rem;
  margin-bottom: 0.3rem;
}

/* ─── FAQ ─────────────────────────────────────────────────── */
.glh-faq { margin: 2.5rem 0; }
.glh-faq h2 { margin-bottom: 1rem; }
.glh-faq-item {
  border: 1.5px solid var(--glh-border);
  border-radius: var(--glh-radius);
  margin-bottom: 0.6rem;
  background: var(--glh-bg-white);
  overflow: hidden;
}
.glh-faq-item > summary { list-style: none; }
.glh-faq-item > summary::-webkit-details-marker { display: none; }
.glh-faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1rem 1.25rem;
  font-family: var(--glh-font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--glh-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.4;
}
.glh-faq-q:hover { background: var(--glh-bg-card); }
.glh-faq-q::after { content: '+'; font-size: 1.4rem; font-weight: 400; color: var(--glh-primary); flex-shrink: 0; }
.glh-faq-item[open] .glh-faq-q::after { content: '−'; }
.glh-faq-a { padding: 0 1.25rem 1rem; font-size: 0.9rem; line-height: 1.65; border-top: 1px solid var(--glh-border); }
.glh-faq-a p:first-child { margin-top: 0.75rem; }
.glh-faq-a p:last-child  { margin-bottom: 0; }

/* ─── Self-test ───────────────────────────────────────────── */
.glh-test-question {
  background: var(--glh-bg-white);
  border: 1.5px solid var(--glh-border);
  border-radius: var(--glh-radius);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.glh-test-question strong { font-family: var(--glh-font-head); color: var(--glh-primary-dark); }
.glh-tq-text { flex: 1; }
.glh-tq-buttons { display: flex; gap: 0.45rem; flex-shrink: 0; padding-top: 0.1rem; }
.glh-tq-btn {
  padding: 0.38rem 1.05rem;
  border-radius: 2rem;
  border: 2px solid var(--glh-border);
  background: transparent;
  font-family: var(--glh-font-head);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--glh-text);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
  line-height: 1.4;
}
.glh-tq-btn:hover { border-color: var(--glh-primary-light); color: var(--glh-primary); }
.glh-tq-yes.glh-tq-active { background: var(--glh-primary); border-color: var(--glh-primary); color: #fff; }
.glh-tq-no.glh-tq-active  { background: #6b7280; border-color: #6b7280; color: #fff; }

/* score summary bar */
.glh-score-bar {
  background: var(--glh-bg-card);
  border: 2px solid var(--glh-border);
  border-radius: var(--glh-radius-lg);
  padding: 1.1rem 1.5rem;
  margin: 1.75rem 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.glh-score-num {
  font-size: 2.6rem;
  font-weight: 800;
  font-family: var(--glh-font-head);
  color: var(--glh-primary);
  line-height: 1;
  min-width: 3rem;
  text-align: center;
  transition: color 0.25s;
}
.glh-score-num.warn   { color: #d97706; }
.glh-score-num.danger { color: #dc2626; }
.glh-score-info { display: flex; flex-direction: column; gap: 0.2rem; }
.glh-score-stage { font-size: 1rem; font-weight: 700; font-family: var(--glh-font-head); color: var(--glh-text); }
.glh-score-sub   { font-size: 0.8rem; color: #666; }

/* result box states */
.glh-test-result {
  border-radius: var(--glh-radius-lg);
  padding: 1.25rem 1.5rem;
  margin-top: 1rem;
  transition: opacity 0.25s, box-shadow 0.25s, transform 0.2s;
}
.glh-result-low    { background: #d1fae5; border-left: 4px solid #059669; }
.glh-result-medium { background: #fef3c7; border-left: 4px solid #d97706; }
.glh-result-high   { background: #fee2e2; border-left: 4px solid #dc2626; }
.glh-test-result.glh-dim    { opacity: 0.28; transform: scale(0.99); }
.glh-result-low.glh-active    { box-shadow: 0 0 0 3px #059669; }
.glh-result-medium.glh-active { box-shadow: 0 0 0 3px #d97706; }
.glh-result-high.glh-active   { box-shadow: 0 0 0 3px #dc2626; }

@media (max-width: 580px) {
  .glh-test-question { flex-direction: column; gap: 0.65rem; }
  .glh-tq-buttons { align-self: flex-end; }
  .glh-score-num { font-size: 2rem; min-width: 2.25rem; }
}

/* ─── Page image ──────────────────────────────────────────── */
.glh-hero-img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: var(--glh-radius-lg);
  margin-bottom: 1.75rem;
}
.glh-section-img {
  width: 100%;
  border-radius: var(--glh-radius);
  margin: 1.75rem 0;
  box-shadow: var(--glh-shadow-card);
}

/* ─── Footer ──────────────────────────────────────────────── */
.glh-footer {
  background: var(--glh-primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 3rem 1.5rem 2rem;
  margin-top: 2rem;
}
.glh-footer-grid {
  max-width: var(--glh-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.glh-footer h4, .glh-footer-title { font-family: var(--glh-font-head); color: #fff; font-size: 0.9rem; margin-bottom: 0.75rem; margin-top: 0; }
.glh-footer-title { font-weight: 700; }
.glh-footer ul { list-style: none; padding: 0; }
.glh-footer li { margin-bottom: 0.4rem; }
.glh-footer a  { color: rgba(255,255,255,0.72); text-decoration: none; font-size: 0.88rem; }
.glh-footer a:hover { color: #fff; }
.glh-footer-brand p { font-size: 0.85rem; line-height: 1.6; margin-top: 0.5rem; }
.glh-footer-legal a { color: rgba(255,255,255,0.6); text-decoration: none; }
.glh-footer-legal a:hover { color: #fff; }
.glh-footer-bottom {
  max-width: var(--glh-max);
  margin: 1.5rem auto 0;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: rgba(255,255,255,0.5);
}

/* ─── Skip link ───────────────────────────────────────────── */
.glh-skip {
  position: absolute;
  left: -9999px;
  background: var(--glh-accent);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0 0 8px 0;
  font-weight: 700;
  z-index: 9999;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}
.glh-skip:focus { left: 0; }

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .glh-nav-links { display: none; }
  .glh-nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--glh-primary-dark); padding: 0.75rem 1rem; gap: 0.25rem; }
  .glh-nav-links.open a { padding: 0.6rem 0.75rem; }
  .glh-nav-toggle { display: block; }
  .glh-header { position: relative; }
  .glh-hero { padding: 2.5rem 1.25rem 2rem; }
  .glh-hotline { flex-direction: column; gap: 0.5rem; }
  .glh-footer-bottom { flex-direction: column; }
  .glh-hero-img { height: 220px; }
}
@media (max-width: 480px) {
  .glh-hero-btns { flex-direction: column; align-items: center; }
}
