/* =========================================================
   mehr-sichtbar.de — style.css
   Statischer One-Pager. Keine externen Ressourcen.
   ========================================================= */

/* ---- Self-hosted Inter (latin subset) ---- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-latin-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-latin-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-latin-700.woff2") format("woff2");
}

/* ---- Design tokens ---- */
:root {
  --ink: #14181f;
  --primary: #0f3d5c;
  --primary-700: #0a2c44;
  --accent: #ffc53d;
  --accent-600: #f0b41f;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --border: #e2e8f0;
  --muted: #5a6573;

  --container: 1080px;
  --reading: 720px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 24, 31, .04), 0 8px 24px rgba(15, 61, 92, .07);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--primary-700); }

h1, h2, h3 { color: var(--primary); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 1.875rem); letter-spacing: -.01em; }
h3 { font-size: 1.1875rem; }
p { margin: 0 0 1rem; }

/* ---- Accessibility helpers ---- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--primary); color: #fff; padding: .75rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0; text-decoration: none;
}
.skip-link:focus { left: 0; color: #fff; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---- Layout ---- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section--soft { background: var(--bg-soft); }
.section__intro { max-width: var(--reading); }
.lead { font-size: 1.15rem; color: var(--muted); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent-600); margin-bottom: .5rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 600; line-height: 1.2;
  padding: .9rem 1.4rem; border-radius: var(--radius-sm);
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .08s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn--primary {
  background: var(--accent); color: var(--ink); border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(255, 197, 61, .35);
}
.btn--primary:hover { background: var(--accent-600); border-color: var(--accent-600); color: var(--ink); transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost {
  background: transparent; color: var(--primary); border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); background: #fff; }
.btn--lg { padding: 1.05rem 1.7rem; font-size: 1.0625rem; }
.btn--block { width: 100%; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 700; color: var(--primary); text-decoration: none; font-size: 1.125rem;
  letter-spacing: -.01em;
}
.brand:hover { color: var(--primary-700); }
.brand__mark {
  width: 26px; height: 26px; border-radius: 7px; background: var(--primary);
  position: relative; flex: 0 0 auto;
}
.brand__mark::before {
  content: "m"; position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 1rem; line-height: 1; padding-bottom: 3px;
}
.brand__mark::after {
  content: ""; position: absolute; left: 22%; right: 22%; bottom: 22%;
  height: 3px; border-radius: 2px; background: var(--accent);
}
.site-header .btn { padding-block: .6rem; }

/* mobile nav */
.nav-toggle {
  display: none; background: none; border: 1px solid var(--border); border-radius: 8px;
  width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--primary);
  position: relative; transition: transform .2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.primary-nav { display: flex; align-items: center; gap: 1.25rem; }
.primary-nav a:not(.btn) {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: .975rem;
}
.primary-nav a:not(.btn):hover { color: var(--primary); }

@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: .25rem;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: .75rem 1.25rem 1.25rem; box-shadow: var(--shadow);
    display: none;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a:not(.btn) { padding: .65rem .25rem; border-bottom: 1px solid var(--border); }
  .primary-nav .btn { margin-top: .5rem; }
}

/* ---- Hero ---- */
.hero { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.hero h1 { max-width: 17ch; }
.hero__sub { max-width: 56ch; font-size: 1.2rem; color: var(--muted); margin-bottom: 1.75rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; }
.trust-line {
  margin-top: 1rem; font-size: .95rem; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: .35rem .9rem; align-items: center;
}
.trust-line li { list-style: none; position: relative; padding-left: 1.25rem; }
.trust-line { padding: 0; }
.trust-line li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px;
  border-radius: 50%; background: var(--accent);
}
.hero__selfproof {
  margin-top: 2rem; padding: 1rem 1.15rem; background: var(--bg-soft);
  border: 1px solid var(--border); border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm); max-width: var(--reading); color: var(--ink);
}
.hero__selfproof strong { color: var(--primary); }

/* ---- Generic prose width ---- */
.prose { max-width: var(--reading); }
.prose p { color: var(--ink); }

