/*
Theme Name: Digitaler Notfallkoffer
Theme URI:
Author: Krystian Baumgarten
Author URI:
Description: Minimales One-Page Theme für den Digitalen Notfallkoffer. Landingpage, Download, Impressum und Datenschutz.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: notfallkoffer
*/

/* ── CSS RESET & VARIABLES ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:    #1c1c1a;
  --ink2:   #3a3a36;
  --ink3:   #6b6b64;
  --ink4:   #a8a89f;
  --paper:  #f8f6f0;
  --paper2: #f0ede4;
  --paper3: #e5e1d6;
  --gold:   #8a6f3e;
  --gold2:  #c4a265;
  --gold3:  #e8d4a8;
  --gold4:  #f5ecd6;
  --white:  #ffffff;
  --border: rgba(28,28,26,0.1);
  --radius: 10px;
  --radius2: 16px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
a:hover { color: var(--gold2); }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { font-family: 'Cormorant Garamond', serif; font-weight: 500; line-height: 1.2; }
h1 { font-size: clamp(2.6rem, 5.5vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.3rem; }
p  { color: var(--ink3); line-height: 1.8; }

/* ── LAYOUT ── */
.container     { max-width: 1080px; margin: 0 auto; padding: 0 2rem; }
.container--sm { max-width: 760px;  margin: 0 auto; padding: 0 2rem; }
section        { padding: 5.5rem 0; }

