/* ===== SELF-HOSTED FONTS (Roboto + Space Grotesk, latin) ===== */
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/roboto-400.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/roboto-500.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/roboto-700.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/space-grotesk-500.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/space-grotesk-700.woff2") format("woff2"); }

/* ===== TOKENS ===== */
:root {
  --navy: #0A0D31;
  --navy-light: #141840;
  --ink: #14173A;
  --muted: #565B6B;
  --tq: #00BFAB;
  --tq-text: #0A6E62;   /* Türkis als Text auf Weiß (Kontrast ≥ 4.5:1) */
  --tq-dark: #009d8c;
  --steel: #1F3A66;
  --paper: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --line: #E9EBF0;
  --cta-ink: #04211D;
  --font-head: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --font-body: "Roboto", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(20,23,43,.06);
  --shadow-md: 0 6px 24px rgba(20,23,43,.10);
  --shadow-lg: 0 16px 48px rgba(20,23,43,.18);
  --transition: .2s ease;
  --max-width: 1160px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.mono { font-family: var(--font-mono); }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; font-weight: 700; letter-spacing: -.02em; }

a { color: var(--tq-text); }

.skip-link {
  position: absolute; top: -48px; left: 8px;
  background: var(--tq); color: var(--cta-ink);
  padding: 8px 16px; text-decoration: none; border-radius: var(--radius);
  z-index: 1000; font-weight: 700;
}
.skip-link:focus { top: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}

/* ===== TYPOGRAPHY HELPERS ===== */
.section-title { font-size: clamp(1.75rem, 3vw, 2.25rem); color: var(--ink); text-align: center; margin-bottom: .75rem; }
.section-sub { font-size: 1.05rem; color: var(--muted); text-align: center; margin-bottom: 3rem; max-width: 620px; margin-left: auto; margin-right: auto; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-size: 1rem; font-weight: 500;
  padding: .8rem 1.75rem; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn:focus-visible { outline: 3px solid var(--tq); outline-offset: 3px; }
.btn-primary { background: var(--tq); color: var(--cta-ink); border-color: var(--tq); }
.btn-primary:hover { background: var(--tq-dark); border-color: var(--tq-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,191,171,.32); }
.btn-primary:active { transform: translateY(0); }
.btn-outline { background: transparent; color: var(--tq-text); border-color: var(--tq); }
.btn-outline:hover { background: var(--tq); color: var(--cta-ink); transform: translateY(-1px); }
.btn-full { width: 100%; }

/* ===== HEADER ===== */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 1.05rem 1.5rem; }
.wordmark { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; letter-spacing: -.01em; color: var(--ink); text-decoration: none; }
.wordmark-mark { width: 16px; height: 16px; border-radius: 5px; background: var(--tq); position: relative; }
.wordmark-mark::after { content: ""; position: absolute; top: 4px; right: 4px; width: 6px; height: 6px; border-radius: 2px; background: var(--paper); }
.header-login { font-size: .9rem; font-weight: 600; color: var(--ink); text-decoration: none; border: 1.5px solid var(--line); padding: .5rem .95rem; border-radius: 8px; transition: border-color var(--transition), color var(--transition); }
.header-login:hover { border-color: var(--tq); color: var(--tq-text); }

/* ===== HERO ===== */
.hero {
  background: var(--paper);
  background-image:
    linear-gradient(rgba(31,58,102,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,58,102,.045) 1px, transparent 1px);
  background-size: 32px 32px;
  padding: 5.5rem 0 6rem;
}
.hero-inner { display: grid; grid-template-columns: 1.12fr .88fr; gap: 3rem; align-items: center; }
.hero-eyebrow { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--tq-text); margin-bottom: 1.25rem; }
.hero-headline { font-size: clamp(2.25rem, 5vw, 3.25rem); color: var(--ink); margin-bottom: 1.25rem; line-height: 1.05; }
.hero-sub { font-size: 1.125rem; color: var(--muted); margin-bottom: 1.85rem; max-width: 480px; line-height: 1.6; }
.hero-actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.hero-sub-link { color: var(--ink); font-size: .95rem; text-decoration: none; border-bottom: 2px solid var(--tq); padding-bottom: 2px; transition: color var(--transition); }
.hero-sub-link:hover { color: var(--tq-text); }
.hero-proof { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; font-size: .75rem; color: var(--muted); }
.hero-proof .sep { color: var(--tq); }

