/* =====================================================================
   Regionalportal – zentrales Stylesheet
   Farben kommen als CSS-Variablen aus den Admin-Einstellungen.
   ===================================================================== */

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

:root {
  --c-primary: #c1121f;
  --c-dark: #1d2a44;
  --c-accent: #f59e0b;
  --c-bg: #f6f7f8;
  --c-text: #24272a;
  --c-muted: #6b7178;
  --c-line: #e3e6e9;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,.07);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
}

img { max-width: 100%; height: auto; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--c-dark); color: #fff; padding: 8px 14px; z-index: 200;
}
.skip-link:focus { left: 8px; }

/* ------------------------------------------------------------------ */
/* Topbar                                                              */
/* ------------------------------------------------------------------ */
.topbar { background: var(--c-dark); color: #fff; font-size: 14px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 12px; flex-wrap: wrap; }
.topbar a { color: #fff; opacity: .9; margin-left: 14px; }
.topbar a:hover { opacity: 1; }
.weather { opacity: .95; }
.radio-toggle {
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4);
  border-radius: 20px; padding: 2px 12px; margin-left: 10px; cursor: pointer; font-size: 13px;
}
.radio-toggle:hover { background: rgba(255,255,255,.12); }

.radiobar { background: #1f2225; color: #fff; font-size: 14px; }
.radiobar-inner { display: flex; align-items: center; gap: 10px; padding: 8px 16px; flex-wrap: wrap; }
.radiobar select { padding: 4px 8px; border-radius: 6px; border: none; }
.radio-status { opacity: .8; }

/* ------------------------------------------------------------------ */
/* Header                                                              */
/* ------------------------------------------------------------------ */
.siteheader { background: #fff; box-shadow: var(--shadow); position: relative; z-index: 50; }
.siteheader-inner {
  display: flex; align-items: center; gap: 18px;
  padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap;
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--c-text); }
.logo:hover { text-decoration: none; }
.logo-img { height: 80px; width: auto; display: block; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text strong { font-size: 20px; }
.logo-text small { color: var(--c-muted); font-size: 12px; }

.header-banners { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-left: auto; }
.header-banners img { border-radius: 6px; }

.header-search { display: flex; margin-left: auto; }
.header-banners + .header-search { margin-left: 0; }
.header-search input {
  border: 1px solid var(--c-line); border-right: none;
  border-radius: 20px 0 0 20px; padding: 8px 14px; min-width: 180px; font-size: 15px;
}
.header-search button {
  border: 1px solid var(--c-primary); background: var(--c-primary); color: #fff;
  border-radius: 0 20px 20px 0; padding: 8px 14px; cursor: pointer;
}
.nav-toggle {
  display: none; background: var(--c-dark); color: #fff; border: none;
  border-radius: 8px; padding: 8px 14px; cursor: pointer; font-size: 15px;
}

/* Hauptnavigation */
.mainnav { border-top: 1px solid var(--c-line); background: #fff; }
.mainnav-inner { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-link {
  display: inline-block; padding: 12px 14px; color: var(--c-text);
  font-weight: 600; font-size: 15px; background: none; border: none; cursor: pointer;
}
.nav-link:hover { color: var(--c-primary); text-decoration: none; }
.has-dropdown { position: relative; }
.dropdown {
  display: none; position: absolute; top: 100%; left: 0; background: #fff;
  box-shadow: var(--shadow); border-radius: 0 0 var(--radius) var(--radius);
  min-width: 260px; max-height: 60vh; overflow: auto; z-index: 60; padding: 6px 0;
}
.has-dropdown.open .dropdown { display: block; }
.dropdown a { display: block; padding: 8px 16px; color: var(--c-text); }
.dropdown a:hover { background: var(--c-bg); text-decoration: none; }

/* Newsticker */
.newsticker { background: var(--c-primary); color: #fff; font-size: 14px; }
.newsticker-inner { display: flex; align-items: center; gap: 10px; min-height: 34px; overflow: hidden; }
.newsticker-label { font-weight: 700; white-space: nowrap; }
.newsticker-viewport { overflow: hidden; flex: 1; }
.newsticker-track { display: inline-flex; gap: 40px; white-space: nowrap; animation: ticker 60s linear infinite; }
.newsticker-track:hover { animation-play-state: paused; }
.newsticker-track a { color: #fff; }
.newsticker-track small { opacity: .8; }
@keyframes ticker {
  from { transform: translateX(20%); }
  to   { transform: translateX(-100%); }
}

/* ------------------------------------------------------------------ */
/* Allgemeine Bausteine                                                */
/* ------------------------------------------------------------------ */
.section { padding: 34px 0; }
.section-alt { background: #fff; }
.section-title { font-size: 26px; margin: 0 0 6px; }
.section-sub { color: var(--c-muted); margin: 0 0 22px; }

.btn {
  display: inline-block; background: var(--c-primary); color: #fff;
  border: none; border-radius: 24px; padding: 10px 22px;
  font-size: 15px; font-weight: 600; cursor: pointer;
}
.btn:hover { filter: brightness(.94); text-decoration: none; }
.btn-outline { background: transparent; color: var(--c-primary); border: 2px solid var(--c-primary); }
.btn-outline:hover { background: var(--c-primary); color: #fff; }
.btn-small { padding: 6px 14px; font-size: 14px; border-radius: 16px; }
.btn-dark { background: var(--c-dark); }

.badge {
  display: inline-block; font-size: 12px; font-weight: 700;
  border-radius: 12px; padding: 2px 10px; background: var(--c-bg); color: var(--c-muted);
}
.badge-open { background: #e6f6e6; color: #1b7d2c; }
.badge-closed { background: #fdeaea; color: #b3261e; }
.badge-accent { background: var(--c-accent); color: #fff; }

.breadcrumb { font-size: 13px; color: var(--c-muted); padding: 12px 0 0; }
.breadcrumb a { color: var(--c-muted); }
.breadcrumb a:hover { color: var(--c-primary); }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* Karten/Kacheln */
.card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .15s ease;
}
.card:hover { transform: translateY(-3px); }
.card-img { aspect-ratio: 16/10; object-fit: cover; width: 100%; background: var(--c-bg); }
.card-img-placeholder {
  aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center;
  font-size: 42px; background: linear-gradient(135deg, var(--c-bg), var(--c-line));
}
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font-size: 17px; margin: 0; line-height: 1.35; }
.card-title a { color: var(--c-text); }
.card-title a:hover { color: var(--c-primary); text-decoration: none; }
.card-text { color: var(--c-muted); font-size: 14px; margin: 0; flex: 1; }
.card-meta { font-size: 13px; color: var(--c-muted); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* Hero */
.hero {
  background:
    radial-gradient(900px 420px at 85% 20%, rgba(193,18,31,.22), transparent 60%),
    linear-gradient(120deg, var(--c-dark), #2c3d60);
  color: #fff; padding: 52px 0 46px;
}
.hero-grid { display: flex; align-items: center; gap: 40px; }
.hero-copy { flex: 1; min-width: 0; }
.hero-word { margin: 0 0 10px; line-height: .98; letter-spacing: 2px; font-weight: 800; }
.hero-line1 { display: block; font-size: clamp(34px, 5.4vw, 62px); color: #fff; }
.hero-line2 {
  display: flex; align-items: center; font-size: clamp(34px, 5.4vw, 62px);
  color: var(--c-primary); filter: brightness(1.25);
}
.hero-o { width: .82em; height: .82em; margin: 0 .04em; color: var(--c-primary); filter: brightness(1.1); }
.hero-slogan {
  font-size: clamp(14px, 1.6vw, 18px); letter-spacing: 1.5px; font-weight: 700;
  margin: 14px 0 6px; color: #e8ebef;
}
.hero-slogan-rot { display: block; color: #ff5560; }
.hero-intro { font-size: 17px; opacity: .88; margin: 10px 0 22px; max-width: 640px; }
.hero .header-search { margin: 0; max-width: 560px; }
.hero .header-search input { flex: 1; font-size: 16px; padding: 12px 18px; }
.hero-claims { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 16px; font-size: 14px; opacity: .92; }
.hero-badge {
  flex-shrink: 0; width: 300px; height: 300px; border-radius: 50%;
  background: #ffffff; box-shadow: 0 14px 44px rgba(0,0,0,.35);
  display: flex; align-items: center; justify-content: center;
}
.hero-badge img { width: 88%; height: 88%; object-fit: contain; }
@media (max-width: 960px) {
  .hero-badge { display: none; }
}

/* Werbeblock für Firmen (FOMO-Band) */
.cta-band {
  background:
    radial-gradient(700px 300px at 12% 0%, rgba(255,255,255,.14), transparent 60%),
    linear-gradient(115deg, var(--c-primary), #8c0d17);
  color: #fff; padding: 38px 0;
}
.cta-inner { display: flex; align-items: center; gap: 34px; }
.cta-copy { flex: 1; min-width: 0; }
.cta-title { margin: 0 0 10px; font-size: clamp(22px, 3vw, 32px); line-height: 1.2; }
.cta-text { margin: 0; font-size: 16.5px; opacity: .95; max-width: 760px; }
.cta-action { flex-shrink: 0; text-align: center; }
.cta-btn {
  background: #fff; color: var(--c-primary); font-size: 17px; font-weight: 800;
  padding: 14px 28px; border-radius: 30px; box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.cta-btn:hover { background: var(--c-dark); color: #fff; filter: none; }
.cta-sub { margin-top: 10px; font-size: 13px; letter-spacing: .8px; opacity: .9; font-weight: 700; }
@media (max-width: 820px) {
  .cta-inner { flex-direction: column; align-items: flex-start; }
}

/* Kategorie-Kacheln */
.cat-tile {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px; display: flex; align-items: center; gap: 12px; color: var(--c-text);
}
.cat-tile:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.cat-tile .icon { font-size: 28px; }
.cat-tile .count { margin-left: auto; }

/* Profilseite */
.profile-hero { background: #fff; }
.profile-head { padding: 26px 0 18px; }
.profile-head h1 { margin: 0 0 4px; font-size: clamp(24px, 3.4vw, 34px); }
.profile-teaser { color: var(--c-muted); margin: 0; font-size: 17px; }
.profile-nav {
  position: sticky; top: 0; z-index: 40; background: var(--c-primary);
  border-radius: 8px; overflow-x: auto; white-space: nowrap;
}
.profile-nav a { display: inline-block; color: #fff; font-weight: 600; padding: 10px 16px; font-size: 14px; }
.profile-nav a:hover { background: rgba(0,0,0,.12); text-decoration: none; }

.slider { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; }
.slider-slide { display: none; }
.slider-slide.active { display: block; }
.slider-slide img { width: 100%; max-height: 520px; object-fit: contain; background: #111; }
.slider-slide iframe { width: 100%; aspect-ratio: 16/9; border: 0; display: block; }
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.45); color: #fff; border: none; font-size: 22px;
  padding: 10px 14px; cursor: pointer; border-radius: 8px;
}
.slider-btn:hover { background: rgba(0,0,0,.7); }
.slider-prev { left: 10px; }
.slider-next { right: 10px; }
.slider-dots { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; }
.slider-dots button {
  width: 11px; height: 11px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.5); margin: 0 4px; cursor: pointer;
}
.slider-dots button.active { background: #fff; }

.content-html { max-width: 860px; }
.content-html img { border-radius: 8px; }
.content-html h2 { font-size: 24px; margin-top: 34px; }
.content-html h3 { font-size: 19px; }
.content-html iframe { max-width: 100%; border-radius: 8px; }

.info-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 26px; align-items: start; }
.side-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 20px; }
.side-card h2, .side-card h3 { margin-top: 0; font-size: 18px; }
.side-card table { width: 100%; border-collapse: collapse; font-size: 14px; }
.side-card td { padding: 4px 0; vertical-align: top; }
.side-card td:first-child { color: var(--c-muted); width: 46%; }

.feature-list { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.feature-list li { padding: 3px 0; }
.feature-list .yes::before { content: "✔ "; color: #1b7d2c; }
.feature-list .no { display: none; }

.social-links { display: flex; gap: 8px; flex-wrap: wrap; }
.social-links a {
  background: var(--c-bg); border-radius: 8px; padding: 6px 12px;
  font-size: 13px; color: var(--c-text); font-weight: 600;
}
.social-links a:hover { background: var(--c-primary); color: #fff; text-decoration: none; }

/* Formulare */
.form-grid { display: grid; gap: 14px; max-width: 640px; }
.form-field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; border: 1px solid var(--c-line); border-radius: 8px;
  padding: 10px 12px; font-size: 15px; font-family: inherit; background: #fff;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: 2px solid var(--c-primary); border-color: transparent;
}
.form-hint { font-size: 13px; color: var(--c-muted); margin-top: 3px; }
.form-error { color: #b3261e; font-size: 14px; margin-top: 4px; }

.alert { border-radius: 10px; padding: 12px 16px; margin: 14px 0; font-size: 15px; }
.alert-success { background: #e6f6e6; color: #14591f; }
.alert-error { background: #fdeaea; color: #90211b; }
.alert-info { background: #e8f1fb; color: #1d4f8b; }

/* Karte */
#map { height: 520px; border-radius: var(--radius); z-index: 1; }

/* Öffnungszeiten-Tabelle */
.opening-today { font-weight: 700; }

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */
.sitefooter { background: var(--c-dark); color: #d5d9dd; margin-top: 40px; font-size: 14px; }
.footer-banners { display: flex; gap: 14px; flex-wrap: wrap; padding: 20px 16px 0; }
.footer-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 30px; padding-top: 34px; padding-bottom: 30px;
}
.footer-title { color: #fff; font-size: 16px; margin: 0 0 12px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { padding: 3px 0; }
.footer-links a, .sitefooter a { color: #d5d9dd; }
.footer-links a:hover, .sitefooter a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom-inner { display: flex; justify-content: space-between; padding: 14px 16px; flex-wrap: wrap; gap: 8px; }

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: 1fr; }
  .header-banners { display: none; }
}

@media (max-width: 680px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-block; margin-left: auto; }
  .header-search { order: 3; width: 100%; }
  .header-search input { flex: 1; }
  .mainnav { display: none; }
  .mainnav.open { display: block; }
  .mainnav-inner { flex-direction: column; }
  .dropdown { position: static; box-shadow: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar-inner { justify-content: center; }
}
