/* =========================================================
   PfotenTreff Landing – Apple-inspired Premium Design
   Warm · Cozy · Atmospheric
   ========================================================= */

:root {
  --bg: #ebe6de;
  --text: #2a2622;
  --muted: #6f675e;
  --accent: #2f9e55;
  --accent-deep: #247a42;
  --dark: #2a2622;
  --surface: #f7f3ec;
  --surface-soft: #e4ddd3;
  --blue: #3d6e8c;
  --radius: 24px;
  --radius-pill: 980px;
  --shadow: 0 20px 40px rgba(42, 38, 34, 0.06);
  --shadow-lift: 0 28px 56px rgba(42, 38, 34, 0.12);
  --nav-h: 52px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47059;
  letter-spacing: -0.022em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------
   Reveal (Intersection Observer)
   --------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------------------------------------------
   1. Sticky Navbar
   --------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 40px);
  background: rgba(235, 230, 222, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(42, 38, 34, 0.08);
}

.nav__logo {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.nav__logo span {
  color: var(--accent);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background 160ms ease, transform 140ms var(--ease);
}

.nav__cta:hover {
  background: var(--accent-deep);
}

.nav__cta:active {
  transform: scale(0.97);
}

/* ---------------------------------------------------------
   2. Hero – Vollflächen-Hintergrundbild
   --------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 40px) clamp(16px, 4vw, 40px) clamp(48px, 8vw, 80px);
  overflow: hidden;
  color: #fff;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  transform: scale(1.04);
  animation: heroSettle 1.4s var(--ease) both;
}

@keyframes heroSettle {
  from {
    transform: scale(1.1);
    opacity: 0.85;
  }
  to {
    transform: scale(1.04);
    opacity: 1;
  }
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      rgba(42, 38, 34, 0.35) 0%,
      rgba(42, 38, 34, 0.25) 40%,
      rgba(42, 38, 34, 0.65) 100%
    ),
    radial-gradient(ellipse 80% 50% at 50% 90%, rgba(47, 158, 85, 0.18), transparent 60%);
  pointer-events: none;
}

.hero__copy {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
}

.hero__title {
  font-size: clamp(40px, 7.5vw, 72px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.hero__subtitle {
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
  max-width: 560px;
  margin: 0 auto 36px;
}

.waitlist {
  max-width: 520px;
  margin: 0 auto;
}

.waitlist__pill {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px;
  background: rgba(247, 243, 236, 0.96);
  border-radius: 28px;
  box-shadow: var(--shadow-lift);
}

@media (min-width: 600px) {
  .waitlist__pill {
    flex-direction: row;
    align-items: center;
    border-radius: var(--radius-pill);
    padding: 6px 6px 6px 22px;
  }
}

.waitlist input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  padding: 14px 16px;
  font-size: 17px;
  color: var(--text);
}

.waitlist input::placeholder {
  color: #9a9186;
}

@media (min-width: 600px) {
  .waitlist input {
    padding: 12px 8px;
  }
}

.waitlist button {
  border: none;
  cursor: pointer;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 160ms ease, transform 140ms var(--ease);
}

.waitlist button:hover {
  background: var(--accent-deep);
}

.waitlist button:active {
  transform: scale(0.98);
}

.waitlist__hint {
  margin-top: 14px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
}

.waitlist__hint.is-success {
  color: #b8f0cc;
}

.waitlist__hint.is-error {
  color: #ffc9c3;
}

/* ---------------------------------------------------------
   Section titles
   --------------------------------------------------------- */
.section-title {
  font-size: clamp(36px, 5.5vw, 56px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.1;
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 64px);
}

/* ---------------------------------------------------------
   3. Features – Bento
   --------------------------------------------------------- */
.features {
  position: relative;
  padding: clamp(96px, 14vw, 140px) clamp(16px, 4vw, 40px);
  overflow: hidden;
  isolation: isolate;
}

.features__atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(
      180deg,
      rgba(235, 230, 222, 0.92) 0%,
      rgba(220, 210, 196, 0.88) 45%,
      rgba(235, 230, 222, 0.94) 100%
    ),
    url("https://images.unsplash.com/photo-1448375240586-882707db888b?auto=format&fit=crop&w=1800&q=70")
      center / cover no-repeat;
  filter: saturate(0.85);
}

