/* Blerim Mema – Lohn- u. Buchhaltungsservice
   Zentrales Stylesheet für alle Seiten */

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

:root {
  --dark: #0D1B3E; --mid: #4A90C4; --light: #5BA3D9; --accent: #A8D4F0;
  --cream: #f4f7fb; --cream-dark: #e6edf5;
  --text: #0D1B3E; --text-muted: #4a6080;
  --white: #ffffff; --border: rgba(13,27,62,0.1);
  --maxw: 1100px;
}

html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--cream); color: var(--text); font-size: 18px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--mid); }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--white); color: var(--dark); padding: 10px 18px; z-index: 200; }
.skip-link:focus { left: 8px; top: 8px; }
:focus-visible { outline: 2px solid var(--light); outline-offset: 3px; }

/* ---------- NAVIGATION ---------- */
nav { position: sticky; top: 0; z-index: 100; background: var(--dark); display: flex; align-items: center; justify-content: space-between; padding: 0 3rem; min-height: 72px; border-bottom: 1px solid rgba(91,163,217,0.2); }
.nav-logo { font-size: 17px; color: var(--white); font-weight: 500; display: flex; align-items: center; gap: 8px; text-decoration: none; }
.nav-logo span { color: var(--light); }
.nav-links { display: flex; gap: 1.9rem; list-style: none; align-items: center; }
.nav-links a { color: rgba(255,255,255,0.72); text-decoration: none; font-size: 15px; transition: color 0.2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--light); }
.nav-cta { background: var(--mid) !important; color: var(--white) !important; padding: 9px 22px; border-radius: 4px; font-weight: 500 !important; }
.nav-cta:hover { background: var(--light) !important; color: var(--white) !important; }
.nav-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.nav-burger { display: none; cursor: pointer; padding: 10px; }
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; transition: 0.25s; }
.nav-toggle:focus-visible ~ .nav-burger { outline: 2px solid var(--light); outline-offset: 2px; }

/* ---------- HERO (Startseite) ---------- */
.hero { background: var(--dark); color: var(--white); padding: 6rem 3rem 5rem; position: relative; overflow: hidden; }
.hero-bg-circle { position: absolute; border-radius: 50%; pointer-events: none; }
.hero-inner { max-width: 780px; position: relative; z-index: 1; }
.hero-tag { display: inline-block; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--light); border: 1px solid rgba(91,163,217,0.35); padding: 6px 16px; border-radius: 2px; margin-bottom: 2rem; font-weight: 500; }
.hero h1 { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(2.6rem, 5.5vw, 4rem); font-weight: 600; line-height: 1.15; margin-bottom: 1.4rem; }
.hero h1 em { color: var(--light); font-style: normal; }
.hero p { font-size: 19px; color: rgba(255,255,255,0.68); max-width: 560px; margin-bottom: 2.5rem; font-weight: 300; line-height: 1.75; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary { background: var(--mid); color: var(--white); padding: 15px 34px; border-radius: 4px; text-decoration: none; font-weight: 500; font-size: 16px; transition: background 0.2s; display: inline-block; }
.btn-primary:hover { background: var(--light); }
.btn-outline { background: transparent; color: var(--white); padding: 15px 34px; border-radius: 4px; border: 1px solid rgba(255,255,255,0.25); text-decoration: none; font-size: 16px; transition: border-color 0.2s, color 0.2s; display: inline-block; }
.btn-outline:hover { border-color: var(--light); color: var(--light); }

/* ---------- SEITENKOPF (Unterseiten) ---------- */
.pagehead { background: var(--dark); color: var(--white); padding: 3.2rem 3rem 3.6rem; position: relative; overflow: hidden; }
.pagehead-inner { max-width: var(--maxw); margin: 0 auto; position: relative; z-index: 1; }
.pagehead h1 { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 600; line-height: 1.18; margin: 0.6rem 0 1rem; }
.pagehead p { color: rgba(255,255,255,0.68); font-weight: 300; font-size: 18px; max-width: 640px; line-height: 1.75; }
.pagehead .hero-bg-circle { border: 1px solid rgba(91,163,217,0.10); }

/* ---------- BREADCRUMB ---------- */
.breadcrumb { font-size: 13px; color: rgba(255,255,255,0.45); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb a { color: rgba(255,255,255,0.6); text-decoration: none; }
.breadcrumb a:hover { color: var(--light); }
.breadcrumb li + li::before { content: "›"; margin-right: 8px; color: rgba(255,255,255,0.3); }

/* ---------- TRUST BAR ---------- */
.trust-bar { background: var(--cream-dark); border-bottom: 1px solid var(--border); padding: 1.2rem 3rem; display: flex; gap: 2.5rem; flex-wrap: wrap; align-items: center; }
.trust-item { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--text-muted); }
.trust-dot { width: 7px; height: 7px; background: var(--mid); border-radius: 50%; flex-shrink: 0; }

/* ---------- SEKTIONEN ---------- */
section { padding: 5rem 3rem; }
.section-inner { max-width: var(--maxw); margin: 0 auto; }
.section-label { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mid); font-weight: 500; margin-bottom: 0.75rem; }
.section-heading { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 600; line-height: 1.2; color: var(--dark); margin-bottom: 1rem; }
.section-sub { font-size: 17px; color: var(--text-muted); max-width: 560px; line-height: 1.75; margin-bottom: 3rem; }
.bg-white { background: var(--white); }
.bg-cream { background: var(--cream); }
.bg-cream-dark { background: var(--cream-dark); }

