@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. */
  --primary:        var(--brand-primary);
  --primary-hover:  var(--brand-primary-hover);
  --secondary:       var(--brand-secondary);
  --secondary-hover: var(--brand-secondary-hover);

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

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

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

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

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

/* Safety net against accidental horizontal overflow (a carousel track, an
   absolutely-positioned element, etc. poking past the viewport edge) — on
   mobile this used to show up as a blank gap on the right and, worse, made
   iOS Safari misposition/clip the fixed nav bar, since a horizontally
   scrollable page can shift what a fixed element is anchored to. Without
   this, any single overflowing element anywhere on any page breaks the
   whole page's horizontal bounds; with it, such a case just gets clipped
   instead of dragging the layout (and the nav) along with it. */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
	font-family: var(--brand-font-heading, '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(--primary-hover);
}

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;
}


/* ---------- Scroll progress bar ---------- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background-color: var(--secondary);
  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(--secondary);
  border-top: 6px solid var(--primary);
  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(--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%),
    var(--brand-hero-image, url('/img/pm_hero_oma.jpg'));
  background-size: cover;
  background-position: var(--brand-hero-focus-x, center) var(--brand-hero-focus-y, 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-image:
      linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0,0,0,0.2) 100%),
      var(--brand-hero-image-mobile, var(--brand-hero-image, url('/img/pm_hero_oma.jpg')));
    background-position: var(--brand-hero-focus-x-mobile, calc(75% - 30px)) var(--brand-hero-focus-y-mobile, 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(--primary);
}

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

.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(--primary);
}

.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 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .55rem 1.25rem;
  border-radius: 999px;
  background-color: var(--primary);
  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 {
  background-color: var(--secondary-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,.25);
  text-decoration: underline;
}

.quick-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(--primary);
}

.quick-pill.is-active {
  background-color: var(--secondary-hover);
}

@media (prefers-reduced-motion: reduce) {
  .quick-pill {
    transition: none !important;
  }
  .quick-pill:hover,
  .quick-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(--primary);
  color: white;
  border-radius: 25px;
  border: none;
  padding: 0.5rem 1.5rem;
}

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

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

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