/* ============================================
   COPDMonitor – Produktseite
   Inspiriert von Gateway1-Designsprache:
   Roboto, Gold-Akzente, klassisch-elegant
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700&display=swap');

/* --- Design Tokens --- */
:root {
  --color-dark: #323232;
  --color-dark-bg: #2a2a2a;
  --color-accent: #d4a24c;
  --color-accent-hover: #c4922e;
  --color-surface: #ffffff;
  --color-surface-alt: #f7f7f7;
  --color-text: #323232;
  --color-text-light: #888;
  --color-text-white: #fff;
  --color-border: #eee;

  --font-family: 'Roboto', sans-serif;
  --max-width: 1100px;
  --header-height: 80px;

  --transition: 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-family);
  font-size: 14px;
  line-height: 24px;
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-surface);
  letter-spacing: 0.5px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-dark);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent);
}

/* --- Typografie --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  font-weight: 600;
  color: var(--color-dark);
  margin-top: 0;
  margin-bottom: 12px;
  letter-spacing: 1.5px;
}

h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: 2px;
}

h2 {
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.3;
  letter-spacing: 2px;
  padding-top: 8px;
}

h3 {
  font-size: 20px;
  letter-spacing: 2px;
  line-height: 30px;
}

h4 {
  font-size: 16px;
  letter-spacing: 1.5px;
  line-height: 26px;
}

p {
  font-size: 14px;
  font-weight: 300;
  line-height: 24px;
  margin: 0 0 12px 0;
  color: var(--color-text);
  letter-spacing: 0.5px;
}

p.lead, .lead {
  font-size: 16px;
  font-weight: 300;
  line-height: 28px;
}

strong, b {
  font-weight: 600;
}

small {
  font-size: 12px;
  color: var(--color-text-light);
}

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

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0);
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 30px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-text-white);
  transition: opacity var(--transition);
}

.logo:hover {
  opacity: 0.85;
  color: var(--color-text-white);
}

.site-header.scrolled .logo {
  color: var(--color-dark);
}

.site-header.scrolled .logo:hover {
  color: var(--color-accent);
}

.logo-icon {
  width: 36px;
  height: 36px;
  filter: brightness(0) invert(1);
  transition: filter var(--transition);
}

.site-header.scrolled .logo-icon {
  filter: none;
}

.logo span {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1.5px;
}

/* Nav-Links */
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links li a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  transition: color var(--transition);
}

.site-header.scrolled .nav-links li a {
  color: var(--color-dark);
}

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

/* Hamburger (Mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: relative;
  width: 36px;
  height: 36px;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: var(--transition);
  position: absolute;
  left: 7px;
}

.site-header.scrolled .nav-toggle span,
.site-header.scrolled .nav-toggle span::before,
.site-header.scrolled .nav-toggle span::after {
  background: var(--color-dark);
}

.nav-toggle span { top: 50%; transform: translateY(-50%); }
.nav-toggle span::before { content: ''; top: -7px; }
.nav-toggle span::after { content: ''; top: 7px; }

.nav-toggle.active span { background: transparent; }
.nav-toggle.active span::before { top: 0; transform: rotate(45deg); background: #fff; }
.nav-toggle.active span::after { top: 0; transform: rotate(-45deg); background: #fff; }

/* =========================================
   CONTENT SECTIONS
   ========================================= */
.main-content {
  padding-top: var(--header-height);
}

.content-section {
  padding: 80px 0;
}

.content-section:nth-child(even) {
  background: var(--color-surface-alt);
}

/* Scroll-Reveal */
.content-section .container {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.content-section.revealed .container {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   HERO SECTION
   ========================================= */
#hero {
  padding: 140px 0 120px;
  background: var(--color-dark-bg);
  text-align: center;
  position: relative;
}

#hero h1 {
  color: var(--color-text-white);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 600;
  letter-spacing: 3px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

#hero p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 1px;
  line-height: 26px;
  max-width: 580px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

#hero .container {
  opacity: 1;
  transform: none;
}

/* =========================================
   CTA SECTION
   ========================================= */
#cta {
  background: var(--color-dark-bg);
  text-align: center;
}

