/* ==========================================================================
   Midas v7 – Verbandssoftware fürs Handwerk
   Design-System (statisch, keine externen Fonts/Tracker → DSGVO-freundlich)
   Palette: tiefes Marineblau + Midas-Gold ("goldener Touch")
   ========================================================================== */

:root {
  --navy: #0c1f33;
  --navy-2: #15324f;
  --ink: #1b2836;
  --muted: #56697e;
  --gold: #c1922f;
  --gold-600: #a87c20;
  --gold-700: #8d6717;
  --gold-050: #fbf3e0;
  --gold-100: #f4e6c5;
  --accent: #2f7d8a;
  --accent-050: #e6f3f5;
  --success: #15a36a;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --border: #e4e8f0;
  --shadow-sm: 0 1px 2px rgba(12, 31, 51, .06), 0 2px 8px rgba(12, 31, 51, .05);
  --shadow-md: 0 12px 34px rgba(12, 31, 51, .12);
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { color: var(--navy); line-height: 1.18; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
a { color: var(--gold-700); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 76px 0; }
.section--tight { padding: 52px 0; }
.bg-white { background: var(--surface); }
.bg-navy { background: var(--navy); color: #d6e1ef; }
.bg-soft { background: linear-gradient(180deg, #f2f0e7 0%, var(--bg) 100%); }
.center { text-align: center; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 58ch; }
.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow { display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-700); background: var(--gold-050); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.bg-navy .eyebrow { color: #e7c878; background: rgba(231,200,120,.14); }
.bg-navy h2, .bg-navy h3 { color: #fff; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; font-size: 1rem; padding: 13px 22px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; transition: transform .08s ease, background .15s ease, box-shadow .15s ease; text-decoration: none; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: linear-gradient(135deg, var(--gold) 0%, var(--gold-600) 100%); color: #20160a; box-shadow: 0 6px 16px rgba(168,124,32,.28); }
.btn--primary:hover { background: linear-gradient(135deg, var(--gold-600) 0%, var(--gold-700) 100%); color: #20160a; }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--border); }
.btn--ghost:hover { background: #fff; border-color: #cdd8e6; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--gold-050); color: var(--gold-700); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-2); color: #fff; }
.btn--lg { padding: 16px 28px; font-size: 1.06rem; }

/* Header / Nav */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy); font-size: 1.2rem; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 32px; height: 32px; flex: 0 0 auto; }
.brand b { color: var(--gold-700); font-weight: 800; }
.brand .v { color: var(--gold-700); font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); font-weight: 500; font-size: .98rem; }
.nav-links a:hover { color: var(--gold-700); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-actions .login-link { color: var(--muted); font-weight: 600; font-size: .95rem; }
.nav-actions .login-link:hover { color: var(--navy); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; width: 42px; height: 38px; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--navy); margin: 3px auto; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 70px 0 84px; background: radial-gradient(1100px 520px at 82% -12%, #f6ead0 0%, rgba(246,234,208,0) 60%), var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero h1 .hl { color: var(--gold-700); }
.hero .lead { font-size: 1.26rem; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero-trust { margin-top: 26px; color: var(--muted); font-size: .92rem; display: flex; gap: 18px; flex-wrap: wrap; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }

/* App mockup (browser frame) */
.mockup { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-md); overflow: hidden; }
.mockup-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #f1f3f7; border-bottom: 1px solid var(--border); }
.mockup-bar i { width: 11px; height: 11px; border-radius: 50%; background: #d3d9e2; display: inline-block; }
.mockup-bar i:nth-child(1){ background:#e6a23c; } .mockup-bar i:nth-child(2){ background:#d9c36a; } .mockup-bar i:nth-child(3){ background:#9fb6cf; }
.mockup-bar .url { margin-left: 10px; font-size: .78rem; color: var(--muted); background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 3px 10px; }
.mockup-body { display: grid; grid-template-columns: 130px 1fr; min-height: 290px; }
.mock-side { background: var(--navy); padding: 16px 12px; }
.mock-side .mlogo { color:#fff; font-weight:800; font-size:.9rem; margin-bottom:14px; }
.mock-side .mlogo b { color: var(--gold); }
.mock-side span { display:block; color:#aebfd3; font-size:.78rem; padding:7px 9px; border-radius:7px; margin-bottom:3px; }
.mock-side span.on { background: rgba(193,146,47,.20); color:#f1d79a; font-weight:600; }
.mock-main { padding: 16px 18px; }
.mock-row { display:flex; gap:8px; margin-bottom:8px; align-items:center; }
.mock-pill { height: 26px; border-radius: 6px; background:#eef1f6; flex:1; }
.mock-pill.gold { background: var(--gold-050); }
.mock-pill.short { flex:0 0 80px; }
.mock-table { border:1px solid var(--border); border-radius:8px; overflow:hidden; }
.mock-tr { display:grid; grid-template-columns: 1.4fr 1fr 1fr .7fr; gap:0; border-bottom:1px solid var(--border); }
.mock-tr:last-child{ border-bottom:0; }
.mock-tr.head { background:#f6f8fb; }
.mock-td { padding:8px 10px; font-size:.74rem; color:var(--muted); }
.mock-tr.head .mock-td { color:var(--navy); font-weight:700; }
.mock-badge { display:inline-block; font-size:.66rem; font-weight:700; padding:2px 8px; border-radius:999px; background:var(--gold-050); color:var(--gold-700); }

/* Grid helpers */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); height: 100%; }
.card .ico { width: 46px; height: 46px; border-radius: 11px; background: var(--gold-050); color: var(--gold-700); display: grid; place-items: center; margin-bottom: 16px; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin: 0; }
.card--accent .ico { background: var(--accent-050); color: var(--accent); }
.card .more { display:inline-block; margin-top:12px; font-weight:600; color: var(--gold-700); }

/* Steps (numbered) */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 24px 24px 76px; position: relative; box-shadow: var(--shadow-sm); }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 22px; top: 22px; width: 38px; height: 38px; background: var(--navy); color: #fff; border-radius: 10px; display: grid; place-items: center; font-weight: 800; }
.step h3 { margin-bottom: .3em; }
.step p { color: var(--muted); margin: 0; }

/* Stat row */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.stat { text-align: center; padding: 10px; }
.stat .num { font-size: 2.4rem; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.bg-navy .stat .num { color: var(--gold); }
.bg-soft .stat .num, .bg-white .stat .num { color: var(--navy); }
.stat .lbl { color: #9fb6cf; font-size: .98rem; }
.bg-soft .stat .lbl, .bg-white .stat .lbl { color: var(--muted); }

/* Checklist */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 32px; color: var(--ink); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--success); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat; }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split--reverse .split-media { order: 2; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); border-radius: 20px; padding: 50px; text-align: center; color: #d6e1ef; position: relative; overflow: hidden; }
.cta-band::after { content:""; position:absolute; right:-60px; top:-60px; width:240px; height:240px; border-radius:50%; background: radial-gradient(circle, rgba(193,146,47,.35), transparent 70%); }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: #b9cbe0; margin-left: auto; margin-right: auto; }

/* Forms */
.form-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 30px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .94rem; margin-bottom: 6px; color: var(--navy); }
.field .req { color: var(--gold-700); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
  font: inherit; color: var(--ink); background: #fcfdff; transition: border .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-050); }
.field textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: .86rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-status { padding: 14px 16px; border-radius: 10px; margin-bottom: 18px; display: none; }
.form-status.ok { display: block; background: #e8f7ef; color: #0f7a4f; border: 1px solid #b7e6cd; }
.form-status.err { display: block; background: #fdecec; color: #b3261e; border: 1px solid #f3c2bf; }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy); padding: 14px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--gold-700); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 14px; margin: 0; }

/* Footer */
.site-footer { background: var(--navy); color: #9fb6cf; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h5 { color: #fff; font-size: .92rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 14px; }
.site-footer a { color: #b9cbe0; display: block; padding: 4px 0; font-size: .95rem; }
.site-footer a:hover { color: #fff; }
.footer-brand p { color: #8fa8c2; font-size: .94rem; max-width: 34ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .88rem; color: #7e96b1; }

/* Legal / prose pages */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose p, .prose li { color: var(--ink); }
.prose a { word-break: break-word; }
.prose ul { padding-left: 20px; }

/* Page hero (subpages) */
.page-hero { padding: 56px 0 12px; }
.page-hero .eyebrow { margin-bottom: 12px; }
.anchor { scroll-margin-top: 84px; }

/* Responsive */
@media (max-width: 920px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 34px; }
  .split--reverse .split-media { order: 0; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-links, .nav-actions .btn, .nav-actions .login-link { display: none; }
  .nav-toggle { display: block; }
  .site-header.open .nav-links { display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 4px; background: #fff; border-bottom: 1px solid var(--border); padding: 14px 22px; box-shadow: var(--shadow-md); }
  .site-header.open .nav-links a { padding: 10px 0; width: 100%; }
  .grid-2, .grid-3, .grid-4, .stats, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 54px 0; }
  .cta-band { padding: 34px 22px; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
  .mockup-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn:hover { transform: none; } }
