/* Haupt-Stylesheet für Stiller Horizont */

@import url('./variables.css');
@import url('./components.css');

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  color: var(--color-text-dark);
  line-height: var(--line-height-body);
  background-color: var(--color-bg-white);
}

/* Typografie */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text-dark);
  font-weight: bold;
  margin-bottom: var(--spacing-sm);
  line-height: var(--line-height-heading);
}

h1 {
  font-size: var(--font-size-h1);
}

h2 {
  font-size: var(--font-size-h2);
}

h3 {
  font-size: var(--font-size-h3);
}

p {
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-light);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.8;
}

/* Accessibility: Focus States */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

.btn:focus-visible {
  outline: 3px solid var(--color-bg-white);
  outline-offset: 2px;
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Main Content */
main {
  min-height: calc(100vh - var(--header-height) - 200px);
  padding-top: 0;
  padding-bottom: var(--spacing-xl);
}

/* Sections */
section {
  margin-bottom: var(--spacing-xl);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-md);
  background-color: var(--color-primary);
  color: var(--color-bg-white);
  border: none;
  border-radius: var(--border-radius);
  font-size: var(--font-size-body);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  text-align: center;
  box-shadow: 0 2px 4px rgba(139, 111, 71, 0.2);
}

.btn:hover {
  background-color: var(--color-text-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 111, 71, 0.3);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(139, 111, 71, 0.2);
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-text-dark);
}

/* Lists */
ul {
  list-style: none;
}

ul.checkmarks li::before {
  content: "✓ ";
  color: var(--color-primary);
  font-weight: bold;
  margin-right: var(--spacing-xs);
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-lg {
  margin-top: var(--spacing-lg);
}

.mb-lg {
  margin-bottom: var(--spacing-lg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
  :root {
    --spacing-section: var(--spacing-md);
  }
  
  .container {
    padding: 0 var(--spacing-xs);
  }
  
  main {
    padding-top: 0;
    padding-bottom: var(--spacing-sm);
  }
  
  section {
    margin-bottom: var(--spacing-sm);
    padding: var(--spacing-sm) 0;
  }
  
  h1 {
    font-size: 1.2rem;
    line-height: 1.3;
    margin-bottom: var(--spacing-xs);
  }
  
  h2 {
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: var(--spacing-xs);
  }
  
  h3 {
    font-size: 1rem;
    line-height: 1.3;
    margin-bottom: var(--spacing-xs);
  }
  
  h4 {
    font-size: 0.95rem;
    line-height: 1.3;
  }
  
  p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: var(--spacing-xs);
  }
}

@media (max-width: 480px) {
  .cookie-banner-content {
    padding: var(--spacing-sm);
  }
  
  .cookie-banner-buttons {
    flex-direction: column;
  }
  
  .cookie-banner button,
  .cookie-banner a {
    width: 100%;
    text-align: center;
  }
}