/* ---- Cards / grids ---- */
.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 768px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow); height: 100%;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card__num {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  border-radius: 10px; background: var(--primary); color: #fff; font-weight: 700;
  margin-bottom: .85rem;
}
.section--soft .card { background: #fff; }

/* stat highlight */
.stat {
  display: block; font-weight: 700; color: var(--primary);
  font-size: clamp(1.5rem, 4vw, 2.1rem); line-height: 1.15;
}
.stat mark { background: linear-gradient(transparent 60%, var(--accent) 60%); color: inherit; padding: 0 .1em; }

/* proof examples */
.proof-list { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .proof-list { grid-template-columns: 1fr 1fr; } }
.proof .badge {
  display: inline-block; font-size: .8rem; font-weight: 600; color: var(--primary);
  background: #e8f0f6; border-radius: 999px; padding: .25rem .7rem; margin-bottom: .75rem;
}
.trust-badges { display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; margin: 1.5rem 0 0; }
.trust-badges li {
  list-style: none; font-size: .95rem; font-weight: 500;
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: .5rem .95rem; position: relative; padding-left: 2rem;
}
.trust-badges li::before {
  content: "✓"; position: absolute; left: .8rem; top: 50%; transform: translateY(-50%);
  color: var(--accent-600); font-weight: 700;
}

/* ---- About ---- */
.about { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 820px) { .about { grid-template-columns: 220px 1fr; } }
.about__photo {
  border-radius: var(--radius); box-shadow: var(--shadow);
  width: 220px; max-width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
}

/* ---- FAQ ---- */
.faq { max-width: var(--reading); }
.faq details {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; margin-bottom: .75rem; overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 1.05rem 1.25rem; font-weight: 600; color: var(--primary);
  list-style: none; position: relative; padding-right: 3rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; font-weight: 400; color: var(--accent-600); line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 1.25rem 1.15rem; color: var(--ink); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---- Contact form ---- */
.contact { display: grid; gap: 2rem; }
@media (min-width: 900px) { .contact { grid-template-columns: 1.1fr .9fr; align-items: start; } }
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: .95rem; color: var(--ink); }
.field .req { color: var(--accent-600); }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: .8rem .9rem; width: 100%;
}
.field input:focus, .field textarea:focus { border-color: var(--primary); outline: 3px solid var(--accent); outline-offset: 1px; }
.field textarea { min-height: 130px; resize: vertical; }
.checkbox { display: grid; grid-template-columns: auto 1fr; gap: .65rem; align-items: start; font-size: .95rem; }
.checkbox input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; }
/* honeypot */
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form__note { font-size: .85rem; color: var(--muted); margin: 0; }
.form-feedback { padding: .85rem 1rem; border-radius: var(--radius-sm); margin-bottom: .5rem; }
.form-feedback--error { background: #fdecec; border: 1px solid #f5c2c2; color: #8a1f1f; }
.contact__alt {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
}
.contact__alt a { font-weight: 600; }

/* ---- Footer ---- */
.site-footer {
  background: var(--primary); color: #d7e2ec;
  padding-block: clamp(2.5rem, 5vw, 4rem); margin-top: 0;
}
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer .brand { color: #fff; }
.site-footer .brand:hover { color: #fff; }
.site-footer .brand__mark { background: #fff; }
.site-footer .brand__mark::before { color: var(--primary); }
.footer-nap { font-style: normal; font-size: .95rem; line-height: 1.7; }
.footer-col h2 { color: #fff; font-size: 1rem; margin-bottom: .6rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; font-size: .95rem; }
.footer-bottom {
  margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .15);
  display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; justify-content: space-between;
  font-size: .85rem; color: #aebecd;
}

/* ---- Simple content pages (legal, danke, 404) ---- */
.page { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.page .container { max-width: 800px; }
.page h1 { margin-bottom: 1.5rem; }
.page h2 { font-size: 1.25rem; margin-top: 2rem; }
.legal pre, .legal-block {
  white-space: pre-wrap; font-family: var(--font); font-size: 1rem;
  line-height: 1.7; color: var(--ink); margin: 0;
}
.back-link { display: inline-block; margin-top: 2.5rem; }
.status-page { text-align: center; padding-block: clamp(3.5rem, 10vw, 7rem); }
.status-page .btn { margin-top: 1.5rem; }
.status-page .icon {
  width: 64px; height: 64px; margin: 0 auto 1.25rem; border-radius: 16px;
  background: var(--bg-soft); border: 1px solid var(--border);
  display: grid; place-items: center; font-size: 2rem; color: var(--accent-600);
}
