@charset "UTF-8";
/* CSS Document */

:root {
  /* Brand colours — sourced from /brand/tokens.css, which must be linked
     before this file. Swapping a brand never requires editing these. */
  --pm-green:        var(--brand-primary);
  --pm-green-light:  var(--brand-primary-light);
  --pm-orange:       var(--brand-accent);
  --pm-orange-hover: var(--brand-accent-hover);

  /* Typography */
  --pm-text:   var(--brand-text);
  --pm-muted:  var(--brand-muted);

  /* Surfaces & layout */
  --pm-border:     rgba(0,0,0,.10);
  --pm-shadow:     0 18px 50px rgba(0,0,0,.14);
  --pm-nav-offset: 90px;

  /* Navigation pills */
  --pm-pill-bg:     color-mix(in oklab, var(--brand-primary) 10%, transparent);
  --pm-pill-h:      45px;
  --pm-pill-radius: 999px;
}

@media (max-width: 1199.98px) {
  :root {
    --pm-nav-offset: 76px;
  }
}

/* Webfonts are declared in /brand/fonts.css, loaded before this file. */

body {
	font-family: 'Cardo', serif;
}

p {
  line-height: 1.75;
}

hr{
  color: #94a3b8; /* optional */
  border: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, color-mix(in oklab, currentColor 35%, transparent), transparent);
}

a {
  color: var(--pm-green-light);
}

main h1, main h2 {
  font-style: italic;
}

main h2 ~ p {
  line-height: 175%;
  margin-top: 1rem;
  font-size: 1rem;
}

.impressum h2 ~ p {
  margin-top: 0;
  font-size: inherit;
  line-height: inherit;
}


#cookie-backdrop, #cookie-banner, #cookie-overlay, #cookie-consent {
	font-family: 'Red Hat Text', sans-serif !important;
} 


/* ---------- Back to top button ---------- */
#backToTop {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 50px;
  height: 50px;
  border-radius: 50%;

  background-color: var(--pm-green); /* same as social icons */
  border: none;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 999;
}

/* Show button */
#backToTop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Hover effect */
#backToTop:hover {
  background-color: var(--pm-orange-hover); /* accent on hover */
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

/* Arrow (matches your image style) */
.arrow-up {
  width: 14px;
  height: 14px;
  border-left: 3px solid #fff;
  border-top: 3px solid #fff;
  transform: rotate(45deg);
  margin-top: 4px;
}


/* ---------- Scroll progress bar ---------- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background-color: var(--pm-orange);
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* ---------- Preloader ---------- */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #eee, #fff);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9998;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid var(--pm-orange);
  border-top: 6px solid var(--pm-green);
  border-radius: 50%;
  animation: pm-spin 1s linear infinite;
}

@keyframes pm-spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ================================================
   LEGAL PAGES
   datenschutz / impressum / barrierefreiheit / hinweisgeberschutz
   ================================================ */

.datenschutz,
.impressum,
.accessibility,
.hinweisgeberschutz {
  font-size: 1.05rem;
}

.datenschutz h1,
.impressum h1,
.accessibility h1,
.hinweisgeberschutz h1 {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}

.datenschutz h2,
.impressum h2,
.accessibility h2,
.hinweisgeberschutz h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.datenschutz h3,
.impressum h3,
.accessibility h3,
.hinweisgeberschutz h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.datenschutz p,
.impressum p,
.accessibility p,
.hinweisgeberschutz p {
  margin-bottom: 1rem;
}


/* ================================================
   SCROLL REVEAL (global utility)
   ================================================ */

.pm-reveal {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.pm-reveal-up  { transform: translateY(28px); }
.pm-reveal-in  { transform: none; }

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

@media (prefers-reduced-motion: reduce) {
  .pm-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


/* ---------- Content spacing below fixed nav ---------- */
main#page-content.main-content {
  padding-top: var(--pm-nav-offset, 97px);
}

/* Hero overrides nav padding (startseite only) */
main#page-content.main-content:has(.hero) {
  padding-top: 0;
}


/* ================================================
   STARTSEITE – Hero
   ================================================ */

.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
  color: white;
}

/* Background image lives on ::before so it can be zoomed independently */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0,0,0,0.2) 100%),
    url('/img/pm_hero_oma.jpg');
  background-size: cover;
  background-position: center;
  animation: heroZoom 8s ease-out forwards;
  z-index: 0;
}

@keyframes heroZoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1.0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
}

@media (max-width: 768px) {
  .hero::before {
    background-position: calc(75% - 30px) bottom;
    background-size: auto 115%;
    animation: none;
  }

  .hero-content {
    left: 50% !important;
    bottom: 12% !important;
  }
}

.hero-content {
  position: absolute;
  bottom: 20%;
  left: 25%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.9s ease 0.3s, transform 0.9s ease 0.3s;
  transform: translateX(-50%) translateY(20px);
}

.hero-content.is-loaded {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hero-content {
    opacity: 1 !important;
    transform: translateX(-50%) translateY(0) !important;
    transition: none !important;
  }
}

.custom-bg-green {
  padding: 0.1rem 1rem;
  border-radius: 0.5rem;
  display: inline-block;
  background-color: var(--pm-green);
}

.custom-bg-orange {
  padding: 0.1rem 1rem;
  border-radius: 0.5rem;
  display: inline-block;
  font-size: 0.9em;
  margin-left: 6rem;
  background-color: var(--pm-orange);
}

.scroll-down {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.7);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  animation: pulseArrow 2s infinite;
  z-index: 1;
}

.scroll-down:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--pm-green);
}

.scroll-down i {
  font-size: 1.5rem;
  color: #333;
}

