@import url('Static_Variables.css');
@import url('Layout.css');

/* Basis / Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Open Sans', Calibri, sans-serif;
  background-color: var(--color-surface-0);
  color: var(--color-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Anker/Scroll-Positionen werden um Header-Höhe korrigiert */
html { scroll-padding-top: var(--header-height, 12vh); }

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

a:hover,
a:focus {
  text-decoration: underline;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

/* Design-Variablen (global) */
:root {
  --footer-spacing: 4rem;
  --container-max-width: 1600px;
  --container-width: 80%;

  --spacing-section: 6rem;
  /* Globale Icon-Größe */
  --icon-size: 36px;

  --radius-md: 12px;
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.2);

  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
}

/* Layout nach CSS/Layout.css verschoben */

/* Cookie-Banner */
.cookie-banner {
  position: fixed;
  left: 5%;
  bottom: 20px;
  transform: translateX(-50%);
  width: 90%;

  background-color: rgba(28, 28, 28, 0.9); /* basiert auf --color-primary */
  color: var(--color-secondary);
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);

  display: none;
  flex-direction: column;
  align-items: center;
  font-size: 15px;
  opacity: 0;
  animation: fadeIn 0.5s forwards;
  z-index: 99;
}

.cookie-banner p {
  margin: 0;
  text-align: center;
  line-height: 1.5;
}

.cookie-banner a {
  color: var(--color-accent);
  text-decoration: underline;
}

.cookie-buttons {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

.cookie-button {
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-size: 14px;
  cursor: pointer;
  transition: filter var(--transition-base);
}

.cookie-button.accept {
  background-color: var(--color-accent);
  color: #fff;
}

.cookie-button.accept:hover {
  filter: brightness(0.9);
}

.cookie-button.reject {
  background-color: transparent;
  color: var(--color-secondary);
  border-color: rgba(255, 255, 255, 0.4);
}

.cookie-button.reject:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

/* Animationen */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

