/* =============================================================================
   BEA-SYSTEM BASE STYLES
   base.css - Reset, Fonts, Typografie, Layout-Grundlagen
   ============================================================================= */

/* ---------------------------------------------------------------------------
   FONTS - Lokale Einbindung (DSGVO-konform)
   --------------------------------------------------------------------------- */
@font-face {
  font-family: 'Montserrat';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/montserrat/montserrat-v26-latin-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/montserrat/montserrat-v26-latin-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/montserrat/montserrat-v26-latin-700.woff2') format('woff2');
}

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

@font-face {
  font-family: 'Inter';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/inter/inter-v20-latin-500.woff2') format('woff2');
}

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

/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  scroll-behavior: smooth;
}

/* Remove list styles */
ul,
ol {
  list-style: none;
}

/* Set core body defaults */
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-relaxed);
  background: var(--dark);
  color: var(--white);
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Bilder und Medien */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Form-Elemente erben Font-Styles */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* Textareas ohne resize */
textarea {
  resize: vertical;
}

/* Buttons ohne Default-Styling */
button {
  cursor: pointer;
  background: none;
  border: none;
}

/* Links ohne Unterstreichung */
a {
  color: var(--tuerkis);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--tuerkis-light);
}

/* Focus-Styles für Accessibility */
:focus-visible {
  outline: 2px solid var(--tuerkis);
  outline-offset: 2px;
}

/* Remove animations for people who prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------------------------------------------------------------------------
   TYPOGRAFIE
   --------------------------------------------------------------------------- */

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
  color: var(--white);
  text-wrap: balance;
}

h1 {
  font-size: var(--text-h1);
  letter-spacing: var(--tracking-tight);
  line-height: 0.95;
}

h2 {
  font-size: var(--text-h2);
  margin-bottom: var(--space-4);
}

h3 {
  font-size: var(--text-h3);
  margin-bottom: var(--space-3);
}

h4 {
  font-size: var(--text-h4);
  margin-bottom: var(--space-2);
}

/* Paragraphs */
p {
  margin-bottom: var(--space-4);
  color: var(--gray-light);
  line-height: var(--leading-loose);
}

/* Letzter Paragraph ohne Margin */
p:last-child {
  margin-bottom: 0;
}

/* Strong/Bold */
strong,
b {
  font-weight: var(--weight-semibold);
  color: var(--white);
}

/* Small Text */
small {
  font-size: var(--text-sm);
  color: var(--gray);
}

/* ---------------------------------------------------------------------------
   LAYOUT - Container
   --------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-8);
  padding-right: var(--space-8);
}

.container-sm {
  max-width: var(--container-sm);
}

.container-md {
  max-width: var(--container-md);
}

.container-lg {
  max-width: var(--container-lg);
}

/* Responsive Container Padding */
@media (max-width: 768px) {
  .container {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }
}

/* ---------------------------------------------------------------------------
   LAYOUT - Page Wrapper (für sticky Footer)
   --------------------------------------------------------------------------- */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-wrapper main {
  flex: 1;
}

/* ---------------------------------------------------------------------------
   LAYOUT - Sections
   --------------------------------------------------------------------------- */
section {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

@media (max-width: 768px) {
  section {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
  }
}

/* ---------------------------------------------------------------------------
   COMMON SECTION HEADER
   --------------------------------------------------------------------------- */
.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-header h2 {
  margin-bottom: var(--space-2);
}

.section-header p {
  font-size: var(--text-lg);
  color: var(--gray);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------------------------------------------------------------------------
   HIGHLIGHT TEXT
   --------------------------------------------------------------------------- */
.text-tuerkis {
  color: var(--tuerkis);
}

.text-orange {
  color: var(--orange);
}

.text-gray {
  color: var(--gray-light);
}

/* ---------------------------------------------------------------------------
   SELECTION STYLING
   --------------------------------------------------------------------------- */
::selection {
  background: var(--tuerkis);
  color: var(--dark);
}

::-moz-selection {
  background: var(--tuerkis);
  color: var(--dark);
}

/* ---------------------------------------------------------------------------
   SCROLLBAR STYLING (Webkit)
   --------------------------------------------------------------------------- */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--dark);
}

::-webkit-scrollbar-thumb {
  background: var(--dark-lighter);
  border-radius: var(--radius-full);
  border: 2px solid var(--dark);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-dark);
}

/* Firefox Scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--dark-lighter) var(--dark);
}

/* ---------------------------------------------------------------------------
   VISUALLY HIDDEN (für Accessibility)
   --------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------------------------
   SKIP LINK (für Accessibility)
   --------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--tuerkis);
  color: var(--dark);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-weight: var(--weight-semibold);
  z-index: var(--z-toast);
  transition: top var(--transition-base);
}

.skip-link:focus {
  top: var(--space-4);
}