/* ================================================================
   PIGANISFM — WEB STYLESHEET
   ----------------------------------------------------------------
   Web-specific components built on top of tokens.css.
   Optimized for marketing pages, docs, landing pages.
   Responsive (mobile-first). No JS required.
   ================================================================ */

/* ----- RESET (minimal, modern) ----------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--pfm-font-body);
  font-size: var(--pfm-text-base);
  line-height: 1.6;
  color: var(--pfm-text-primary);
  background: var(--pfm-bg-base);
  background-image:
    radial-gradient(ellipse at top, var(--pfm-bg-lighter) 0%, var(--pfm-bg-base) 45%, var(--pfm-bg-darker) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--pfm-gold-300); text-decoration: none; transition: color var(--pfm-transition-fast); }
a:hover { color: var(--pfm-gold-200); text-decoration: underline; }
::selection { background: var(--pfm-gold-500); color: var(--pfm-text-on-gold); }

/* ----- LAYOUT ---------------------------------------------------- */
.pfm-container {
  width: 100%;
  max-width: var(--pfm-container-max);
  margin: 0 auto;
  padding: 0 var(--pfm-space-6);
}
.pfm-container--narrow {
  max-width: var(--pfm-container-narrow);
}
.pfm-section {
  padding: var(--pfm-space-16) 0;
}
.pfm-section--lg {
  padding: var(--pfm-space-24) 0;
}

/* ----- TYPOGRAPHY ------------------------------------------------ */
h1, h2, h3, h4, h5, h6 { margin: 0; }
p { margin: 0 0 var(--pfm-space-4); }
p:last-child { margin-bottom: 0; }

.pfm-display {
  font-family: var(--pfm-font-display);
  font-size: clamp(3rem, 8vw, var(--pfm-text-7xl));
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  font-weight: 400;
}
.pfm-h1 {
  font-family: var(--pfm-font-heading);
  font-size: clamp(2rem, 5vw, var(--pfm-text-4xl));
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
}
.pfm-h2 {
  font-family: var(--pfm-font-heading);
  font-size: clamp(1.5rem, 3.5vw, var(--pfm-text-3xl));
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.pfm-h3 {
  font-family: var(--pfm-font-heading);
  font-size: var(--pfm-text-xl);
  font-weight: 600;
  line-height: 1.3;
}
.pfm-lead {
  font-size: var(--pfm-text-lg);
  color: var(--pfm-text-secondary);
  line-height: 1.55;
  max-width: 60ch;
}
.pfm-label {
  font-family: var(--pfm-font-heading);
  font-size: var(--pfm-text-sm);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pfm-gold-400);
}
.pfm-text-gold {
  background: linear-gradient(180deg, var(--pfm-gold-300) 0%, var(--pfm-gold-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
.pfm-text-muted { color: var(--pfm-text-muted); }
.pfm-text-secondary { color: var(--pfm-text-secondary); }

/* ----- NAV (top) ------------------------------------------------- */
.pfm-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(34, 74, 53, 0.75);
  border-bottom: 1px solid var(--pfm-border-subtle);
}
.pfm-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--pfm-space-4) var(--pfm-space-6);
  max-width: var(--pfm-container-max);
  margin: 0 auto;
}
.pfm-nav__brand {
  font-family: var(--pfm-font-display);
  font-size: var(--pfm-text-2xl);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pfm-gold-400);
  text-decoration: none;
}
.pfm-nav__brand:hover { color: var(--pfm-gold-300); text-decoration: none; }
.pfm-nav__links {
  display: flex;
  gap: var(--pfm-space-6);
  list-style: none;
  margin: 0;
  padding: 0;
}
.pfm-nav__link {
  font-family: var(--pfm-font-heading);
  font-size: var(--pfm-text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pfm-text-secondary);
}
.pfm-nav__link:hover { color: var(--pfm-gold-300); text-decoration: none; }

