* { box-sizing: border-box; }

:root {
  --teal: #0e7795;
  --teal-dark: #075d73;
  --ink: #1f2428;
  --paper: rgba(255, 255, 255, .93);
  --footer: rgba(18, 25, 27, .91);
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: #adc8d5;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 118px 20px 135px;
  background:
    linear-gradient(rgba(225,244,252,.07), rgba(0,0,0,.14)),
    url("hintergrund.jpg") center center / cover no-repeat;
}

.language-switcher {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 15px;
  max-width: calc(100% - 30px);
  padding: 11px 19px;
  border: 1px solid rgba(255,255,255,.70);
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 8px 26px rgba(0,0,0,.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lang-button {
  position: relative;
  border: 0;
  padding: 7px 3px 9px;
  background: transparent;
  color: #252b2f;
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
  white-space: nowrap;
}

.lang-button:hover,
.lang-button:focus-visible {
  color: var(--teal-dark);
  outline: none;
}

.lang-button.active {
  color: var(--teal-dark);
  font-weight: 700;
}

.lang-button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 99px;
  background: var(--teal);
}

.separator {
  width: 1px;
  height: 27px;
  background: rgba(15, 55, 68, .45);
}

.notice-card {
  position: relative;
  z-index: 2;
  width: min(780px, 92vw);
  padding: 38px clamp(26px, 5vw, 62px) 30px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 29px;
  background: var(--paper);
  box-shadow: 0 20px 58px rgba(0,0,0,.24);
  text-align: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.heart {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--teal);
  font-family: "Comic Sans MS", cursive;
  font-size: 2.2rem;
}

h1 {
  margin: 16px 0 17px;
  color: var(--teal);
  font-family: "Comic Sans MS", "Bradley Hand", cursive;
  font-size: clamp(2.15rem, 5.3vw, 4rem);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -.04em;
}

.rule {
  width: 88%;
  height: 2px;
  margin: 0 auto 18px;
  border-radius: 99px;
  background: var(--teal);
  opacity: .88;
}

.rule.thin {
  height: 1px;
  margin-top: 4px;
  margin-bottom: 17px;
}

.intro {
  max-width: 620px;
  margin: 0 auto 8px;
  font-size: clamp(1.03rem, 2vw, 1.25rem);
  line-height: 1.48;
}

.help {
  margin: 0 auto 17px;
  color: var(--teal);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  font-weight: 700;
}

.contact-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin: 7px 0 16px;
}

.contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #161a1c;
  text-decoration: none;
  font-size: clamp(.93rem, 1.8vw, 1.08rem);
  overflow-wrap: anywhere;
}

.contact:hover,
.contact:focus-visible {
  color: var(--teal-dark);
  text-decoration: underline;
  outline: none;
}

.icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: white;
  background: var(--teal);
  font-size: 1.25rem;
}

.contact-divider {
  width: 1px;
  height: 42px;
  background: rgba(14,119,149,.65);
}

.sdui {
  margin: 0 auto 8px;
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.45;
}

.sdui strong {
  color: var(--teal);
}

.thanks {
  margin: 4px 0 0;
  color: var(--teal);
  font-family: "Comic Sans MS", "Bradley Hand", cursive;
  font-size: clamp(1.3rem, 3vw, 1.85rem);
}

.footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 15px clamp(20px, 5vw, 65px);
  color: white;
  background: var(--footer);
}

.cookie-copy {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 750px;
  font-size: .88rem;
  line-height: 1.45;
}

.cookie-copy > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.cookie-symbol {
  margin-right: 3px;
  font-size: 1.25rem;
}

.cookie-copy a,
.legal-links a {
  color: white;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-copy button {
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 8px;
  padding: 10px 20px;
  background: var(--teal);
  color: white;
  cursor: pointer;
  font: inherit;
}

.cookie-copy.is-hidden {
  visibility: hidden;
}

.legal-links {
  display: flex;
  align-items: center;
  gap: 15px;
  white-space: nowrap;
  font-size: .94rem;
}

.legal-links a {
  text-decoration: none;
}

.legal-links a:hover,
.legal-links a:focus-visible {
  text-decoration: underline;
  outline: none;
}

/* Legal pages */
.legal-body {
  min-height: 100vh;
  margin: 0;
  padding: 40px 18px;
  background: #eef3f4;
}

.legal-card {
  width: min(900px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 54px);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 34px rgba(0,0,0,.08);
}

.legal-card h1 {
  margin-top: 0;
  color: var(--teal-dark);
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -.03em;
}

.legal-card h2 {
  margin-top: 30px;
  color: var(--teal-dark);
  font-size: 1.15rem;
}

.legal-card p,
.legal-card li {
  line-height: 1.65;
}

.legal-card a {
  color: var(--teal-dark);
}

.note {
  margin: 24px 0;
  padding: 14px 16px;
  border-left: 4px solid #b1792c;
  background: #fff7e8;
}

.back {
  display: inline-block;
  margin-top: 25px;
}

html[dir="rtl"] .notice-card {
  direction: rtl;
}

html[dir="rtl"] .contact-row {
  direction: ltr;
}

html[dir="rtl"] .footer {
  direction: rtl;
}

@media (max-width: 760px) {
  .page-shell {
    justify-content: flex-start;
    padding: 108px 13px 175px;
  }

  .language-switcher {
    top: 12px;
    gap: 7px;
    padding: 9px 10px;
    border-radius: 14px;
    overflow-x: auto;
  }

  .separator {
    display: none;
  }

  .lang-button {
    font-size: .88rem;
  }

  .notice-card {
    padding-top: 34px;
    border-radius: 22px;
  }

  .contact-row {
    flex-direction: column;
    gap: 11px;
  }

  .contact-divider {
    display: none;
  }

  .footer {
    min-height: 154px;
    flex-direction: column;
    align-items: stretch;
    gap: 13px;
    padding: 14px 18px;
  }

  .cookie-copy {
    justify-content: space-between;
    max-width: none;
  }

  .legal-links {
    justify-content: flex-end;
  }
}

@media (max-width: 480px) {
  .language-switcher {
    width: calc(100% - 18px);
    justify-content: flex-start;
  }

  .notice-card {
    width: 100%;
  }

  h1 {
    font-size: 2.15rem;
  }

  .cookie-copy {
    font-size: .78rem;
  }

  .cookie-copy button {
    padding: 9px 13px;
  }

  .legal-links {
    font-size: .82rem;
  }
}

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