/* === Google Fonts === */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap');

/* === Custom Properties === */
:root {
  --bg-base:        #0e0a05;
  --bg-panel:       #1c1408;
  --bg-panel-hover: #241a0a;
  --text-primary:   #e8d5a3;
  --text-muted:     #a08c6a;
  --accent-gold:    #c8961a;
  --accent-copper:  #cd7f32;
  --accent-nixie:   #ff8c00;
  --border-dim:     #3a2a10;
  --border-gold:    #6b4f12;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 18px;
  line-height: 1.65;
}

/* === Typografie === */
h1, h2, h3 { font-family: 'Cinzel', 'Times New Roman', serif; color: var(--accent-gold); }
h1 { font-size: 2.2rem; margin-bottom: 1rem; }
h2 { font-size: 1.6rem; margin: 2rem 0 0.8rem; border-bottom: 1px solid var(--border-dim); padding-bottom: 0.4rem; }
h3 { font-size: 1.15rem; margin: 1.2rem 0 0.4rem; color: var(--accent-copper); }
p { margin-bottom: 1rem; }
a { color: var(--accent-gold); text-decoration: none; }
a:hover { color: var(--accent-nixie); }
strong { color: var(--accent-copper); font-weight: 600; }

/* === Layout === */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
main { padding: 2.5rem 0 4rem; }

/* === Header === */
#site-header {
  background: #080602;
  border-bottom: 2px solid var(--border-gold);
  padding: 1rem 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}
.header-text { text-align: center; }
.site-title {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  color: var(--accent-gold);
  letter-spacing: 0.12em;
  text-shadow: 0 0 20px rgba(200,150,26,0.3);
}
.site-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

/* === Navigation === */
#site-nav {
  background: #100c06;
  border-bottom: 1px solid var(--border-gold);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.nav-inner a {
  display: block;
  padding: 0.75rem 1.3rem;
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-right: 1px solid var(--border-dim);
  transition: background 0.2s, color 0.2s;
}
.nav-inner a:last-child { border-right: none; }
.nav-inner a:hover {
  background: var(--bg-panel-hover);
  color: var(--accent-copper);
}
.nav-inner a.active {
  background: var(--accent-gold);
  color: #0e0a05;
  font-weight: 700;
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-gold);
  color: var(--accent-gold);
  padding: 0.4rem 0.9rem;
  font-size: 1.3rem;
  cursor: pointer;
  margin: 0.5rem auto;
}

/* === Gear Divider === */
.gear-divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 2rem 0;
  color: var(--border-gold);
  font-size: 1rem;
}
.gear-divider::before,
.gear-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-gold), transparent);
}

/* === Panel === */
.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-gold);
  border-radius: 2px;
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
  position: relative;
}
.panel::before { content: '⬤'; color: var(--border-gold); font-size: 0.35rem; position: absolute; top: 0.5rem; left: 0.5rem; }
.panel::after  { content: '⬤'; color: var(--border-gold); font-size: 0.35rem; position: absolute; bottom: 0.5rem; right: 0.5rem; }

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.55rem 1.3rem;
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn:hover {
  background: var(--accent-gold);
  color: var(--bg-base);
  box-shadow: 0 0 14px rgba(200,150,26,0.35);
}
.btn-primary {
  background: var(--accent-gold);
  color: var(--bg-base);
}
.btn-primary:hover {
  background: var(--accent-copper);
  border-color: var(--accent-copper);
  color: var(--bg-base);
}
.btn-group { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* === Warning / Note Box === */
.warning-box {
  background: #1a0d0a;
  border-left: 3px solid var(--accent-nixie);
  padding: 1rem 1.5rem;
  margin: 1rem 0;
  font-size: 0.95rem;
}
.warning-box strong { color: var(--accent-nixie); }
.note-box {
  background: #0e0c08;
  border: 1px solid var(--border-dim);
  padding: 0.9rem 1.3rem;
  margin: 1rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* === Page Title === */
.page-title { padding: 2.5rem 0 0; }
.page-title h1 { font-size: 2rem; }

/* === Footer === */
#site-footer {
  background: #080602;
  border-top: 1px solid var(--border-gold);
  padding: 1.2rem 0;
  text-align: center;
}
.footer-text { font-size: 0.85rem; color: var(--text-muted); letter-spacing: 0.03em; }

/* ===== STARTSEITE ===== */
.hero {
  position: relative;
  height: 70vh;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #1a1008;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(8,6,2,0.35) 0%, rgba(8,6,2,0.75) 100%);
}
.hero-content {
  position: relative;
  text-align: center;
  padding: 2rem;
  max-width: 700px;
}
.hero-title {
  font-family: 'Cinzel', serif;
  font-size: 3.5rem;
  color: var(--accent-gold);
  letter-spacing: 0.15em;
  text-shadow: 0 0 40px rgba(200,150,26,0.55);
  margin-bottom: 0.5rem;
}
.hero-tagline {
  font-style: italic;
  font-size: 1.4rem;
  color: var(--accent-copper);
  margin-bottom: 1.8rem;
}
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
}
.highlight-card h3 { color: var(--accent-nixie); margin-top: 0; }
.highlight-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0; }
.teaser-section { font-size: 1.05rem; }
.teaser-section p:last-child { margin-bottom: 0; }