/* ----- HERO ------------------------------------------------------ */
.pfm-hero {
  padding: var(--pfm-space-20) 0 var(--pfm-space-16);
  position: relative;
  overflow: hidden;
}
.pfm-hero__layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--pfm-space-12);
  align-items: center;
}
.pfm-hero__content { order: 2; }
.pfm-mascot { order: 1; }
@media (max-width: 860px) {
  .pfm-hero__content { order: 2; }
  .pfm-mascot { order: 1; }
}
@media (max-width: 860px) {
  .pfm-hero__layout {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--pfm-space-8);
  }
}
.pfm-hero__content {
  min-width: 0;
}
.pfm-hero__eyebrow {
  display: inline-block;
  padding: var(--pfm-space-2) var(--pfm-space-4);
  margin-bottom: var(--pfm-space-6);
  background: var(--pfm-surface-card);
  border: 1px solid var(--pfm-border-default);
  border-radius: var(--pfm-radius-full);
  font-family: var(--pfm-font-heading);
  font-size: var(--pfm-text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--pfm-gold-300);
}
.pfm-hero__title {
  margin-bottom: var(--pfm-space-6);
}
.pfm-hero__title .pfm-display {
  display: block;
  text-align: left;
}
@media (max-width: 860px) {
  .pfm-hero__title .pfm-display { text-align: center; }
}
.pfm-hero__lead {
  margin-bottom: var(--pfm-space-8);
  max-width: 50ch;
  font-size: clamp(1.05rem, 1.5vw, var(--pfm-text-xl));
  color: var(--pfm-text-secondary);
  line-height: 1.55;
}
@media (max-width: 860px) {
  .pfm-hero__lead { margin-left: auto; margin-right: auto; }
}
.pfm-hero__actions {
  display: flex;
  gap: var(--pfm-space-4);
  flex-wrap: wrap;
}
@media (max-width: 860px) {
  .pfm-hero__actions { justify-content: center; }
}

/* ----- MASCOT ---------------------------------------------------- */
.pfm-mascot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}
.pfm-mascot::before {
  content: '';
  position: absolute;
  inset: 10% 5% 5% 5%;
  background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.35) 0%, rgba(212, 175, 55, 0.12) 35%, transparent 70%);
  filter: blur(20px);
  z-index: -1;
}
.pfm-mascot::after {
  content: '';
  position: absolute;
  bottom: 4%;
  left: 18%;
  right: 18%;
  height: 18px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.45) 0%, transparent 70%);
  filter: blur(6px);
  z-index: -1;
}
.pfm-mascot img {
  width: 100%;
  max-width: 380px;
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.35));
  animation: pfm-mascot-float 5s ease-in-out infinite;
}
@media (max-width: 860px) {
  .pfm-mascot img { max-width: 260px; }
}
@keyframes pfm-mascot-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
  .pfm-mascot img { animation: none; }
}

/* ----- BUTTONS --------------------------------------------------- */
.pfm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--pfm-space-2);
  padding: var(--pfm-space-3) var(--pfm-space-6);
  font-family: var(--pfm-font-heading);
  font-size: var(--pfm-text-base);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--pfm-radius-md);
  cursor: pointer;
  transition: all var(--pfm-transition-base);
  text-decoration: none;
  min-height: 44px;
  white-space: nowrap;
}
.pfm-btn:hover { text-decoration: none; transform: translateY(-1px); }
.pfm-btn:active { transform: translateY(0); }

.pfm-btn--primary {
  background: linear-gradient(180deg, var(--pfm-gold-400) 0%, var(--pfm-gold-500) 100%);
  color: var(--pfm-text-on-gold);
  box-shadow: var(--pfm-shadow-md);
}
.pfm-btn--primary:hover {
  background: linear-gradient(180deg, var(--pfm-gold-300) 0%, var(--pfm-gold-400) 100%);
  box-shadow: var(--pfm-shadow-glow-gold);
  color: var(--pfm-text-on-gold);
}

.pfm-btn--secondary {
  background: var(--pfm-surface-card);
  border-color: var(--pfm-border-default);
  color: var(--pfm-text-primary);
}
.pfm-btn--secondary:hover {
  background: var(--pfm-surface-elevated);
  border-color: var(--pfm-border-strong);
  color: var(--pfm-text-primary);
}

.pfm-btn--ghost {
  background: transparent;
  color: var(--pfm-text-secondary);
}
.pfm-btn--ghost:hover {
  background: var(--pfm-surface-card);
  color: var(--pfm-text-primary);
}

.pfm-btn--lg {
  padding: var(--pfm-space-4) var(--pfm-space-8);
  font-size: var(--pfm-text-lg);
  min-height: 52px;
}