/* ── NAVIGATION ── */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(248,246,240,0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem; max-width: 1080px; margin: 0 auto;
}
.site-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem; font-weight: 500;
  color: var(--ink); text-decoration: none;
  display: flex; align-items: center; gap: 0.6rem;
}
.site-logo-icon {
  width: 28px; height: 28px; background: var(--gold);
  border-radius: 6px; display: flex; align-items: center;
  justify-content: center; font-size: 13px; flex-shrink: 0;
}
.nav-menu { display: flex; align-items: center; gap: 1.5rem; list-style: none; }
.nav-menu a { color: var(--ink3); text-decoration: none; font-size: 0.875rem; transition: color 0.2s; }
.nav-menu a:hover { color: var(--ink); }
.nav-cta {
  background: var(--ink); color: var(--paper) !important;
  padding: 0.5rem 1.25rem; border-radius: 6px;
  font-size: 0.875rem; font-weight: 500;
  text-decoration: none; transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.8; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.75rem; border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif; font-size: 0.9375rem;
  font-weight: 500; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: all 0.18s;
}
.btn-primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-primary:hover { background: var(--ink2); color: var(--paper); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink3); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--gold2); color: var(--gold); }
.btn-gold { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn-gold:hover { background: #7a6035; color: #fff; }

/* ── HERO ── */
#hero {
  padding-top: 9rem; padding-bottom: 5rem;
  position: relative; overflow: hidden;
  background: var(--paper);
}
#hero::before {
  content: '';
  position: absolute; top: -200px; right: -300px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, var(--gold4) 0%, transparent 65%);
  pointer-events: none; z-index: 0;
}
#hero .container { position: relative; z-index: 1; }
.hero-eyebrow {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); font-weight: 500; margin-bottom: 1.25rem;
}
.hero-title { color: var(--ink); margin-bottom: 1.25rem; }
.hero-title em { font-style: italic; color: var(--gold); }
.hero-sub { font-size: 1.05rem; max-width: 540px; margin-bottom: 2.25rem; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.25rem; }
.hero-note { font-size: 0.78rem; color: var(--ink4); display: flex; align-items: center; gap: 6px; }
.hero-note-dot { width: 6px; height: 6px; border-radius: 50%; background: #4caf50; flex-shrink: 0; }

.hero-mockup {
  margin-top: 3.5rem; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius2);
  padding: 1.5rem 2rem; max-width: 660px;
  box-shadow: 0 4px 40px rgba(28,28,26,0.06);
}
.mockup-bar { display: flex; gap: 6px; margin-bottom: 1.25rem; }
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup-dot:nth-child(1) { background: #ff5f57; }
.mockup-dot:nth-child(2) { background: #febc2e; }
.mockup-dot:nth-child(3) { background: #28c840; }
.mockup-steps {
  display: flex; border: 1px solid var(--border);
  border-radius: 6px; overflow: hidden; margin-bottom: 1.25rem;
}
.mockup-step {
  flex: 1; padding: 0.45rem 0.25rem; font-size: 10px; text-align: center;
  color: var(--ink4); border-right: 1px solid var(--border);
  font-family: 'DM Mono', monospace; white-space: nowrap; overflow: hidden;
}
.mockup-step:last-child { border-right: none; }
.mockup-step.active { background: var(--gold4); color: var(--gold); font-weight: 500; }
.mockup-step.done   { background: var(--paper2); color: var(--ink3); }
.mockup-rows { display: flex; flex-direction: column; gap: 0.4rem; }
.mockup-row {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.55rem 0.75rem; background: var(--paper2); border-radius: 6px;
  font-size: 12px; color: var(--ink3);
}
.mockup-row strong { color: var(--ink); font-weight: 500; }

/* ── WHY SECTION ── */
#why { background: var(--white); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.section-label {
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); font-weight: 500; margin-bottom: 0.9rem;
}
.why-title { margin-bottom: 1.5rem; }
.why-text { margin-bottom: 1rem; font-size: 0.9375rem; }
.why-text p { margin-bottom: 1rem; font-size: 0.9375rem; }
.why-cards { display: flex; flex-direction: column; gap: 0.875rem; }
.why-card {
  background: var(--paper2); border: 1px solid var(--border);
  border-radius: var(--radius2); padding: 1.1rem 1.4rem;
  display: flex; align-items: flex-start; gap: 0.9rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.why-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(28,28,26,0.06); }
.why-card-icon {
  width: 38px; height: 38px; border-radius: 9px; background: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0; border: 1px solid var(--border);
}
.why-card-name { font-size: 0.875rem; font-weight: 500; color: var(--ink); margin-bottom: 2px; }
.why-card-desc { font-size: 0.78rem; color: var(--ink4); line-height: 1.5; }

/* ── HOW IT WORKS ── */
#how { background: var(--paper); }
.how-header { text-align: center; margin-bottom: 3.5rem; }
.how-header h2 { margin-bottom: 0.75rem; }
.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.how-step {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius2); padding: 1.75rem;
}
.how-num {
  font-family: 'Cormorant Garamond', serif; font-size: 3rem;
  color: var(--gold3); line-height: 1; margin-bottom: 0.9rem;
}
.how-step h3 { font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 500; margin-bottom: 0.4rem; color: var(--ink); }
.how-step p { font-size: 0.82rem; }

/* ── CONTENTS ── */
#contents { background: var(--white); }
.contents-header { text-align: center; margin-bottom: 3rem; }
.contents-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.content-item {
  display: flex; gap: 1rem; padding: 1.25rem;
  border: 1px solid var(--border); border-radius: var(--radius2);
  align-items: flex-start; background: var(--paper2);
}
.content-num {
  font-family: 'Cormorant Garamond', serif; font-size: 1.4rem;
  color: var(--gold2); font-weight: 400; line-height: 1; flex-shrink: 0;
  min-width: 1.6rem;
}
.content-name { font-size: 0.9rem; font-weight: 500; color: var(--ink); margin-bottom: 2px; }
.content-desc { font-size: 0.78rem; color: var(--ink4); line-height: 1.5; }

