/* Shared styles: reset, header/nav, footer, language switch, cookie banner.
   Used by every page (index.html, impressum.html) so header/footer/banner stay in sync. */

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

:root {
  --orange: #E8621A;
  --orange-light: #FFF0E8;
  --orange-dark: #B84D10;
  --yellow: #F5C842;
  --teal: #1D9E75;
  --teal-light: #E1F5EE;
  --dark: #1A1A1A;
  --mid: #555;
  --light-bg: #FFFDF8;
  --card-bg: #FFFFFF;
  --border: rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--light-bg);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, .logo { font-family: 'Baloo 2', cursive; }

/* NAV */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: white;
  border-bottom: 1.5px solid var(--border);
  box-shadow: 0 1px 0 var(--border);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo { font-size: 1.6rem; font-weight: 800; color: var(--orange); letter-spacing: -0.5px; text-decoration: none; }
.logo span { color: var(--dark); }

nav a { text-decoration: none; color: var(--mid); font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
nav a:hover { color: var(--orange); }

nav .nav-cta {
  background: var(--orange); color: white; padding: 0.5rem 1.2rem;
  border-radius: 50px; font-size: 0.9rem; font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}
nav .nav-cta:hover { background: var(--orange-dark); transform: translateY(-1px); }
nav .nav-links { display: flex; align-items: center; gap: 2rem; }

/* LANGUAGE SWITCH */
.lang-toggle {
  background: none;
  border: 1.5px solid var(--border);
  color: var(--mid);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s;
}
.lang-toggle:hover { border-color: var(--orange); color: var(--orange); }

.mobile-menu .lang-toggle-mobile {
  margin-top: 0.75rem;
  background: none;
  border: 1.5px solid var(--border);
  color: var(--dark);
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  border-bottom: 1.5px solid var(--border);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* MOBILE MENU */
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 0.5rem 2rem 1.5rem;
  gap: 0;
  border-top: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--dark);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--orange); }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu .nav-cta {
  margin-top: 0.75rem;
  background: var(--orange);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  text-align: center;
  font-size: 1rem;
  border-bottom: none;
}

/* FOOTER */
footer { background: #111; padding: 1.5rem 2rem; text-align: center; color: rgba(255,255,255,0.35); font-size: 0.85rem; }
footer .logo { font-size: 1.2rem; color: var(--orange); display: block; margin-bottom: 0.5rem; }
footer .footer-links { margin-top: 0.6rem; font-size: 0.8rem; }
footer .footer-links a, footer .footer-links button.link-btn {
  color: rgba(255,255,255,0.45); text-decoration: none; margin: 0 0.5rem;
  background: none; border: none; font-size: 0.8rem; cursor: pointer; font-family: 'DM Sans', sans-serif;
}
footer .footer-links a:hover, footer .footer-links button.link-btn:hover { color: rgba(255,255,255,0.75); }

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: -100%;
  z-index: 1000;
  background: white;
  border-top: 1.5px solid var(--border);
  box-shadow: 0 -8px 32px rgba(0,0,0,0.12);
  transition: bottom 0.35s ease;
  padding: 1.3rem 1.5rem;
}
.cookie-banner.open { bottom: 0; }

.cookie-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cookie-banner-text { flex: 1; min-width: 240px; }
.cookie-banner-text strong { display: block; font-family: 'Baloo 2', cursive; font-size: 1.05rem; margin-bottom: 0.3rem; }
.cookie-banner-text p { font-size: 0.88rem; color: var(--mid); max-width: 640px; }

.cookie-banner-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }

.cookie-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.cookie-btn-primary { background: var(--orange); color: white; border: none; }
.cookie-btn-primary:hover { background: var(--orange-dark); }
.cookie-btn-outline { background: transparent; color: var(--dark); border: 1.5px solid var(--border); }
.cookie-btn-outline:hover { border-color: var(--orange); color: var(--orange); }
.cookie-btn-ghost { background: none; border: none; color: var(--mid); text-decoration: underline; padding: 0.6rem 0.4rem; }
.cookie-btn-ghost:hover { color: var(--orange); }

/* COOKIE PREFERENCES MODAL */
.cookie-modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(0,0,0,0.45);
  align-items: center; justify-content: center;
  padding: 1.5rem;
}
.cookie-modal-overlay.open { display: flex; }

.cookie-modal {
  background: white;
  border-radius: 20px;
  max-width: 520px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2rem;
}
.cookie-modal h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }
.cookie-modal > p { color: var(--mid); font-size: 0.92rem; margin-bottom: 1.5rem; line-height: 1.6; }

.cookie-category { border-top: 1px solid var(--border); padding: 1rem 0; }
.cookie-category-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.4rem; }
.cookie-category-head span:first-child { font-weight: 700; font-size: 0.98rem; }
.cookie-category p { font-size: 0.85rem; color: var(--mid); line-height: 1.5; }

.cookie-toggle-locked {
  font-size: 0.72rem; font-weight: 700; color: var(--teal);
  background: var(--teal-light); padding: 0.25rem 0.6rem; border-radius: 20px;
  text-transform: uppercase; letter-spacing: 0.5px;
}

.cookie-switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.cookie-switch input { opacity: 0; width: 0; height: 0; }
.cookie-slider {
  position: absolute; cursor: pointer; inset: 0;
  background-color: #ccc; transition: 0.2s; border-radius: 24px;
}
.cookie-slider::before {
  position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px;
  background-color: white; transition: 0.2s; border-radius: 50%;
}
.cookie-switch input:checked + .cookie-slider { background-color: var(--teal); }
.cookie-switch input:checked + .cookie-slider::before { transform: translateX(18px); }

.cookie-modal-actions { display: flex; justify-content: flex-end; gap: 0.7rem; margin-top: 1.5rem; }

@media (max-width: 768px) {
  nav .nav-links { display: none; }
  .hamburger { display: flex; }

  .cookie-banner-inner { flex-direction: column; align-items: stretch; }
  .cookie-banner-actions { justify-content: stretch; }
  .cookie-banner-actions .cookie-btn { flex: 1; }
}
