/* =====================================================
   kuendigung-vorlage-ki.de — Shared Stylesheet
   Design: dark #0a0a0a, white text, blue accent #4f6ef7
   ===================================================== */

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

:root {
  --bg: #0a0a0a;
  --bg-card: #111111;
  --bg-card-hover: #161616;
  --border: #222222;
  --border-focus: #4f6ef7;
  --text: #f0f0f0;
  --text-muted: #888888;
  --text-dim: #cccccc;
  --accent: #4f6ef7;
  --accent-hover: #6b85f9;
  --accent-light: rgba(79, 110, 247, 0.12);
  --success: #22c55e;
  --error: #ef4444;
  --warning: #f59e0b;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-accent: 0 0 32px rgba(79, 110, 247, 0.18);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1100px;
  --transition: 0.2s ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
h4 { font-size: 1rem; }

p { color: var(--text-dim); }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

/* ---- Layout ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: 80px 0; }

/* ---- Navigation ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.nav-logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 600 !important;
  font-size: 0.875rem;
  transition: background var(--transition) !important;
}

.nav-cta:hover { background: var(--accent-hover) !important; color: #fff !important; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(79, 110, 247, 0.35);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79, 110, 247, 0.45);
  color: #fff;
}

.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent-light);
  color: var(--accent-hover);
}

.btn-lg { padding: 16px 36px; font-size: 1.1rem; }
.btn-full { width: 100%; }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ---- Cards ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
}

.card:hover {
  border-color: #333;
  background: var(--bg-card-hover);
}

.card-accent {
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
}

/* ---- Hero ---- */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(79, 110, 247, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-light);
  border: 1px solid rgba(79, 110, 247, 0.3);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 {
  margin-bottom: 20px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 span { color: var(--accent); }

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Trust bar ---- */
.trust-bar {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.trust-item-icon {
  font-size: 1.1rem;
}

/* ---- Module cards (homepage) ---- */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.module-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.module-card:hover {
  border-color: #2a2a2a;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.module-card-featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
}

.module-card-featured::before {
  content: 'Beliebt';
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.module-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: var(--accent-light);
}

.module-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
}

.module-price span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.module-price-free {
  color: var(--success);
}

.module-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.module-features li {
  font-size: 0.875rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}

.module-features li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
}

/* ---- Section headers ---- */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 540px;
}

.section-header {
  margin-bottom: 48px;
}

.section-header.centered {
  text-align: center;
}

.section-header.centered .section-subtitle {
  margin: 0 auto;
}

/* ---- How it works ---- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 30px;
  left: calc(16.66% + 20px);
  right: calc(16.66% + 20px);
  height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 100%);
  opacity: 0.3;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
}

.step-number {
  width: 56px;
  height: 56px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 20px;
}

.step-card h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.step-card p {
  font-size: 0.9rem;
}

/* ---- FAQ ---- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  text-align: left;
  padding: 20px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background var(--transition);
}

.faq-question:hover { background: var(--bg-card-hover); }

.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--accent);
  transition: transform var(--transition);
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.2s ease;
}

.faq-item.open .faq-answer { max-height: 400px; }

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---- Forms ---- */
.form-section {
  padding: 60px 0 80px;
}

.form-wrapper {
  max-width: 700px;
  margin: 0 auto;
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 8px;
}

label .required {
  color: var(--error);
  margin-left: 2px;
}

label .optional {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.8rem;
  margin-left: 4px;
}

input[type="text"],
input[type="email"],
input[type="date"],
select,
textarea {
  width: 100%;
  background: #0f0f0f;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.12);
}

input::placeholder, textarea::placeholder { color: #444; }

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

select option { background: #111; color: var(--text); }

textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

.form-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 28px 0;
}

.form-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* ---- Alerts / Messages ---- */
.alert {
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.95rem;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.alert-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.alert-info {
  background: var(--accent-light);
  border: 1px solid rgba(79, 110, 247, 0.3);
  color: #93a8fb;
}

.hidden { display: none !important; }

/* ---- Loading spinner ---- */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Price badge ---- */
.price-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-light);
  border: 1px solid rgba(79, 110, 247, 0.3);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 24px;
}

/* ---- SEO content block ---- */
.seo-content {
  padding: 60px 0 80px;
}

.seo-content-inner {
  max-width: 820px;
  margin: 0 auto;
}

.seo-content h2 {
  font-size: 1.5rem;
  margin: 48px 0 16px;
  color: var(--text);
}

.seo-content h2:first-child { margin-top: 0; }

.seo-content h3 {
  font-size: 1.15rem;
  margin: 32px 0 12px;
  color: var(--text);
}

.seo-content p {
  margin-bottom: 16px;
  font-size: 0.975rem;
  line-height: 1.75;
  color: var(--text-dim);
}

.seo-content ul, .seo-content ol {
  margin: 12px 0 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.seo-content li {
  font-size: 0.975rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.seo-content strong { color: var(--text); font-weight: 600; }

.seo-info-box {
  background: var(--accent-light);
  border: 1px solid rgba(79, 110, 247, 0.25);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 28px 0;
}

.seo-info-box p {
  margin: 0;
  color: #93a8fb;
  font-size: 0.925rem;
}

.seo-info-box strong { color: #b3c2fc; }

/* ---- Page hero (sub-pages) ---- */
.page-hero {
  padding: 64px 0 52px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -150px;
  left: -100px;
  width: 600px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(79, 110, 247, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid rgba(79, 110, 247, 0.25);
  border-radius: 100px;
  padding: 5px 12px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.page-hero h1 { margin-bottom: 14px; }

.page-hero p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* ---- Footer ---- */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  background: #050505;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--text); }

.footer-disclaimer {
  font-size: 0.8rem;
  color: #555;
  line-height: 1.6;
  padding-top: 16px;
  border-top: 1px solid #161616;
}

.footer-disclaimer strong { color: #666; }

/* ---- Breadcrumb ---- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb-sep { color: #333; }

/* ---- Success page ---- */
.success-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: rgba(34, 197, 94, 0.1);
  border: 2px solid rgba(34, 197, 94, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 28px;
}

.success-page h1 {
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--success);
}

.success-page p {
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto 32px;
}

/* ---- Impressum / Datenschutz ---- */
.legal-page {
  padding: 64px 0 80px;
}

.legal-content {
  max-width: 760px;
  margin: 0 auto;
}

.legal-content h1 {
  margin-bottom: 40px;
  font-size: 2rem;
}

.legal-content h2 {
  font-size: 1.25rem;
  margin: 40px 0 14px;
  color: var(--text);
}

.legal-content h3 {
  font-size: 1.05rem;
  margin: 28px 0 10px;
  color: var(--text-dim);
}

.legal-content p, .legal-content li {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.legal-content ul {
  margin: 10px 0 16px 20px;
}

.legal-content a { color: var(--accent); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .modules-grid { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
  .nav-links { display: none; }
}

@media (max-width: 640px) {
  section { padding: 56px 0; }
  .hero { padding: 72px 0 56px; }
  .form-card { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .trust-bar-inner { gap: 20px; }
}
