/* --- GLOBAL --- */
:root {
  --accent: #d4b98c;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: "Inter", sans-serif;
  background: #f5f5f5;
  color: #222;
}

a {
  color: var(--accent);
}

/* --- HEADER --- */
header {
  background: url("pictures/backgroundimage_websiteold.jpg") center 10% / cover no-repeat;
  height: 35vh;              /* dynamisch für Desktop */
  min-height: 260px;         /* Mindesthöhe */
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

header h1 {
  color: #f2f2f2;
  text-shadow:
    0 0 12px rgba(0,0,0,0.55),
    0 0 22px rgba(0,0,0,0.45),
    0 4px 14px rgba(0,0,0,0.55);
  padding: 0;
  border-radius: 0;
  backdrop-filter: none;
  z-index: 2;
  position: relative;
}

h2 {
  font-weight: 600;
  letter-spacing: -0.5px;
}

p {
  line-height: 1.65;
  font-size: 1.00rem;
}

.p1 {
  line-height: 1.65;
  font-size: 1rem;
  font-weight: 700;
}

.p2 {
  line-height: 1.65;
  font-size: 1rem;
  font-style: italic;
}

.p3 {
  text-decoration: underline;
}

/* --- NAVIGATION: unten am Header + sticky beim Scrollen --- */
.nav-wrapper {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 999;
}

.nav-bar {
  position: sticky;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0.6rem 1rem;
  margin-top: -18px;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  position: relative;
  z-index: 10;
}

/* Desktop Links */
.nav-links {
  display: flex;
  gap: 1.2rem;
  position: relative;
  z-index: 10;
}

.nav-link {
  color: white;
  text-decoration: none;
  padding: 0.35rem 0.9rem;
  border-radius: 12px;
  transition: background 0.25s ease, color 0.25s ease;
}

.nav-link:hover {
  background: rgba(255,255,255,0.18);
}

.nav-link.active,
.nav-link.active:hover {
  background: var(--accent);
  color: #1b263b;
}

/* --- HAMBURGER (mobile) --- */
.hamburger {
  width: 32px;
  height: 24px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.hamburger span {
  height: 4px;
  background: white;
  border-radius: 2px;
  transition: 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* --- MOBILE DROPDOWN --- */
.nav-dropdown {
  display: none;
  flex-direction: column;
  width: 100%;
  padding: 1.2rem 1.5rem;
  background: rgba(13, 27, 42, 0.75);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
}

.nav-dropdown.open {
  display: flex;
}

.nav-dropdown a {
  color: white;
  text-decoration: none;
  font-size: 1.3rem;
  padding: 0.6rem 0;
}

/* --- MAIN --- */
main {
  padding: 2rem;
  background: linear-gradient(180deg, #f7f9fc 0%, #eef1f5 100%);
}

.hero-glass {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-radius: 12px;
  padding: 2.2rem;
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
  max-width: 900px;
  margin: 20px auto 2rem auto;
}

.hero-glass p {
  text-align: justify;
  text-justify: inter-word;
}

.glass-card {
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.32);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  max-width: 900px;
  margin: 2rem auto;
  transition: 0.25s ease;
}

.glass-card p {
  text-align: justify;
  text-justify: inter-word;
}

.glass-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.section-title {
  border-left: 5px solid var(--accent);
  padding-left: 1rem;
  margin-bottom: 1.2rem;
  font-size: 1.8rem;
  color: #1b263b;
}

/* --- FOOTER --- */
footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 110px;
  background: rgba(27, 38, 59, 0.25);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateY(100%);
  opacity: 0;
  transition: 0.35s ease;
}

footer.footer-show {
  transform: translateY(0);
  opacity: 1;
}

footer .footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 0.6rem;
}

footer .footer-links a {
  color: white;
  text-decoration: none;
  transition: 0.2s ease;
}

footer .footer-links a:hover {
  color: blue;
  text-decoration: underline;
}

.insta-icon {
  width: 18px;
  height: 18px;
  margin-right: 0px;
  vertical-align: -2px;
}

footer p {
  margin: 0;
  margin-top: 0.4rem;
  padding: 0;
}

/* Social-Bereich unten rechts */
.footer-social {
  position: absolute;
  left: 2rem;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.footer-social .follow-us {
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  text-decoration: underline;
}

.footer-social .instagram-link {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  margin-top: 0.25rem;
  transition: 0.2s ease;
}

.footer-social .instagram-link:hover {
  color: rgb(255, 0, 187);
}

.footer-social .insta-icon {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  vertical-align: middle;
}

/* --- MOBILE --- */
@media (max-width: 768px) {

  /* Navigation */
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-bar {
    justify-content: space-between;
  }

  /* Header Fix */
  header {
    height: 45vh;
    min-height: 320px;
    background-position: center;
  }
}

@media (max-width: 600px) {
  h1, h2, h3 { font-size: 1.2em; }
  p { font-size: 1.1rem; }

  .hero-glass { padding: 1.6rem; }
  .glass-card { padding: 1.6rem; }
}

/* --- SCROLL ANIMATIONEN --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Barrierefreiheit */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

.a11y-toggle {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background: #1b263b;
  color: white;
  border: none;
  padding: 0.8rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  z-index: 9999;
}

.a11y-popup {
  position: fixed;
  bottom: 4rem;
  right: 1rem;
  background: white;
  color: black;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.2);
  width: 260px;
  display: none;
  flex-direction: column;
  gap: 0.6rem;
  z-index: 9999;
}

.a11y-popup.open {
  display: flex;
}

.a11y-btn {
  padding: 0.6rem;
  border: 1px solid #ccc;
  background: #f5f5f5;
  cursor: pointer;
  border-radius: 8px;
}

.a11y-btn:focus,
.a11y-close:focus {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.a11y-close {
  margin-top: 0.8rem;
  padding: 0.6rem;
  background: #1b263b;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.high-contrast {
  filter: invert(1) hue-rotate(180deg);
}

.underline-links a {
  text-decoration: underline !important;
}

.reduce-motion * {
  animation: none !important;
  transition: none !important;
}

:focus {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.nav-link:focus {
  outline: 2px solid transparent !important;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 10px;
  background: white;
  padding: 8px 12px;
  z-index: 1000;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 10px;
}

body.high-contrast {
  --accent: #ffffff;
}

body.high-contrast .nav-bar {
  background: #000;
}