#cta h2, #cta h3 { color: var(--color-text-white); }
#cta p { color: rgba(255, 255, 255, 0.6); }

/* =========================================
   INHALTS-STYLING (Admin-Content)
   ========================================= */
.content-section ul, .content-section ol {
  margin: 6px 0 16px 18px;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 300;
}

.content-section li {
  margin-bottom: 6px;
  line-height: 24px;
  letter-spacing: 0.5px;
}

/* Separator/Divider */
.separator, .divider {
  height: 1px;
  width: 32px;
  background: var(--color-text-light);
  border: none;
  margin: 8px 0;
}

.separator.color, .divider.color {
  background: var(--color-accent);
}

.separator.center, .divider.center {
  margin-left: auto;
  margin-right: auto;
}

.separator.white, .divider.white {
  background: #fff;
}

#hero .separator, #hero .divider {
  margin: 12px auto;
  background: var(--color-accent);
}

/* Buttons */
.btn-primary, .btn-color-a {
  display: inline-block;
  padding: 12px 22px;
  background: var(--color-accent);
  color: var(--color-text-white);
  font-weight: 700;
  font-size: 12px;
  font-family: var(--font-family);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  letter-spacing: 2px;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary:hover, .btn-color-a:hover {
  background: var(--color-accent-hover);
  color: var(--color-text-white);
}

.btn-outline, .btn-black-line {
  display: inline-block;
  padding: 10px 20px;
  background: none;
  color: var(--color-dark);
  font-weight: 700;
  font-size: 12px;
  font-family: var(--font-family);
  border: 2px solid var(--color-dark);
  border-radius: 2px;
  cursor: pointer;
  letter-spacing: 2px;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-outline:hover, .btn-black-line:hover {
  background: var(--color-dark);
  color: var(--color-text-white);
}

.btn-white-line {
  display: inline-block;
  padding: 10px 20px;
  background: none;
  color: var(--color-text-white);
  font-weight: 700;
  font-size: 12px;
  border: 2px solid #fff;
  border-radius: 2px;
  cursor: pointer;
  letter-spacing: 2px;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-white-line:hover {
  background: #fff;
  color: var(--color-dark);
}

/* Cards & Grids */
.grid-2, .grid-3 {
  display: grid;
  gap: 24px;
  margin: 24px 0;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--color-surface);
  padding: 30px;
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}

.card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* Utility-Klassen (Gateway1-kompatibel) */
.light-color, .light-color h1, .light-color h2, .light-color h3,
.light-color h4, .light-color h5, .light-color h6, .light-color p {
  color: var(--color-text-white);
}

.dark-bg {
  background: var(--color-dark-bg);
  color: var(--color-text-white);
}

.dark-bg h1, .dark-bg h2, .dark-bg h3, .dark-bg h4,
.dark-bg h5, .dark-bg h6, .dark-bg p {
  color: var(--color-text-white);
}

.gray-bg {
  background: var(--color-surface-alt);
}

.white { color: #fff !important; }
.color { color: var(--color-accent) !important; }
.dark { color: var(--color-dark) !important; }
.gray { color: var(--color-text-light); }

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background: var(--color-dark-bg);
  padding: 36px 0;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-container p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  margin: 0;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  letter-spacing: 1px;
  transition: color var(--transition);
}

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

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    background: rgba(42, 42, 42, 0.98);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    transition: right var(--transition);
    z-index: 999;
  }

  .nav-links.open { right: 0; }
  .nav-links.open li a { color: rgba(255, 255, 255, 0.85); }
  .nav-links.open li a:hover { color: var(--color-accent); }

  .content-section { padding: 56px 0; }
  #hero { padding: 100px 0 80px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  #hero { padding: 80px 0 64px; }
  .content-section { padding: 40px 0; }
}

/* =========================================
   SPACER & UTILITIES
   ========================================= */
.spacer-15 { width: 100%; height: 15px; }
.spacer-30 { width: 100%; height: 30px; }
.spacer-45 { width: 100%; height: 45px; }
.spacer-60 { width: 100%; height: 60px; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-white { color: #fff; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 32px; }