/* GKL-Versicherungsmakler – Stylesheet
   Farben zentral hier anpassen (z.B. an Logo-Farben) */
:root {
  --primary: #2a2c4a;        /* Dunkles Nachtblau aus dem Logo */
  --primary-dark: #1d1e30;
  --accent: #a8743f;         /* Gold/Kupfer aus dem Pegasus */
  --accent-dark: #8c5f31;
  --bg: #ffffff;
  --bg-soft: #f3f6f9;
  --text: #1d2733;
  --muted: #5b6876;
  --border: #dde4ea;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(29, 30, 48, .08);
  --max: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.65; font-size: 17px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4 { line-height: 1.25; color: var(--primary-dark); margin: 1.6em 0 .6em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); margin-top: 0; }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
li { margin: .3em 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 10px; top: 10px; background: #fff; padding: 8px 12px; z-index: 100; }

/* Topbar */
.topbar { background: var(--primary-dark); color: #cfe0ee; font-size: .88rem; }
.topbar .container { display: flex; justify-content: flex-end; gap: 22px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 88px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--primary-dark); }
.logo img { height: 70px; width: auto; }
.logo-mark { background: var(--primary); color: #fff; font-weight: 800; letter-spacing: .04em; border-radius: 10px; padding: 8px 11px; font-size: 1.15rem; }
.logo-text { line-height: 1.15; font-weight: 700; font-size: 1.02rem; }
.logo-text small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.nav li { margin: 0; position: relative; }
.nav a, .nav button.sub-toggle { display: block; padding: 10px 12px; text-decoration: none; color: var(--text); font-weight: 600; font-size: .96rem; border-radius: 8px; background: none; border: 0; font-family: inherit; cursor: pointer; }
.nav a:hover, .nav button.sub-toggle:hover, .nav a[aria-current="page"] { color: var(--primary); background: var(--bg-soft); }
.nav .cta a { background: var(--accent); color: #fff; }
.nav .cta a:hover { background: var(--accent-dark); color: #fff; }
.nav .sub { display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); padding: 6px; min-width: 270px; flex-direction: column; align-items: stretch; }
.nav li:hover > .sub, .nav li.open > .sub { display: flex; }
.nav .sub a { font-weight: 500; }
.menu-btn { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; font-size: 1rem; font-family: inherit; cursor: pointer; }

@media (max-width: 960px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 10px 16px 16px; }
  .nav .sub { position: static; display: flex; box-shadow: none; border: 0; padding: 0 0 0 14px; min-width: 0; }
  .nav button.sub-toggle { width: 100%; text-align: left; }
  .topbar .container { justify-content: center; }
}

/* Hero */
.hero { background: linear-gradient(135deg, #15162a, var(--primary-dark) 55%, #34365a); color: #fff; padding: 72px 0 80px; }
.hero h1 { color: #fff; }
.hero .lead { font-size: 1.2rem; color: #e4e4ee; max-width: 720px; }
.hero .eyebrow { display: inline-block; background: rgba(255,255,255,.12); padding: 5px 12px; border-radius: 99px; font-size: .9rem; margin-bottom: 18px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.page-hero { background: var(--bg-soft); padding: 48px 0 40px; border-bottom: 1px solid var(--border); }
.page-hero .lead { color: var(--muted); font-size: 1.12rem; max-width: 760px; margin: 0; }
.breadcrumb { font-size: .88rem; color: var(--muted); margin-bottom: 10px; }
.breadcrumb a { color: var(--muted); }

/* Buttons */
.btn, a.btn { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; padding: 13px 24px; border-radius: 10px; border: 2px solid var(--accent); transition: background .15s; }
.btn:hover, a.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn.ghost:hover { background: rgba(255,255,255,.1); }
.btn.outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn.outline:hover { background: var(--primary); color: #fff; }
p.btn-row { margin: 1.4em 0; }

/* Sections */
section { padding: 64px 0; }
section.soft { background: var(--bg-soft); }
.section-head { max-width: 760px; margin-bottom: 32px; }
.section-head h2 { margin-top: 0; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card h3 { margin-top: 0; }
.card p { color: var(--muted); }
.card .more { margin-top: auto; font-weight: 700; text-decoration: none; }
a.card { text-decoration: none; color: inherit; transition: transform .15s, border-color .15s; }
a.card:hover { transform: translateY(-3px); border-color: var(--primary); }
.icon { width: 46px; height: 46px; border-radius: 12px; background: #f5ece2; color: var(--primary); display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 14px; }

.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 32px; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .8rem; display: grid; place-items: center; font-weight: 700; margin-top: 3px; }

.towns { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.towns li { background: #fff; border: 1px solid var(--border); padding: 5px 12px; border-radius: 99px; font-size: .92rem; margin: 0; }

.cta-band { background: var(--primary); color: #fff; border-radius: var(--radius); padding: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; color: #e4e4ee; }

/* Content pages (aus alten Texten) */
.content { padding: 48px 0 64px; }
.content h1:first-child, .content h2:first-child { margin-top: 0; }
.content blockquote { border-left: 4px solid var(--accent); margin: 1.5em 0; padding: .4em 1.2em; background: var(--bg-soft); border-radius: 0 8px 8px 0; }
.content table { border-collapse: collapse; width: 100%; margin: 1.2em 0; font-size: .95rem; display: block; overflow-x: auto; }
.content th, .content td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.content th { background: var(--bg-soft); }
.content h3.lead-text { font-weight: 500; font-size: 1.12rem; color: var(--text); line-height: 1.6; }

.contact-list { list-style: none; padding: 0; }
.contact-list li { margin: 0 0 14px; }
.contact-list strong { display: block; color: var(--muted); font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.contact-list a { font-size: 1.15rem; font-weight: 700; text-decoration: none; }

/* Footer */
.site-footer { background: var(--primary-dark); color: #b9cbdb; padding: 52px 0 24px; font-size: .95rem; margin-top: 0; }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: 1rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 30px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 18px; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Mobile Anruf-Leiste */
.callbar { display: none; }
@media (max-width: 700px) {
  body { font-size: 16px; padding-bottom: 62px; }
  section { padding: 44px 0; }
  .hero { padding: 48px 0 56px; }
  .cta-band { padding: 28px; }
  .callbar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -4px 16px rgba(0,0,0,.08); }
  .callbar a { flex: 1; text-align: center; padding: 12px 6px; font-weight: 700; text-decoration: none; }
  .callbar a.call { background: var(--accent); color: #fff; }
}
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1050px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }
.menu-btn { white-space: nowrap; }
@media (max-width: 700px) { .topbar .mail { display: none; } .logo-text { font-size: .95rem; } }
.hero .eyebrow { color: #e9c99b; background: rgba(201,150,90,.15); }
.hero h1 { text-wrap: balance; }
.site-footer { color: #b8b9c9; }
@media (max-width: 700px) { .logo img { height: 46px; } }

/* Google-Bewertung */
.rating { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 10px; border-radius: 99px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); text-decoration: none; color: var(--text); font-size: .95rem; transition: transform .15s, box-shadow .15s; }
.rating:hover { transform: translateY(-2px); color: var(--text); box-shadow: 0 10px 28px rgba(29,30,48,.14); }
.rating-g { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .9rem; color: #fff; background: conic-gradient(#ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0); }
.rating-stars { color: #f5b301; letter-spacing: 1px; font-size: 1.05rem; }
.rating-text strong { font-size: 1.05rem; }
.rating.on-dark { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); color: #fff; box-shadow: none; }
.rating.on-dark:hover { background: rgba(255,255,255,.14); color: #fff; }
.hero .rating { margin-top: 26px; }
.rating.small { font-size: .85rem; padding: 6px 12px 6px 7px; gap: 8px; }
.rating.small .rating-g { width: 20px; height: 20px; font-size: .75rem; }
.rating.small .rating-stars { font-size: .9rem; }
@media (max-width: 420px) { .rating { font-size: .85rem; } .rating-stars { font-size: .9rem; } }

/* WhatsApp-Button */
.wa-btn { position: fixed; right: 18px; bottom: 18px; z-index: 70; display: flex; align-items: center; gap: 8px; background: #25D366; color: #fff; padding: 11px 16px 11px 13px; border-radius: 999px; font-weight: 700; text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.wa-btn:hover { background: #1ebe5b; color: #fff; }
.wa-btn:focus-visible { outline: 3px solid #1d1e30; outline-offset: 2px; }
@media (max-width: 700px) { .wa-btn { bottom: 76px; right: 12px; padding: 12px; } .wa-btn span { display: none; } }