/* ----- CARDS ----------------------------------------------------- */
.pfm-card {
  background: var(--pfm-surface-card);
  border: 1px solid var(--pfm-border-default);
  border-radius: var(--pfm-radius-lg);
  padding: var(--pfm-space-6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.pfm-card--elevated {
  background: var(--pfm-surface-elevated);
  box-shadow: var(--pfm-shadow-lg);
}

/* ----- GRID ------------------------------------------------------ */
.pfm-grid {
  display: grid;
  gap: var(--pfm-space-6);
}
.pfm-grid--2 { grid-template-columns: repeat(2, 1fr); }
.pfm-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 768px) {
  .pfm-grid--2, .pfm-grid--3 { grid-template-columns: 1fr; }
}

/* ----- SCREENSHOT TILES ------------------------------------------ */
.pfm-screenshot {
  position: relative;
  border-radius: var(--pfm-radius-lg);
  overflow: hidden;
  border: 1px solid var(--pfm-border-default);
  background: var(--pfm-surface-sunken);
  aspect-ratio: 16 / 10;
  box-shadow: var(--pfm-shadow-md);
  transition: transform var(--pfm-transition-base), box-shadow var(--pfm-transition-base);
}
.pfm-screenshot:hover {
  transform: translateY(-2px);
  box-shadow: var(--pfm-shadow-lg);
}
.pfm-screenshot__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--pfm-space-2);
  background: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.02),
    rgba(255,255,255,0.02) 12px,
    rgba(255,255,255,0.05) 12px,
    rgba(255,255,255,0.05) 24px
  );
  color: var(--pfm-text-muted);
  font-family: var(--pfm-font-heading);
  font-size: var(--pfm-text-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.pfm-screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ----- LOGO PLACEHOLDER ------------------------------------------ */
.pfm-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--pfm-radius-lg);
  background: linear-gradient(135deg, var(--pfm-gold-500) 0%, var(--pfm-gold-700) 100%);
  color: var(--pfm-text-on-gold);
  font-family: var(--pfm-font-display);
  font-size: var(--pfm-text-3xl);
  letter-spacing: 0.04em;
  box-shadow: var(--pfm-shadow-md);
}
.pfm-logo--lg {
  width: 96px;
  height: 96px;
  font-size: var(--pfm-text-4xl);
  border-radius: var(--pfm-radius-xl);
}
.pfm-logo--sm {
  width: 36px;
  height: 36px;
  font-size: var(--pfm-text-lg);
  border-radius: var(--pfm-radius-md);
}

/* ----- FOOTER ---------------------------------------------------- */
.pfm-footer {
  margin-top: var(--pfm-space-24);
  padding: var(--pfm-space-12) 0 var(--pfm-space-8);
  border-top: 1px solid var(--pfm-border-subtle);
  background: rgba(0, 0, 0, 0.15);
}
.pfm-footer__inner {
  max-width: var(--pfm-container-max);
  margin: 0 auto;
  padding: 0 var(--pfm-space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--pfm-space-8);
  justify-content: space-between;
  align-items: flex-start;
}
.pfm-footer__brand {
  font-family: var(--pfm-font-display);
  font-size: var(--pfm-text-xl);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pfm-gold-400);
}
.pfm-footer__links {
  display: flex;
  gap: var(--pfm-space-6);
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.pfm-footer__link {
  font-family: var(--pfm-font-heading);
  font-size: var(--pfm-text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pfm-text-muted);
}
.pfm-footer__link:hover { color: var(--pfm-gold-300); text-decoration: none; }
.pfm-footer__bottom {
  margin-top: var(--pfm-space-8);
  padding-top: var(--pfm-space-6);
  border-top: 1px solid var(--pfm-border-subtle);
  text-align: center;
  font-size: var(--pfm-text-xs);
  color: var(--pfm-text-muted);
  max-width: var(--pfm-container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--pfm-space-6);
  padding-right: var(--pfm-space-6);
}

/* ----- PROSE (for impressum, datenschutz, …) --------------------- */
.pfm-prose {
  max-width: 70ch;
  color: var(--pfm-text-secondary);
  line-height: 1.7;
}
.pfm-prose h1, .pfm-prose h2, .pfm-prose h3 {
  color: var(--pfm-text-primary);
  margin-top: var(--pfm-space-8);
  margin-bottom: var(--pfm-space-4);
}
.pfm-prose h1:first-child, .pfm-prose h2:first-child { margin-top: 0; }
.pfm-prose h2 {
  font-family: var(--pfm-font-heading);
  font-size: var(--pfm-text-2xl);
  font-weight: 600;
  color: var(--pfm-gold-300);
}
.pfm-prose h3 {
  font-family: var(--pfm-font-heading);
  font-size: var(--pfm-text-lg);
  font-weight: 600;
}
.pfm-prose p { margin: 0 0 var(--pfm-space-4); }
.pfm-prose ul, .pfm-prose ol {
  margin: 0 0 var(--pfm-space-4);
  padding-left: var(--pfm-space-6);
}
.pfm-prose li { margin-bottom: var(--pfm-space-2); }
.pfm-prose strong { color: var(--pfm-text-primary); font-weight: 600; }

/* ----- RESPONSIVE NAV (mobile) ----------------------------------- */
@media (max-width: 640px) {
  .pfm-nav__links {
    gap: var(--pfm-space-4);
    font-size: var(--pfm-text-xs);
  }
  .pfm-nav__brand {
    font-size: var(--pfm-text-xl);
  }
  .pfm-hero {
    padding: var(--pfm-space-16) 0 var(--pfm-space-12);
  }
  .pfm-section, .pfm-section--lg {
    padding: var(--pfm-space-12) 0;
  }
  .pfm-footer__inner {
    flex-direction: column;
  }
}

/* ----- SCREENSHOT — Coming Soon Variante ------------------------- */
.pfm-screenshot__coming-soon {
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(255,255,255,0.015),
      rgba(255,255,255,0.015) 10px,
      rgba(255,255,255,0.04) 10px,
      rgba(255,255,255,0.04) 20px
    );
  flex-direction: column;
  gap: var(--pfm-space-2);
}
.pfm-screenshot__cs-label {
  font-family: var(--pfm-font-display);
  font-size: var(--pfm-text-2xl);
  letter-spacing: 0.08em;
  color: var(--pfm-gold-500);
  opacity: 0.6;
}
.pfm-screenshot__cs-sub {
  font-family: var(--pfm-font-heading);
  font-size: var(--pfm-text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pfm-text-muted);
}