.features__atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 20% 30%, rgba(47, 158, 85, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 45% at 85% 70%, rgba(180, 140, 90, 0.12), transparent 50%);
}

.features__inner {
  position: relative;
  z-index: 1;
}

.bento {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 800px) {
  .bento {
    grid-template-columns: 1.35fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
  }
}

.bento__card {
  position: relative;
  background: rgba(247, 243, 236, 0.92);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.bento__card--large {
  padding: 0;
  min-height: 480px;
}

@media (min-width: 800px) {
  .bento__card--large {
    grid-column: 1;
    grid-row: 1 / span 2;
    min-height: 100%;
  }

  .bento__card--wide {
    grid-column: 2 / span 2;
  }
}

.bento__text {
  padding: 28px 28px 16px;
  flex-shrink: 0;
}

.bento__media {
  flex: 1;
  min-height: 260px;
  margin: 0 16px 16px;
  border-radius: 18px;
  overflow: hidden;
}

.bento__media img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  object-position: 50% 28%;
}

.bento__card--accent {
  background: linear-gradient(160deg, #3cb86a 0%, #247a42 100%);
  color: #fff;
  border: none;
}

.bento__card--accent .bento__eyebrow {
  color: rgba(255, 255, 255, 0.95);
}

.bento__card--accent p:not(.bento__eyebrow) {
  color: rgba(255, 255, 255, 0.95);
}

.bento__card--accent h3 {
  color: #fff;
}

.bento__eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 10px;
}

.bento__card h3 {
  font-size: clamp(24px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin-bottom: 10px;
}

.bento__card p:not(.bento__eyebrow) {
  font-size: 16px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 34ch;
}

.bento__card--wide {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
  min-height: 280px;
}

@media (min-width: 700px) {
  .bento__card--wide {
    grid-template-columns: 1.1fr 1fr;
  }
}

.bento__wide-copy {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bento__card--wide img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  object-position: center;
}

/* ---------------------------------------------------------
   4. Split sections
   --------------------------------------------------------- */
.split {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 80px) clamp(16px, 4vw, 40px);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1.05fr 1fr;
    gap: 72px;
  }

  .split--reverse .split__media {
    order: 2;
  }

  .split--reverse .split__copy {
    order: 1;
  }
}

.split__media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.split__media img {
  width: 100%;
  height: clamp(280px, 40vw, 480px);
  object-fit: cover;
}

.split__copy h2 {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 700;
  letter-spacing: -1.2px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.split__copy p {
  font-size: 19px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 38ch;
}

/* ---------------------------------------------------------
   Über uns – Tabs + Accordion
   --------------------------------------------------------- */
.about {
  padding: clamp(72px, 12vw, 120px) clamp(16px, 4vw, 40px);
  background:
    radial-gradient(ellipse 70% 50% at 10% 0%, rgba(47, 158, 85, 0.1), transparent 55%),
    linear-gradient(180deg, #e4ddd3 0%, #ebe6de 100%);
}

.about__head {
  max-width: 720px;
  margin: 0 auto 32px;
  text-align: center;
}

.about__eyebrow {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 12px;
}

.about__head h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -1.2px;
  line-height: 1.12;
  margin-bottom: 12px;
}

.about__lead {
  font-size: 18px;
  color: var(--muted);
}

.about__panel {
  max-width: 760px;
  margin: 0 auto;
  background: rgba(42, 38, 34, 0.94);
  color: #f5f1ea;
  border-radius: 28px;
  padding: clamp(22px, 4vw, 32px);
  box-shadow: 0 28px 60px rgba(42, 38, 34, 0.18);
}

.about-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.about-tab {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78);
  border-radius: 980px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 140ms var(--ease);
}