/* === Responsive === */
@media (max-width: 768px) {
  body { font-size: 16px; }
  .site-title { font-size: 1.3rem; }
  main { padding: 1.5rem 0 3rem; }
  .container { padding: 0 1rem; }
  .nav-toggle { display: block; }
  .nav-inner { display: none; flex-direction: column; }
  .nav-inner.open { display: flex; }
  .nav-inner a { border-right: none; border-bottom: 1px solid var(--border-dim); text-align: center; padding: 0.9rem; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.3rem; }
  .panel { padding: 1rem 1.2rem; }
  .hero { height: 50vh; }
  .hero-title { font-size: 2rem; letter-spacing: 0.08em; }
  .hero-tagline { font-size: 1.1rem; }
  .highlight-grid { grid-template-columns: 1fr; }
}

/* ===== AUFBAU ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
}
.two-col-text h3 { margin-top: 0; }
.pcb-thumbs { display: flex; flex-direction: column; gap: 0.8rem; }
.pcb-thumb {
  width: 100%;
  border: 1px solid var(--border-gold);
  cursor: pointer;
  display: block;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pcb-thumb:hover {
  border-color: var(--accent-copper);
  box-shadow: 0 0 10px rgba(205,127,50,0.3);
}
.pcb-caption {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.3rem;
}
.voltage-diagram {
  background: var(--bg-panel);
  border: 1px solid var(--border-gold);
  border-radius: 2px;
  padding: 2rem;
  text-align: center;
  margin: 1.5rem 0;
  overflow-x: auto;
}
@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; }
}

/* ===== FEATURES ===== */
.werbetext { font-size: 1.05rem; line-height: 1.75; margin-bottom: 2.5rem; }
.feature-groups { display: flex; flex-direction: column; gap: 1.2rem; }
.feature-group-label {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-nixie);
  margin-bottom: 0.7rem;
}
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li {
  padding: 0.35rem 0 0.35rem 1.6rem;
  position: relative;
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.5;
}
.feature-list li::before {
  content: '\203A';
  color: var(--accent-nixie);
  position: absolute;
  left: 0.2rem;
  font-size: 1.3rem;
  line-height: 1.3;
  font-weight: bold;
}

/* ===== GESCHICHTE ===== */
.timeline {
  position: relative;
  padding-left: 2.8rem;
  margin: 2rem 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0.75rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-gold), var(--border-gold));
}
.timeline-item {
  position: relative;
  margin-bottom: 2.8rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.3rem;
  top: 0.45rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-gold);
  border: 3px solid var(--bg-base);
  box-shadow: 0 0 8px rgba(200,150,26,0.5);
}
.timeline-date {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--accent-nixie);
  margin-bottom: 0.2rem;
  text-transform: uppercase;
}
.timeline-title {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}
.timeline-body { font-size: 0.98rem; color: var(--text-muted); }
.timeline-body p { margin-bottom: 0.5rem; }