/* ---------- LEISTUNGSKARTEN ---------- */
.leistungen-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.leistung-card { background: var(--cream); border: 1px solid var(--border); border-radius: 10px; padding: 2rem 1.8rem; transition: border-color 0.2s, background 0.2s, transform 0.2s; display: block; text-decoration: none; color: inherit; }
.bg-cream .leistung-card { background: var(--white); }
.leistung-card:hover { border-color: var(--mid); background: #edf4fb; transform: translateY(-2px); }
.leistung-graphic { margin-bottom: 1.3rem; }
.leistung-card h3 { font-size: 17px; font-weight: 500; color: var(--dark); margin-bottom: 0.4rem; }
.leistung-card p { font-size: 15px; color: var(--text-muted); line-height: 1.6; }
.card-more { display: inline-block; margin-top: 0.9rem; font-size: 14px; color: var(--mid); font-weight: 500; }
.leistung-card:hover .card-more { color: var(--dark); }

.legal-note { margin-top: 2rem; padding: 1.2rem 1.5rem; background: var(--cream-dark); border-left: 3px solid var(--mid); border-radius: 0 6px 6px 0; font-size: 13px; color: var(--text-muted); line-height: 1.65; }
.bg-cream-dark .legal-note { background: var(--white); }

/* ---------- STATS ---------- */
.stats-strip { background: var(--mid); padding: 3rem; display: flex; justify-content: center; gap: 0; flex-wrap: wrap; }
.stat-item { flex: 1; min-width: 180px; text-align: center; padding: 1rem 2rem; border-right: 1px solid rgba(255,255,255,0.2); }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: 'Playfair Display', Georgia, serif; font-size: 3rem; font-weight: 600; color: var(--white); line-height: 1; }
.stat-label { font-size: 15px; color: rgba(255,255,255,0.75); margin-top: 6px; }

/* ---------- BRANCHEN ---------- */
.branchen-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: center; }
.branchen-icons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.branchen-icons.wide { grid-template-columns: repeat(4, 1fr); }
.branche-box { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 1.3rem 0.8rem; text-align: center; transition: border-color 0.2s, transform 0.2s; text-decoration: none; color: inherit; display: block; }
.bg-white .branche-box { background: var(--cream); }
.branche-box:hover { border-color: var(--mid); transform: translateY(-2px); }
.branche-box svg { display: block; margin: 0 auto 10px; }
.branche-box span { font-size: 13.5px; color: var(--text-muted); display: block; line-height: 1.35; }

.branchen-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.branche-card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 1.8rem; }
.branche-card h3 { font-size: 17px; font-weight: 500; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 10px; }
.branche-card p { font-size: 15px; color: var(--text-muted); line-height: 1.65; }

/* ---------- ÜBER MICH ---------- */
.ueber-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.dark-section { background: var(--dark); }
.dark-section .section-heading { color: var(--white); }
.dark-section .section-label { color: var(--light); }
.dark-section .section-sub { color: rgba(255,255,255,0.6); }
.ueber-text p { color: rgba(255,255,255,0.65); font-size: 17px; line-height: 1.8; margin-bottom: 1.2rem; font-weight: 300; }
.ueber-highlights { display: flex; flex-direction: column; gap: 1px; background: rgba(255,255,255,0.07); border-radius: 10px; overflow: hidden; }
.highlight-row { background: rgba(255,255,255,0.03); padding: 1.3rem 1.6rem; display: flex; align-items: flex-start; gap: 1.2rem; transition: background 0.2s; }
.highlight-row:hover { background: rgba(74,144,196,0.12); }
.h-num { font-family: 'Playfair Display', Georgia, serif; font-size: 28px; color: var(--light); line-height: 1; min-width: 54px; font-weight: 600; }
.h-text { font-size: 15px; color: rgba(255,255,255,0.65); padding-top: 5px; line-height: 1.55; }