.about-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.about-tab.is-active {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
}

.about-tab:active {
  transform: scale(0.97);
}

.about-panels {
  min-height: 140px;
  margin-bottom: 8px;
}

.about-panel {
  display: none;
  animation: aboutFade 0.35s var(--ease);
}

.about-panel.is-active {
  display: block;
}

.about-panel[hidden] {
  display: none !important;
}

@keyframes aboutFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about-panel h3 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.6px;
  margin-bottom: 10px;
  color: #fff;
}

.about-panel p {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

.about-panel strong {
  color: #fff;
  font-weight: 600;
}

.about-faq {
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 8px;
}

.about-faq__item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 4px;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 160ms ease;
}

.about-faq__item:hover {
  color: var(--accent);
}

.about-faq__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  font-size: 18px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  transition: transform 200ms var(--ease), background 160ms ease;
}

.about-faq__item[aria-expanded="true"] .about-faq__icon {
  transform: rotate(45deg);
  background: rgba(47, 158, 85, 0.25);
  color: var(--accent);
}

.about-faq__answer {
  padding: 0 4px 16px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  line-height: 1.5;
}

.about-faq__answer[hidden] {
  display: none;
}

/* ---------------------------------------------------------
   5. Charity Banner
   --------------------------------------------------------- */
.charity {
  margin: clamp(48px, 8vw, 96px) clamp(16px, 4vw, 40px) 0;
}

.charity__inner {
  max-width: 1120px;
  margin: 0 auto;
  background: var(--dark);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(56px, 9vw, 96px) clamp(28px, 6vw, 72px);
  text-align: center;
  box-shadow: var(--shadow);
}

.charity h2 {
  font-size: clamp(36px, 5.5vw, 56px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 18px;
}

.charity p {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.5;
  color: #a1a1a6;
  max-width: 640px;
  margin: 0 auto;
}

.charity strong {
  color: #fff;
  font-weight: 600;
}

/* ---------------------------------------------------------
   6. Footer
   --------------------------------------------------------- */
.footer {
  padding: 72px 24px 48px;
}

.footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}

.footer__logo {
  display: inline-block;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.footer__logo span {
  color: var(--accent);
}

.footer__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px 28px;
  margin-bottom: 20px;
}

.footer__links a {
  font-size: 14px;
  color: var(--muted);
  transition: color 160ms ease;
}

.footer__links a:hover {
  color: var(--blue);
}

.footer__copy {
  font-size: 12px;
  color: var(--muted);
}

/* ---------------------------------------------------------
   Legal pages
   --------------------------------------------------------- */
.page-legal {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.legal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--nav-h);
  padding: 0 clamp(16px, 4vw, 40px);
  background: rgba(235, 230, 222, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(42, 38, 34, 0.08);
  position: sticky;
  top: 0;
  z-index: 10;
}

.legal-nav__brand {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.legal-nav__brand span {
  color: var(--accent);
}

.legal-nav__back {
  font-size: 14px;
  color: var(--blue);
}

.legal-nav__back:hover {
  text-decoration: underline;
}

.legal {
  flex: 1;
  width: min(680px, 100%);
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.legal h1 {
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -1.2px;
  margin-bottom: 12px;
}

.legal__lead {
  color: var(--muted);
  margin-bottom: 28px;
}

.legal h2 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 32px 0 10px;
}

.legal p {
  color: var(--text);
  margin-bottom: 14px;
  font-size: 17px;
  line-height: 1.5;
}

.legal a {
  color: var(--blue);
}

.legal a:hover {
  text-decoration: underline;
}

.legal__note {
  margin-top: 28px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 14px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__bg img {
    animation: none;
    transform: none;
  }

  .about-panel {
    animation: none;
  }
}