/* CSS-only Akkordeon */
.akkordeon { margin-top: 0.6rem; }
.akkordeon input[type="checkbox"] { display: none; }
.akkordeon-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 0.6rem 1rem;
  background: #1a1008;
  border: 1px solid var(--border-dim);
  color: var(--text-primary);
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  margin-top: 0.4rem;
  user-select: none;
  transition: background 0.15s;
}
.akkordeon-label:hover { background: var(--bg-panel-hover); }
.akkordeon-arrow {
  color: var(--accent-gold);
  font-size: 0.7rem;
  transition: transform 0.2s;
  display: inline-block;
}
.akkordeon input:checked + .akkordeon-label .akkordeon-arrow { transform: rotate(90deg); }
.akkordeon-content {
  display: none;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border-dim);
  border-top: none;
  background: var(--bg-panel);
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.akkordeon input:checked ~ .akkordeon-content { display: block; }

/* ===== DOKUMENTATION ===== */
.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}
.download-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-gold);
  border-radius: 2px;
  padding: 2rem 1.8rem;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.download-card::before { content: '⬤'; color: var(--border-gold); font-size: 0.35rem; position: absolute; top: 0.5rem; left: 0.5rem; }
.download-card::after  { content: '⬤'; color: var(--border-gold); font-size: 0.35rem; position: absolute; bottom: 0.5rem; right: 0.5rem; }
.download-icon { width: 52px; height: 52px; margin-bottom: 1rem; color: var(--accent-gold); }
.download-title {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  color: var(--accent-gold);
  margin-bottom: 0.7rem;
}
.download-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.55;
  flex: 1;
}
@media (max-width: 768px) { .download-grid { grid-template-columns: 1fr; } }

/* ===== GALERIE ===== */
.gallery-grid {
  columns: 3;
  column-gap: 1rem;
  margin: 2rem 0;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  cursor: pointer;
  display: block;
}
.gallery-item img,
.gallery-item video {
  width: 100%;
  display: block;
  border: 2px solid var(--border-gold);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.gallery-item:hover img {
  border-color: var(--accent-copper);
  box-shadow: 0 0 14px rgba(205,127,50,0.35);
}
.gallery-item.gallery-video {
  cursor: default;
}
.gallery-caption {
  display: block;
  padding: 0.4rem 0.1rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}
/* Lightbox */
.lightbox {
  display: none;
  flex-direction: column;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.93);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-caption {
  max-width: 90vw;
  margin-top: 0.8rem;
  color: var(--accent-gold);
  text-align: center;
  font-size: 0.95rem;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border: 1px solid var(--border-gold);
  display: block;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2.2rem;
  color: var(--accent-gold);
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  padding: 0.2rem 0.5rem;
}
.lightbox-close:hover { color: var(--accent-nixie); }
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.8rem;
  color: var(--accent-gold);
  cursor: pointer;
  background: rgba(14,10,5,0.75);
  border: 1px solid var(--border-gold);
  padding: 0.6rem 0.9rem;
  line-height: 1;
  transition: background 0.2s;
}
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(200,150,26,0.15); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
@media (max-width: 1024px) { .gallery-grid { columns: 2; } }
@media (max-width: 600px)  { .gallery-grid { columns: 1; } }

/* === Code === */
code {
  font-family: 'Courier New', Courier, monospace;
  background: var(--bg-panel);
  color: var(--accent-copper);
  padding: 0.1em 0.35em;
  border: 1px solid var(--border-dim);
  border-radius: 2px;
  font-size: 0.88em;
}

/* ===== SPRACHUMSCHALTER ===== */
#site-nav .container {
  position: relative;
}
.lang-switch {
  position: absolute;
  right: 2rem;
  top: 0.9rem;
  display: flex;
  gap: 0.3rem;
}
.lang-switch button {
  background: none;
  border: 1px solid var(--border-gold);
  color: var(--text-muted);
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lang-switch button:hover {
  background: var(--bg-panel-hover);
  color: var(--accent-copper);
}
.lang-switch button.active {
  background: var(--accent-gold);
  color: #0e0a05;
  font-weight: 700;
}
@media (max-width: 768px) {
  .lang-switch { right: 1rem; top: 0.7rem; }
}