@keyframes pulseArrow {
  0%   { transform: translateX(-50%) scale(1); }
  50%  { transform: translateX(-50%) scale(1.1); }
  100% { transform: translateX(-50%) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-down {
    animation: none !important;
  }
}


/* ================================================
   STARTSEITE – Animated text carousel
   ================================================ */

.animated-text-container {
  position: relative;
  width: min(520px, 90vw);
  height: 4rem;
  overflow: hidden;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.animated-text {
  position: absolute;
  white-space: nowrap;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: transform .45s ease, opacity .45s ease;
  will-change: transform, opacity;
}

.animated-text.is-in {
  transform: translateX(-50%);
  opacity: 1;
}

.animated-text.is-out {
  transform: translateX(-220%);
  opacity: 0;
}

@media (max-width: 576px) {
  .animated-text-container {
    height: 3.2rem;
  }
}

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


/* ================================================
   STARTSEITE – Section 2
   ================================================ */

.section-anchor {
  display: block;
  position: relative;
  top: -105px;
  visibility: hidden;
}

.section-2 {
  background: linear-gradient(to top, #f0f0f0ff, #ffffff);
  padding: 7rem 0rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 100vh;
}

@media (min-width: 992px) {
  .fs-lg-3 { font-size: 1.75rem !important; }
}

.quick-nav {
  margin-top: 1rem;
}

/* Icon pills: icon above text on mobile, icon left on lg+ */
.quick-pill--icon {
  flex-direction: column;
  gap: .2rem;
}
.quick-pill__icon {
  font-size: 1.3em;
  line-height: 1;
}
@media (min-width: 992px) {
  .quick-pill--icon {
    flex-direction: row;
    gap: .4rem;
  }
  .quick-pill__icon {
    font-size: 1em;
  }
}

.quick-pill,
.grid-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .55rem 1.25rem;
  border-radius: 999px;
  background-color: var(--pm-green);
  color: #fff;
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  transition: background-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.quick-pill:hover,
.quick-pill:focus-visible,
.grid-pill:hover,
.grid-pill:focus-visible {
  background-color: var(--pm-orange-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,.25);
  text-decoration: underline;
}

.quick-pill:focus-visible,
.grid-pill:focus-visible {
  outline: none;
  box-shadow: 0 6px 15px rgba(0,0,0,.25), 0 0 0 3px #fff, 0 0 0 5px var(--pm-green);
}

.quick-pill.is-active,
.grid-pill.is-active {
  background-color: var(--pm-orange-hover);
}

@media (prefers-reduced-motion: reduce) {
  .quick-pill,
  .grid-pill {
    transition: none !important;
  }
  .quick-pill:hover,
  .quick-pill:focus-visible,
  .grid-pill:hover,
  .grid-pill:focus-visible {
    transform: none !important;
  }
}

/* Accordion */
.accordion {
  --bs-accordion-active-bg: #f0f0f0;
  --bs-accordion-active-color: inherit;
  --bs-accordion-btn-focus-box-shadow: 0 0 0 .25rem rgba(0,0,0,.08);
}

/* Overlap gallery */
.overlap-gallery {
  width: 100%;
  max-width: 1250px;
  height: clamp(260px, 40vw, 460px);
}

.overlap-gallery .og-img {
  position: absolute;
  bottom: 0;
  display: block;
  border-radius: 14px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18);
  object-fit: cover;
  --ty: 0px;
  --scale: 1;
  transform: translateY(var(--ty)) scale(var(--scale));
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}

.overlap-gallery .og-1 {
  left: 0;
  width: clamp(200px, 32vw, 380px);
  height: clamp(140px, 20vw, 260px);
  z-index: 1;
}

.overlap-gallery .og-2 {
  left: 50%;
  width: clamp(286px, 44vw, 550px);
  height: clamp(198px, 28.6vw, 363px);
  z-index: 2;
  transform: translateX(-50%) translateY(var(--ty)) scale(var(--scale));
}

.overlap-gallery .og-3 {
  right: 0;
  bottom: -33px;
  width: clamp(200px, 32vw, 380px);
  height: clamp(140px, 20vw, 260px);
  z-index: 3;
}

@media (max-width: 576px) {
  .overlap-gallery {
    height: clamp(220px, 60vw, 340px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .overlap-gallery .og-img {
    transform: none !important;
  }
}


/* ================================================
   STARTSEITE – Section 3
   ================================================ */

.section-header {
  position: relative;
  display: inline-block;
}

.floating-logo {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 100px;
  z-index: 1;
}

.section-header h2 {
  position: relative;
  z-index: 0;
  margin-top: 50px;
}

.btn-green {
  background-color: var(--pm-green);
  color: white;
  border-radius: 25px;
  border: none;
  padding: 0.5rem 1.5rem;
}

.btn-green:hover { background-color: var(--pm-green-light); }

.btn-outline-green {
  border: 2px solid var(--pm-green-light);
  color: var(--pm-green-light);
  border-radius: 25px;
  padding: 0.5rem 1.5rem;
  background-color: white;
}

.btn-outline-green:active {
  background-color: var(--pm-green-light);
  color: white;
}

.section-3 .grid-box {
  margin: 0.75rem;
  border-radius: 15px;
  overflow: hidden;
  padding: 2rem;
  color: white;
  position: relative;
  min-height: 350px;
}

.grid-box-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  border-radius: 15px;
  transition: transform 0.6s ease;
  z-index: 0;
}

.section-3 .grid-box:hover .grid-box-bg {
  transform: scale(1.06);
}

.grid-box-content {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .grid-box-bg { transition: none !important; }
}

.section-3 h3 { margin-bottom: 0.5rem; }
.section-3 p  { margin-bottom: 1rem; }