:root {
    --accent: #d00000;
    --bg: #f1f2f3;
    --bg-alt: #e6e7e8;
    --text: #222;
}

body {
    margin: 0;
    font-family: Inter, Helvetica, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 2rem;
}

/* Header */
.topbar {
    background: white;
    border-bottom: 1px solid #ddd;
}
.topbar-inner {
    display: flex; justify-content: space-between;
    align-items: center; height: 70px;
}
.branding { font-weight: 600; display: flex; align-items: center; }
.brand-mark { width: 16px; height: 16px; background: var(--accent); margin-right: 8px; }
.nav a { margin-left: 1.5rem; color: #444; text-decoration: none; }
.nav a:hover { color: var(--accent); }

/* Hero */
.hero {
    position: relative; padding: 120px 0;
    background: white;
    border-bottom: 1px solid #ddd;
}
.hero-image {
    position: absolute; inset: 0;
    background: url("images/hero.jpg") center/cover no-repeat;
    opacity: 0.45;
}
.hero-content { position: relative; }
h1 { font-size: 3rem; line-height: 1.1; margin: 0; }
.accent { color: var(--accent); }
.hero-actions { margin-top: 24px; display: flex; gap: 14px; }

/* Buttons */
.btn-accent {
    background: var(--accent); color: #fff; padding: 12px 22px;
    border-radius: 4px; text-decoration: none; font-weight: 600;
}
.btn-accent:hover { opacity: .9; }
.btn-outline {
    padding: 12px 22px; border: 1px solid #aaa;
    border-radius: 4px; text-decoration: none; color: #333;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* Sections */
.section { padding: 80px 0; }
.section.alt { background: var(--bg-alt); }
.two-col { display: grid; gap: 40px; }
@media(min-width: 800px){ .two-col { grid-template-columns: 1fr 1fr; } }
.image-frame img { width: 100%; border-radius: 6px; }

/* Feature cards */
.features { display: grid; gap: 20px; }
@media(min-width: 700px){ .features { grid-template-columns: repeat(3,1fr); } }
.feature-card {
    background: #fff; border: 1px solid #d7d7d7;
    padding: 18px; border-radius: 6px;
}

/* Gallery */
.gallery {
    display: grid; gap: 10px;
    grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
}
.gallery img { width: 100%; border-radius: 4px; }

.center { text-align: center; }

.footer {
    padding: 40px 0; text-align: center;
    color: #666; font-size: .9rem;
}
/* Video Lightbox */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: none; /* default hidden */
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 40px;
}

.modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 1200px;
    width: 100%;
    background: #111;
    border-radius: 8px;
    overflow: hidden;
}

.modal video {
    width: 100%;
    display: block;
}

.close-modal {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 32px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    line-height: 1;
}
.video-player {
    width: 100%;
    max-width: 900px;
    border-radius: 8px;
    background: #000;
    box-shadow: 0 0 24px rgba(0,0,0,0.35);
}
/* Standard: Video ist versteckt */
.trailer-hidden {
    display: none;
}

/* Wenn sichtbar */
.trailer-visible {
    display: inline-block;
    position: relative;
    margin-top: 20px;
}

/* Video-Größe */
.video-player {
    width: 100%;
    max-width: 650px;
    border-radius: 8px;
    background: #000;
    display: block;
    margin: 0 auto;
}

/* Schließen Symbol */
.close-trailer {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}
.close-trailer:hover {
    opacity: 0.85;
}
.hidden {
    display: none !important;
}
/* Sektion */
.section--systems { padding: clamp(2.5rem, 4vw, 4rem) 0; background: #0f1216; }
.section--systems .h2 { margin: 0 0 .5rem; color: #e6e8eb; }
.section--systems .lead { margin: 0 0 1.25rem; color: #aeb3ba; }

/* Grid: 1 / 2 / 3 Spalten */
.sys-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .sys-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px){ .sys-grid { grid-template-columns: repeat(3, 1fr); } }

/* Card */
.sys-card {
  background: linear-gradient(180deg, #12161b 0%, #0d1014 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 1rem;
  transition: border-color .2s ease, transform .2s ease;
}
.sys-card:hover { border-color: rgba(255,255,255,0.12); transform: translateY(-2px); }

.sys-card__header {
  display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem;
}
.sys-card__title { font-size: 1.05rem; font-weight: 600; color: #f0f2f4; margin: 0; }

/* kleine Farbkugel (Akzent) – passe #f3bd00 oder #d00000 an */
.flag-dot {
  width: .6rem; height: .6rem; border-radius: 999px; background: #f3bd00; /* Signalgelb */
  box-shadow: 0 0 0 3px rgba(243,189,0,0.15);
}

/* Chips */
.chip-list { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: .25rem 0 0; padding: 0; }
.chip {
  font-size: .875rem; line-height: 1; padding: .5rem .6rem; border-radius: 999px;
  color: #e9ecf0; background: #1a1f26; border: 1px solid rgba(255,255,255,0.08);
  white-space: nowrap;
}
.chip:hover { border-color: rgba(255,255,255,0.18); }

/* Wenn du eine hellere Seite baust, invertiere die Farben minimal: */
:root.light .section--systems { background: #f5f7f9; }
:root.light .sys-card { background: #ffffff; border-color: rgba(0,0,0,0.08); }
:root.light .sys-card__title { color: #0b0e12; }
:root.light .chip { color: #0b0e12; background: #f1f3f6; border-color: rgba(0,0,0,0.06); }
.flyer-notice {
    margin-top: 20px;
    padding: 0;
    text-align: center;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity .5s ease, transform .5s ease;
}

.flyer-notice.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.flyer-link {
    display: inline-block;
    padding: 6px 14px;
    background: #d00000;
    border-radius: 6px;
    color: #fff;
    font-weight: 600;
}

.flyer-link:hover {
    opacity: .85;
}
