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

/* ===== CUSTOM PROPERTIES ===== */
:root {
  --color-primary: #2D2D2D;
  --color-accent: #E8531E;
  --color-accent-hover: #C4441A;
  --color-bg-cool: #EAF0F5;
  --color-bg-dark: #1A1A1A;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-border: #E0E0E0;
  --color-white: #FFFFFF;
  --max-width: 1200px;
}

/* ===== FONTS ===== */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ===== BODY ===== */
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

/* ===== TYPOGRAPHY ===== */
h1 { font-size: 2.5rem; font-weight: 700; color: var(--color-primary); }
h2 { font-size: 1.75rem; font-weight: 600; color: var(--color-primary); }
h3 { font-size: 1.25rem; font-weight: 600; color: var(--color-primary); }

a {
  color: var(--color-accent);
  text-decoration: underline;
  transition: color 0.2s;
}
a:hover,
a:focus-visible {
  color: var(--color-accent-hover);
}

/* ===== CONTAINER ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== HEADER / NAV ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
}
.nav__logo img {
  height: 40px;
  width: auto;
}
.nav__menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}
.nav__menu a {
  text-decoration: none;
  color: var(--color-primary);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.2s;
}
.nav__menu a:hover,
.nav__menu a:focus-visible {
  color: var(--color-accent);
}
.nav__toggle {
  display: none;
}

/* Mobile Navigation */
@media (max-width: 767px) {
  .nav__toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
  }
  .nav__toggle-bar {
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    transition: transform 0.3s, opacity 0.3s;
  }
  .nav__menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--color-white);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    gap: 1rem;
  }
  .nav__menu.is-open {
    display: flex;
  }
}

/* ===== SEKTIONEN ===== */
.section {
  padding: 5rem 0;
}
.section--light {
  background: var(--color-white);
}
.section--cool {
  background: var(--color-bg-cool);
}
.section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

/* ===== KONTAKT ===== */
.section p {
  line-height: 1.8;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 2rem 0;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.footer__links {
  display: flex;
  gap: 1.5rem;
}
.footer__links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer__links a:hover {
  color: var(--color-white);
}
.footer__copy {
  font-size: 0.8125rem;
}

/* ===== LEGAL PAGES ===== */
.legal-page {
  padding-top: 6rem;
  padding-bottom: 4rem;
}
.legal-page .container {
  max-width: 800px;
}
.legal-page h1 {
  margin-bottom: 1.5rem;
}
.legal-page h2 {
  font-size: 1.375rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.legal-page p {
  margin-bottom: 1rem;
  line-height: 1.8;
}
.legal-page ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}
.legal-page li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

/* ===== ACCESSIBILITY ===== */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
