/* ============================================================
   Notei Website — shared layout & components
   Used by index.html, datenschutz.html and the content pages.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; background: #F7F8FA; color: #1B2430; -webkit-font-smoothing: antialiased; }
input, button, select, textarea { font-family: inherit; }
img, svg { display: block; }
::-webkit-scrollbar { width: 6px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: rgba(27,36,48,0.15); border-radius: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid #D6B24A; outline-offset: 3px; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 780px; }
section { padding: 96px 0; }
.bg-light { background: #F7F8FA; }
.bg-white { background: #fff; }
.bg-dark { background: #1B2430; }

/* ---------- Navigation ---------- */
.site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background 200ms ease, box-shadow 200ms ease; }
.site-nav.scrolled, .site-nav.solid { background: rgba(17,24,32,0.96); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(255,255,255,0.06); }
.site-nav.solid { position: sticky; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 36px; width: auto; }
.brand span { font-size: 18px; font-weight: 700; color: #F7F8FA; letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-anchor { color: #F7F8FA; font-size: 14px; font-weight: 500; text-decoration: none; opacity: 0.8; transition: opacity 150ms; }
.nav-anchor:hover { opacity: 1; }

/* ---------- Buttons & labels ---------- */
.btn-primary { display: inline-flex; align-items: center; gap: 8px; background: #D6B24A; color: #1B2430; font-weight: 600; font-size: 15px; padding: 12px 24px; border-radius: 6px; border: none; cursor: pointer; transition: background 150ms, transform 100ms; text-decoration: none; }
.btn-primary:hover { background: #C49A2E; }
.btn-primary:active { transform: scale(0.98); }
.btn-primary[disabled] { opacity: 0.7; cursor: default; }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: #F7F8FA; font-weight: 500; font-size: 15px; padding: 11px 24px; border-radius: 6px; border: 1.5px solid rgba(255,255,255,0.2); cursor: pointer; transition: border-color 150ms, background 150ms; text-decoration: none; }
.btn-ghost:hover { border-color: rgba(255,255,255,0.45); background: rgba(255,255,255,0.06); }

.section-label { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #D6B24A; margin-bottom: 12px; }
.section-label-dark { color: #C49A2E; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-title { font-size: clamp(28px,4vw,42px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; }
.section-title.on-dark { color: #F7F8FA; }
.section-sub { font-size: 17px; color: #6E7B8C; max-width: 520px; margin: 16px auto 0; line-height: 1.6; }

/* ---------- Hero ---------- */
.hero { background: #1B2430; min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; padding: 120px 0 80px; }
.hero-deco { position: absolute; pointer-events: none; }
.hero-inner { position: relative; text-align: center; max-width: 780px; margin: 0 auto; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(214,178,74,0.12); border: 1px solid rgba(214,178,74,0.25); border-radius: 20px; padding: 6px 14px; margin-bottom: 32px; font-size: 12px; font-weight: 600; color: #D6B24A; letter-spacing: 0.06em; text-transform: uppercase; }
.hero-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #D6B24A; }
.hero h1 { font-size: clamp(40px,6vw,72px); font-weight: 800; color: #F7F8FA; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 24px; }
.accent { color: #D6B24A; }
.hero-lead { font-size: 18px; color: #9AA3B0; line-height: 1.65; max-width: 580px; margin: 0 auto 40px; }
.btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 20px; font-size: 13px; color: #6E7B8C; }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { background: #fff; border-radius: 12px; padding: 28px; box-shadow: 0 2px 12px rgba(27,36,48,0.07); border: 1px solid #EEF0F3; transition: box-shadow 200ms, transform 200ms; }
.feature-card:hover { box-shadow: 0 6px 24px rgba(27,36,48,0.11); transform: translateY(-2px); }
.feature-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: #6E7B8C; line-height: 1.6; }
.feature-icon { width: 44px; height: 44px; background: rgba(214,178,74,0.12); color: #C49A2E; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }

/* ---------- Steps ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; position: relative; }
.steps-line { position: absolute; top: 20px; left: 16.67%; right: 16.67%; height: 1px; background: rgba(214,178,74,0.2); z-index: 0; }
.step { position: relative; z-index: 1; }
.step-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.step-head::after { content: ''; height: 1px; flex: 1; background: rgba(255,255,255,0.06); }
.step-num { width: 40px; height: 40px; border-radius: 50%; background: #232f3e; border: 1px solid rgba(214,178,74,0.35); color: #D6B24A; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; flex-shrink: 0; }
.step h3 { font-size: 18px; font-weight: 600; color: #F7F8FA; margin-bottom: 10px; line-height: 1.3; }
.step p { font-size: 14px; color: #6E7B8C; line-height: 1.65; }
.center-cta { text-align: center; margin-top: 56px; }

/* ---------- Guides (links to content pages) ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.guide-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #EEF0F3; border-radius: 12px; padding: 28px; text-decoration: none; color: inherit; transition: border-color 200ms, box-shadow 200ms, transform 200ms; }
.guide-card:hover { border-color: rgba(214,178,74,0.5); box-shadow: 0 6px 24px rgba(27,36,48,0.08); transform: translateY(-2px); }
.guide-kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #C49A2E; margin-bottom: 10px; }
.guide-card h3 { font-size: 18px; font-weight: 700; line-height: 1.3; margin-bottom: 10px; }
.guide-card p { font-size: 14px; color: #6E7B8C; line-height: 1.6; flex: 1; }
.guide-more { margin-top: 18px; font-size: 14px; font-weight: 600; color: #1B2430; }
.guide-card:hover .guide-more { color: #C49A2E; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 760px; margin: 0 auto; }
.team-card { background: #fff; border-radius: 12px; padding: 32px; box-shadow: 0 2px 12px rgba(27,36,48,0.07); border: 1px solid #EEF0F3; text-align: center; }
.team-photo { width: 200px; height: 200px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 12px rgba(27,36,48,0.10); margin: 0 auto 20px; object-fit: cover; object-position: center top; }
.team-name { font-size: 19px; font-weight: 700; margin-bottom: 4px; }
.team-role { font-size: 13px; color: #D6B24A; font-weight: 600; margin-bottom: 14px; letter-spacing: 0.02em; }
.team-card p { font-size: 14px; color: #6E7B8C; line-height: 1.65; text-align: left; }

/* ---------- FAQ (native <details>) ---------- */
.faq-item { border-bottom: 1px solid #EEF0F3; }
.faq-item summary { list-style: none; padding: 20px 0; font-size: 16px; font-weight: 600; color: #1B2430; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: #C49A2E; }
.faq-chevron { transition: transform 200ms; flex-shrink: 0; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-a { animation: faqIn 200ms ease; font-size: 15px; line-height: 1.65; color: #4E5A69; padding-bottom: 20px; max-width: 700px; }
.faq-a a { color: #A07D20; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-lead { font-size: 17px; color: #6E7B8C; line-height: 1.65; margin: 20px 0 36px; }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.check-list li { display: flex; gap: 12px; font-size: 15px; color: #9AA3B0; }
.check-list li::before { content: '✓'; color: #D6B24A; font-weight: 700; flex-shrink: 0; }
.form-card { background: #232f3e; border-radius: 16px; padding: 36px; border: 1px solid rgba(255,255,255,0.08); }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 13px; font-weight: 500; color: #9AA3B0; }
.form-label .req { color: #D6B24A; }
.form-input { padding: 11px 14px; border: 1.5px solid rgba(255,255,255,0.1); border-radius: 6px; font-size: 15px; color: #F7F8FA; background: #1B2430; outline: none; transition: border-color 150ms; }
.form-input:focus { border-color: #D6B24A; }
textarea.form-input { resize: vertical; min-height: 80px; }
.contact-form .btn-primary { width: 100%; justify-content: center; }
.form-error { font-size: 13px; color: #F8CACA; text-align: center; line-height: 1.5; }
.form-note { font-size: 12px; color: #6E7B8C; text-align: center; line-height: 1.5; }
.form-note a { color: #9AA3B0; }
.form-success { text-align: center; padding: 40px 20px; }
.form-success .tick { width: 56px; height: 56px; border-radius: 50%; background: rgba(214,178,74,0.15); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 24px; color: #D6B24A; }
.form-success h3 { font-size: 20px; font-weight: 700; color: #F7F8FA; margin-bottom: 10px; }
.form-success p { font-size: 15px; color: #6E7B8C; line-height: 1.6; }
[hidden] { display: none !important; }

/* ---------- Content pages (guides, Datenschutz) ---------- */
.page-hero { background: #1B2430; padding: 72px 0 64px; }
.page-hero h1 { font-size: clamp(32px,5vw,52px); font-weight: 800; color: #F7F8FA; letter-spacing: -0.03em; line-height: 1.12; margin-bottom: 18px; }
.page-hero .lead { font-size: 18px; color: #9AA3B0; line-height: 1.65; max-width: 640px; }
.page-meta { font-size: 13px; color: #6E7B8C; margin-top: 20px; }
.breadcrumb { font-size: 13px; color: #6E7B8C; margin-bottom: 28px; }
.breadcrumb a { color: #9AA3B0; text-decoration: none; }
.breadcrumb a:hover { color: #F7F8FA; }

.article { background: #fff; padding: 72px 0 88px; }
.prose { max-width: 720px; }
.prose h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; margin: 48px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; font-weight: 600; line-height: 1.35; margin: 32px 0 10px; }
.prose p, .prose li { font-size: 16px; line-height: 1.75; color: #3A4452; }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { margin: 0 0 20px 22px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: #C49A2E; }
.prose strong { color: #1B2430; }
.prose a { color: #A07D20; text-underline-offset: 2px; }
.prose a:hover { color: #7C5F16; }
.callout { background: #FBF6E3; border-left: 3px solid #D6B24A; border-radius: 0 8px 8px 0; padding: 18px 22px; margin: 28px 0; }
.callout p:last-child { margin-bottom: 0; }
.todo { background: #FEF3C7; color: #92400E; font-weight: 600; padding: 1px 6px; border-radius: 4px; }
.draft-notice { background: #FFFBEB; border: 1px solid rgba(245,158,11,0.35); color: #92400E; border-radius: 8px; padding: 14px 18px; font-size: 14px; line-height: 1.6; margin-bottom: 40px; }

.cta-band { background: #1B2430; padding: 72px 0; text-align: center; }
.cta-band h2 { font-size: clamp(26px,3.5vw,36px); font-weight: 700; color: #F7F8FA; letter-spacing: -0.025em; margin-bottom: 14px; }
.cta-band p { font-size: 17px; color: #9AA3B0; max-width: 560px; margin: 0 auto 32px; line-height: 1.6; }

.related { background: #F7F8FA; padding: 72px 0; }
.related h2 { font-size: 22px; font-weight: 700; margin-bottom: 24px; }

/* ---------- Product video / screenshot (assets/video.js) ---------- */
.media-frame { position: relative; }
.media-frame img, .media-frame video { display: block; width: 100%; height: auto; }
.media-frame.portrait { width: 100%; max-width: 320px; margin: 0 auto; background: #0B1017; border: 10px solid #0B1017; border-radius: 40px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 30px 80px rgba(0,0,0,0.4); }
.media-frame.portrait video, .media-frame.portrait img { border-radius: 30px; aspect-ratio: 9 / 16; object-fit: cover; }
.media-frame.portrait > [aria-hidden="true"] { display: none; }
.media-toggle { position: absolute; right: 14px; bottom: 14px; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(17,24,32,0.72); color: #F7F8FA; border: 1px solid rgba(255,255,255,0.22); cursor: pointer; backdrop-filter: blur(6px); transition: background 150ms, transform 100ms; }
.media-toggle:hover { background: rgba(17,24,32,0.9); }
.media-toggle:active { transform: scale(0.95); }
.media-frame.is-paused .media-toggle { width: 56px; height: 56px; right: 50%; bottom: 50%; transform: translate(50%, 50%); background: #D6B24A; color: #1B2430; border: none; }
.media-frame.is-paused .media-toggle svg { width: 22px; height: 22px; margin-left: 3px; }

/* ---------- Footer ---------- */
.site-footer { background: #111820; padding: 56px 0 28px; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.footer-brand img { height: 32px; width: auto; opacity: 0.85; margin-bottom: 14px; }
.footer-brand p { font-size: 13px; color: #6E7B8C; line-height: 1.6; max-width: 260px; }
.footer-col h4 { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #9AA3B0; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: #6E7B8C; text-decoration: none; transition: color 150ms; }
.footer-col a:hover { color: #F7F8FA; }
.footer-bottom { padding-top: 24px; font-size: 13px; color: #4E5A69; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .container { padding: 0 20px; }
  section { padding: 72px 0; }
  .nav-links { gap: 14px; }
  .feature-grid, .steps-grid, .guide-grid, .team-grid { grid-template-columns: 1fr; }
  .steps-line { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav-inner { height: 58px; }
  .nav-anchor { display: none; }
  .feature-card { padding: 22px; }
  .form-card { padding: 24px; }
  .page-hero { padding: 48px 0 44px; }
  .article { padding: 48px 0 64px; }
}