/* technische Karten-Zeichnung */
.hero-visual { justify-self: end; width: 100%; max-width: 400px; }
.card-draw { position: relative; aspect-ratio: 1.585 / 1; border: 1.5px solid rgba(31,58,102,.30); border-radius: 11px; background: #fbfcfe; padding: 1.5rem; }
.cd-corner { position: absolute; width: 8px; height: 8px; border: 1.5px solid var(--tq); }
.cd-corner.tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.cd-corner.tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.cd-corner.bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.cd-corner.br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.cd-tag { position: absolute; top: -8px; left: 18px; background: #fbfcfe; padding: 0 8px; font-size: .625rem; letter-spacing: .12em; text-transform: uppercase; color: var(--tq-text); }
.cd-avatar { display: block; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(31,58,102,.4); }
.cd-line { display: block; height: 8px; border-radius: 4px; background: rgba(31,58,102,.26); margin-top: .7rem; }
.cd-qr { position: absolute; right: 22px; bottom: 22px; width: 54px; height: 54px; border: 1.5px solid var(--tq); background: repeating-linear-gradient(45deg, rgba(0,191,171,.26) 0 3px, transparent 3px 6px); }
.cd-callouts { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.cd-callouts li { font-size: .7rem; color: var(--tq-text); border: 1px solid var(--line); border-radius: 6px; padding: .25rem .6rem; }
.cd-callouts li::before { content: "▸ "; color: var(--tq); }
.cd-note { margin-top: .65rem; font-size: .68rem; color: var(--muted); }

/* ===== FEATURES ===== */
.features { padding: 5rem 0; background: var(--paper); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.25rem; }
.feature { display: flex; flex-direction: column; }
.feature-num { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--tq-text); }
.feature-rule { width: 30px; height: 2px; background: var(--tq); margin: .7rem 0 1.1rem; }
.feature-icon { color: var(--ink); margin-bottom: .9rem; line-height: 0; }
.feature h3 { font-family: var(--font-head); font-weight: 500; font-size: 1.1rem; margin-bottom: .5rem; color: var(--ink); letter-spacing: -.01em; }
.feature p { font-size: .9rem; color: var(--muted); line-height: 1.6; }

/* ===== SHOWCASE ===== */
.showcase { padding: 5rem 0; background: var(--gray-50); }
.showcase-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.showcase-eyebrow { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--tq-text); margin-bottom: .75rem; }
.showcase-text h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: 1rem; color: var(--ink); }
.showcase-text p { color: var(--muted); margin-bottom: 1.5rem; line-height: 1.7; }
.showcase-visual { display: flex; justify-content: center; }
/* gedrucktes Karten-Mockup */
.card-mock { position: relative; width: 320px; height: 230px; }
.card-mock-back, .card-mock-front { position: absolute; border-radius: 12px; }
.card-mock-back { right: 6px; top: 32px; width: 300px; height: 178px; background: #e9e6db; box-shadow: var(--shadow-sm); transform: rotate(4deg); }
.card-mock-front { right: 20px; top: 4px; width: 300px; height: 184px; background: var(--paper); box-shadow: var(--shadow-lg); overflow: hidden; }
.cm-edge { display: block; height: 8px; background: var(--tq); }
.cm-body { display: block; padding: 1.25rem 1.4rem; position: relative; height: calc(100% - 8px); }
.cm-name { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.cm-role { display: block; font-size: .72rem; color: var(--muted); margin-top: .2rem; }
.cm-div { display: block; height: 1px; background: var(--line); margin: .9rem 0; }
.cm-info { font-size: .66rem; color: #9aa0aa; line-height: 1.7; }
.cm-logo { position: absolute; right: 1.4rem; bottom: 1.1rem; font-family: var(--font-head); font-weight: 700; font-size: .75rem; letter-spacing: .04em; color: var(--tq-text); }

/* ===== PRICING ===== */
.pricing { padding: 5rem 0; background: var(--paper); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: start; }
.pricing-card { background: var(--paper); border-radius: var(--radius-lg); padding: 1.75rem 1.5rem; border: 1.5px solid var(--line); position: relative; display: flex; flex-direction: column; gap: .75rem; transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition); }
.pricing-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pricing-card--recommended { border-color: var(--tq); box-shadow: 0 0 0 1px var(--tq), var(--shadow-md); }
.plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--tq); color: var(--cta-ink); font-size: .7rem; font-weight: 700; letter-spacing: .05em; padding: .25rem .85rem; border-radius: 20px; white-space: nowrap; }
.plan-name { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.plan-limit { font-size: .8rem; color: var(--muted); margin-top: -.5rem; }
.plan-price { display: flex; align-items: baseline; gap: .25rem; margin: .25rem 0; }
.price-amount { font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.price-period { font-size: .875rem; color: var(--muted); }
.plan-price--onprem .price-amount { font-size: 1.4rem; }
.plan-yearly { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.savings { color: var(--tq-text); font-weight: 500; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: .4rem; margin: .5rem 0; flex: 1; }
.plan-features li { font-size: .875rem; color: var(--muted); padding-left: 1.4rem; position: relative; }
.plan-features li::before { content: "✓"; position: absolute; left: 0; color: var(--tq-text); font-weight: 700; }

/* NFC-Add-ons */
.addons { margin-top: 3rem; }
.addons-title { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; color: var(--ink); text-align: center; }
.addons-sub { font-size: .95rem; color: var(--muted); text-align: center; margin: .35rem 0 1.5rem; }
.addons-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.addon-card { background: var(--gray-50); border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 1.35rem 1.4rem; display: flex; flex-direction: column; gap: .35rem; }
.addon-name { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.addon-desc { font-size: .85rem; color: var(--muted); flex: 1; }
.addon-price { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--ink); margin-top: .35rem; font-variant-numeric: tabular-nums; }
.addon-unit { font-family: var(--font-body); font-weight: 400; font-size: .8rem; color: var(--muted); }
.addon-note { font-size: .78rem; color: var(--tq-text); }

/* ===== FAQ ===== */
.faq { padding: 5rem 0; background: var(--gray-50); }
.faq .section-title { margin-bottom: 2.5rem; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-of-type { border-top: 1px solid var(--line); }
.faq-question { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 0; font-family: var(--font-head); font-size: 1.02rem; font-weight: 500; color: var(--ink); cursor: pointer; list-style: none; }
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after { content: "+"; font-size: 1.4rem; font-weight: 300; color: var(--tq-text); flex-shrink: 0; transition: transform var(--transition); }
details[open] .faq-question::after { transform: rotate(45deg); }
.faq-question:focus-visible { outline: 2px solid var(--tq); outline-offset: 2px; border-radius: 4px; }
.faq-answer { padding: 0 0 1.25rem; color: var(--muted); line-height: 1.7; max-width: 760px; }

/* ===== CTA-ANKER (Navy) ===== */
.cta-anchor { background: var(--navy); color: var(--paper); padding: 5rem 0; text-align: center; }
.cta-anchor h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); color: var(--paper); margin-bottom: .75rem; }
.cta-anchor p { color: rgba(255,255,255,.75); font-size: 1.05rem; margin-bottom: 2rem; }

/* ===== SITE FOOTER ===== */
.site-footer { background: var(--navy-light); color: rgba(255,255,255,.55); padding: 1.5rem 0; }
.footer-links { display: flex; gap: 1.5rem; justify-content: center; margin-bottom: .5rem; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,.6); font-size: .875rem; text-decoration: none; transition: color var(--transition); }
.footer-links a:hover { color: var(--tq); }
.footer-copy { text-align: center; font-size: .8rem; }

/* ===== SIGNUP-MODAL (injiziert von signup.js) ===== */
#signup-modal { position: fixed; inset: 0; background: rgba(10,13,49,.6); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px; }
#signup-modal .signup-box { background: var(--paper); border-radius: var(--radius-lg); padding: 28px; max-width: 400px; width: 100%; position: relative; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-lg); }
#signup-modal .signup-box h3 { font-family: var(--font-head); margin: 0; color: var(--ink); }
#signup-modal .signup-box .su-intro { font-size: 14px; color: var(--muted); margin: 0 0 6px; }
#signup-modal .signup-box input { padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 8px; font-size: 15px; font-family: var(--font-body); }
#signup-modal .signup-box input:focus { outline: none; border-color: var(--tq); box-shadow: 0 0 0 3px rgba(0,191,171,.15); }
#signup-modal #su-close { position: absolute; top: 10px; right: 14px; background: none; border: none; font-size: 24px; cursor: pointer; line-height: 1; color: var(--muted); }
#signup-modal #su-msg { font-size: 14px; color: var(--ink); min-height: 18px; margin: 4px 0 0; }

/* ===== RECHTSTEXT-SEITEN (gleiche style.css) ===== */
.legal { max-width: 760px; padding-top: 3rem; padding-bottom: 4rem; }
.legal h1 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-bottom: 1.5rem; color: var(--ink); }
.legal h2 { font-size: 1.25rem; margin: 2rem 0 .75rem; color: var(--ink); }
.legal h3 { font-size: 1.05rem; margin: 1.5rem 0 .5rem; color: var(--ink); }
.legal h4 { font-size: .95rem; margin: 1rem 0 .35rem; color: var(--ink); font-family: var(--font-head); font-weight: 500; }
.legal p { color: var(--muted); line-height: 1.75; margin-bottom: .85rem; }
.legal a { color: var(--tq-text); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hero { padding: 3.5rem 0 4rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { justify-self: start; order: 1; }
  .hero-actions { gap: 1rem; }
  .showcase-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .showcase-visual { order: -1; }
}
@media (max-width: 600px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .header-login { padding: .45rem .8rem; }
}