/* ---------- DIGITAL ---------- */
.digital-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.digital-card { background: var(--cream); border: 1px solid var(--border); border-radius: 10px; padding: 1.9rem 1.7rem; }
.bg-cream .digital-card { background: var(--white); }
.digital-card .step-circle { width: 54px; height: 54px; background: var(--mid); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem; }
.digital-card .step-circle svg { width: 24px; height: 24px; stroke: var(--white); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.digital-card h3 { font-size: 17px; font-weight: 500; color: var(--dark); margin-bottom: 0.45rem; }
.digital-card p { font-size: 15px; color: var(--text-muted); line-height: 1.65; }

.map-note { display: flex; gap: 1.4rem; align-items: flex-start; background: var(--dark); border-radius: 12px; padding: 2.2rem 2.4rem; margin-top: 2.5rem; }
.map-note svg { flex-shrink: 0; stroke: var(--light); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; width: 34px; height: 34px; margin-top: 4px; }
.map-note h3 { font-family: 'Playfair Display', Georgia, serif; color: var(--white); font-size: 1.4rem; font-weight: 600; margin-bottom: 0.5rem; }
.map-note p { color: rgba(255,255,255,0.65); font-size: 16px; font-weight: 300; line-height: 1.75; }

/* ---------- FLIESSTEXT / ARTIKEL ---------- */
.prose { max-width: 760px; }
.prose h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.75rem; font-weight: 600; color: var(--dark); margin: 2.8rem 0 0.9rem; line-height: 1.25; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.12rem; font-weight: 500; color: var(--dark); margin: 1.9rem 0 0.5rem; }
.prose p { font-size: 17px; color: var(--text-muted); line-height: 1.8; margin-bottom: 1.1rem; }
.prose ul { list-style: none; margin: 1rem 0 1.6rem; }
.prose ul li { position: relative; padding-left: 30px; margin-bottom: 0.7rem; font-size: 16.5px; color: var(--text-muted); line-height: 1.65; }
.prose ul li::before { content: ""; position: absolute; left: 6px; top: 11px; width: 7px; height: 7px; background: var(--mid); border-radius: 50%; }
.prose strong { color: var(--text); font-weight: 500; }
.prose a { color: var(--mid); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--dark); }

.lead { font-size: 19px !important; color: var(--text) !important; line-height: 1.75 !important; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin-top: 1.5rem; }
.faq details { background: var(--white); border: 1px solid var(--border); border-radius: 8px; margin-bottom: 12px; overflow: hidden; }
.bg-white .faq details { background: var(--cream); }
.faq summary { cursor: pointer; padding: 1.1rem 1.4rem; font-size: 16.5px; font-weight: 500; color: var(--dark); list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--mid); line-height: 1; flex-shrink: 0; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 1.4rem 1.3rem; font-size: 16px; color: var(--text-muted); line-height: 1.75; margin: 0; }