/* ── SECURITY ── */
#security { background: var(--ink); }
#security h2 { color: rgba(255,255,255,0.9); margin-bottom: .75rem; }
#security .section-label { color: rgba(255,255,255,0.4); }
.security-sub { color: rgba(255,255,255,0.45); margin-bottom: 3rem; font-size: 0.9375rem; }
.security-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.security-item {
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius2); padding: 1.4rem;
}
.security-item-icon { font-size: 1.4rem; margin-bottom: 0.65rem; }
.security-item h3 { font-family: 'DM Sans', sans-serif; font-size: 0.875rem; font-weight: 500; color: rgba(255,255,255,0.85); margin-bottom: 0.35rem; }
.security-item p { font-size: 0.78rem; color: rgba(255,255,255,0.35); }

/* ── DOWNLOAD ── */
#download { background: var(--paper2); border-top: 1px solid var(--border); }
.download-inner { max-width: 600px; margin: 0 auto; text-align: center; }
.download-inner h2 { margin-bottom: 1rem; }
.download-inner > p { margin-bottom: 2rem; }
.download-file {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius2); padding: 1.5rem 2rem;
  display: flex; align-items: center; gap: 1.25rem;
  margin-bottom: 1.5rem; text-align: left;
}
.download-file-icon { font-size: 2rem; flex-shrink: 0; }
.download-file-name { font-weight: 500; font-size: 0.9375rem; color: var(--ink); margin-bottom: 2px; }
.download-file-meta { font-size: 0.78rem; color: var(--ink4); }
.download-file-btn { margin-left: auto; flex-shrink: 0; }
.download-note { font-size: 0.78rem; color: var(--ink4); margin-top: 1rem; line-height: 1.6; }

/* ── FAQ ── */
#faq { background: var(--white); }
.faq-header { text-align: center; margin-bottom: 2.5rem; }
.faq-list { max-width: 680px; margin: 0 auto; }
details {
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 0.5rem; overflow: hidden;
}
details[open] { border-color: var(--gold2); }
summary {
  padding: 1rem 1.4rem; font-size: 0.9rem; font-weight: 500;
  cursor: pointer; list-style: none; display: flex;
  justify-content: space-between; align-items: center;
  color: var(--ink); user-select: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--gold); font-size: 1.1rem; }
details[open] summary::after { content: '−'; }
.faq-body { padding: 0 1.4rem 1.1rem; font-size: 0.85rem; color: var(--ink3); line-height: 1.8; }

/* ── CONTENT PAGES (Impressum, Datenschutz) ── */
.page-hero {
  padding-top: 8rem; padding-bottom: 2.5rem;
  background: var(--paper); border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 0.5rem; }
.page-hero p { font-size: 0.85rem; color: var(--ink4); }
.page-content { padding: 3rem 0 5rem; background: var(--white); }
.page-content h2 { font-family: 'DM Sans', sans-serif; font-size: 1rem; font-weight: 600; color: var(--ink); margin: 2rem 0 0.5rem; }
.page-content h2:first-child { margin-top: 0; }
.page-content p { font-size: 0.875rem; margin-bottom: 0.75rem; }
.page-content a { color: var(--gold); }
.page-content ul { padding-left: 1.25rem; margin-bottom: 0.75rem; }
.page-content li { font-size: 0.875rem; color: var(--ink3); margin-bottom: 0.25rem; line-height: 1.7; }

/* ── FOOTER ── */
#site-footer {
  background: var(--ink); padding: 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-left { font-size: 0.8rem; color: rgba(255,255,255,0.3); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.8rem; color: rgba(255,255,255,0.35); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: rgba(255,255,255,0.7); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr; gap: 3rem; }
  .how-steps { grid-template-columns: 1fr; }
  .security-items { grid-template-columns: 1fr 1fr; }
  .contents-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  section { padding: 3.5rem 0; }
  .site-nav { padding: 0.75rem 1rem; }
  .nav-menu { display: none; }
  .security-items { grid-template-columns: 1fr; }
  #site-footer { flex-direction: column; align-items: flex-start; }
  .mockup-steps { display: none; }
  .download-file { flex-wrap: wrap; }
  .download-file-btn { margin-left: 0; }
}