/* ----- SCREENSHOT — klickbare Kachel mit Hover-Overlay ----------- */
.pfm-screenshot--link {
  cursor: pointer;
}
.pfm-screenshot__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--pfm-space-2);
  transition: background var(--pfm-transition-base);
}
.pfm-screenshot--link:hover .pfm-screenshot__overlay,
.pfm-screenshot--link:focus-visible .pfm-screenshot__overlay {
  background: rgba(0, 0, 0, 0.50);
}
.pfm-screenshot__zoom-icon {
  color: var(--pfm-gold-300);
  opacity: 0;
  transform: scale(0.75);
  transition: opacity var(--pfm-transition-base), transform var(--pfm-transition-base);
}
.pfm-screenshot--link:hover .pfm-screenshot__zoom-icon,
.pfm-screenshot--link:focus-visible .pfm-screenshot__zoom-icon {
  opacity: 1;
  transform: scale(1);
}
.pfm-screenshot__caption {
  font-family: var(--pfm-font-heading);
  font-size: var(--pfm-text-sm);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pfm-text-primary);
  opacity: 0;
  transform: translateY(5px);
  transition: opacity var(--pfm-transition-base), transform var(--pfm-transition-base);
}
.pfm-screenshot--link:hover .pfm-screenshot__caption,
.pfm-screenshot--link:focus-visible .pfm-screenshot__caption {
  opacity: 1;
  transform: translateY(0);
}
.pfm-screenshot--link:focus-visible {
  outline: 2px solid var(--pfm-gold-400);
  outline-offset: 2px;
}

/* ----- LIGHTBOX --------------------------------------------------- */
.pfm-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--pfm-space-6);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--pfm-transition-base);
}
.pfm-lightbox--open {
  opacity: 1;
  pointer-events: auto;
}
.pfm-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 12, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.pfm-lightbox__content {
  position: relative;
  z-index: 1;
  max-width: min(90vw, 1100px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--pfm-space-4);
}
.pfm-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: calc(90vh - 5rem);
  width: auto;
  height: auto;
  border-radius: var(--pfm-radius-lg);
  box-shadow: var(--pfm-shadow-xl), 0 0 60px rgba(0,0,0,0.5);
  border: 1px solid var(--pfm-border-default);
  transform: scale(0.94);
  transition: transform var(--pfm-transition-base);
}
.pfm-lightbox--open .pfm-lightbox__img {
  transform: scale(1);
}
.pfm-lightbox__caption {
  font-family: var(--pfm-font-heading);
  font-size: var(--pfm-text-sm);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pfm-text-muted);
  margin: 0;
}
.pfm-lightbox__close {
  position: fixed;
  top: var(--pfm-space-6);
  right: var(--pfm-space-6);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: var(--pfm-radius-full);
  border: 1px solid var(--pfm-border-default);
  background: var(--pfm-surface-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--pfm-text-primary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--pfm-transition-fast), color var(--pfm-transition-fast), border-color var(--pfm-transition-fast);
}
.pfm-lightbox__close:hover {
  background: var(--pfm-surface-elevated);
  border-color: var(--pfm-border-strong);
  color: var(--pfm-gold-300);
}
.pfm-lightbox__close:focus-visible {
  outline: 2px solid var(--pfm-gold-400);
  outline-offset: 2px;
}

/* ----- BUTTON — disabled state ----------------------------------- */
.pfm-btn--disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}
.pfm-btn--disabled:hover {
  transform: none;
}

/* ----- HERO sublead (zweite Zeile unter lead) -------------------- */
.pfm-hero__sublead {
  margin-top: calc(var(--pfm-space-2) * -1);
  margin-bottom: var(--pfm-space-8);
  max-width: 50ch;
  font-size: clamp(0.95rem, 1.3vw, var(--pfm-text-lg));
  color: var(--pfm-text-muted);
  font-style: italic;
  line-height: 1.5;
}
@media (max-width: 860px) {
  .pfm-hero__sublead { margin-left: auto; margin-right: auto; }
}