/* ---------- ERSTBERATUNG ---------- */
.erstberatung-box { background: var(--white); border: 2px solid var(--mid); border-radius: 14px; padding: 3rem; display: grid; grid-template-columns: auto 1fr auto; gap: 2.5rem; align-items: center; }
.erstberatung-badge { width: 130px; height: 130px; border-radius: 50%; background: var(--mid); display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; text-align: center; padding: 14px; }
.badge-top { font-size: 12px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255,255,255,0.82); }
.badge-main { font-family: 'Playfair Display', Georgia, serif; font-size: 28px; font-weight: 600; color: var(--white); line-height: 1; margin: 3px 0; }
.badge-sub { font-size: 12px; color: rgba(255,255,255,0.82); }
.erstberatung-text h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.9rem; font-weight: 600; color: var(--dark); line-height: 1.2; margin-bottom: 1rem; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin-top: 1rem; }
.check-item { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text); }
.check-circle { width: 22px; height: 22px; background: rgba(74,144,196,0.12); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.check-circle svg { width: 12px; height: 12px; stroke: var(--mid); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.erstberatung-cta { display: flex; flex-direction: column; align-items: center; gap: 12px; flex-shrink: 0; }
.cta-big { background: var(--mid); color: var(--white); padding: 18px 30px; border-radius: 6px; text-decoration: none; font-weight: 500; font-size: 16px; text-align: center; transition: background 0.2s; white-space: nowrap; }
.cta-big:hover { background: var(--light); }
.cta-hint { font-size: 13px; color: var(--text-muted); text-align: center; line-height: 1.5; }

/* ---------- KONTAKT ---------- */
.kontakt-box { background: var(--dark); border-radius: 12px; padding: 3.5rem 3rem; display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.kontakt-box h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 2rem; font-weight: 600; color: var(--white); line-height: 1.2; margin-bottom: 0.8rem; }
.kontakt-box > div > p { color: rgba(255,255,255,0.58); font-size: 16px; font-weight: 300; line-height: 1.7; }
.kontakt-details { display: flex; flex-direction: column; gap: 1.2rem; }
.kontakt-item { display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,0.85); font-size: 16px; }
.kontakt-item a { color: rgba(255,255,255,0.85); text-decoration: none; }
.kontakt-item a:hover { color: var(--light); }
.kontakt-ico { width: 42px; height: 42px; background: rgba(74,144,196,0.18); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.kontakt-ico svg { width: 18px; height: 18px; stroke: var(--light); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.k-label { font-size: 12px; color: rgba(255,255,255,0.38); margin-bottom: 2px; }

/* ---------- WEITERE SEITEN / VERLINKUNG ---------- */
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 1rem; }
.related a { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 1.1rem 1.3rem; text-decoration: none; color: var(--dark); font-size: 15.5px; font-weight: 500; transition: border-color 0.2s, transform 0.2s; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.bg-white .related a { background: var(--cream); }
.related a:hover { border-color: var(--mid); transform: translateY(-2px); }
.related a::after { content: "→"; color: var(--mid); }

/* ---------- FOOTER ---------- */
footer { background: var(--dark); border-top: 1px solid rgba(255,255,255,0.07); padding: 3rem 3rem 2rem; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.07); }
.footer-col h4 { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--light); font-weight: 500; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { font-size: 14.5px; color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--light); }
.footer-brand p { font-size: 14.5px; color: rgba(255,255,255,0.45); line-height: 1.7; margin-top: 0.8rem; max-width: 300px; }
.footer-brand strong { color: var(--white); font-weight: 500; font-size: 16px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding: 1.5rem 0 1rem; }
.footer-top p { font-size: 14px; color: rgba(255,255,255,0.3); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.3); text-decoration: none; }
.footer-links a:hover { color: var(--light); }
.footer-legal { font-size: 12px; color: rgba(255,255,255,0.28); line-height: 1.65; border-top: 1px solid rgba(255,255,255,0.07); padding-top: 1rem; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1000px) {
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .branchen-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .branchen-icons { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .erstberatung-box { grid-template-columns: 1fr; text-align: center; }
  .erstberatung-badge { margin: 0 auto; }
  .check-grid { grid-template-columns: 1fr; }
  .check-item { text-align: left; }
}
@media (max-width: 820px) {
  nav { flex-wrap: wrap; padding: 0 1.4rem; }
  .nav-burger { display: block; margin-left: auto; }
  .nav-links { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 0; padding-bottom: 0.8rem; }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-links li { width: 100%; border-top: 1px solid rgba(255,255,255,0.07); }
  .nav-links a { display: block; padding: 0.85rem 0; width: 100%; }
  .nav-cta { display: inline-block !important; margin: 0.8rem 0; }
}
@media (max-width: 700px) {
  body { font-size: 17px; }
  .ueber-grid, .kontakt-box { grid-template-columns: 1fr; gap: 2rem; }
  .hero { padding: 3.5rem 1.4rem; }
  section { padding: 3.2rem 1.4rem; }
  .pagehead { padding: 2.2rem 1.4rem 2.6rem; }
  .trust-bar { padding: 1rem 1.4rem; gap: 1rem 1.6rem; }
  .kontakt-box { padding: 2rem 1.5rem; }
  .stats-strip { padding: 2rem 1rem; }
  .branchen-icons { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .erstberatung-box { padding: 2rem 1.4rem; }
  .map-note { flex-direction: column; padding: 1.8rem 1.5rem; }
  footer { padding: 2.5rem 1.4rem 1.5rem; }
  .footer-cols { grid-template-columns: 1fr; gap: 1.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
