/* Padel-Hotels: gemeinsame Design-Tokens für Hub (/padel-hotels/) und alle Hotel-Reviews.
   Basis ist das PadelCompass-Design (fast schwarz, Cyan, Fraunces-Headlines, Inter, JetBrains Mono).
   Neu für die Reise-Rubrik: eine warme Sonnenfarbe (Wärme, Süden) und Court-Blau.
   Alles ist unter .ph gescoped, damit Header und Footer der Website unberührt bleiben.
   Schriften kommen aus /css/local-fonts.css der Website. */

:root {
  --ph-bg: #0a0a0a;
  --ph-bg-rgb: 10 10 10;
  --ph-bg2: #111214;
  --ph-bg3: #17191c;
  --ph-dots: #1e293b;
  --ph-panel: rgba(255, 255, 255, .035);
  --ph-panel2: rgba(255, 255, 255, .07);
  --ph-line: rgba(255, 255, 255, .1);
  --ph-line2: rgba(255, 255, 255, .2);

  --ph-ink: #ffffff;
  --ph-text: #d1d5db;
  --ph-muted: #9ca3af;
  --ph-dim: #6b7280;

  --ph-primary: #00ffff;              /* PadelCompass Cyan */
  --ph-primary-rgb: 0 255 255;
  --ph-on-primary: #000;
  --ph-sun: #ffb547;                  /* Wärme, Sonne, Süden */
  --ph-sun-rgb: 255 181 71;
  --ph-coral: #ff7a59;                /* Terrakotta-Wege, Abendlicht */
  --ph-coral-rgb: 255 122 89;
  --ph-court: #1f6bff;                /* Court-Blau */
  --ph-court-rgb: 31 107 255;
  --ph-grey-de: #8b95a3;              /* deutscher November */
  --ph-good: #5eead4;
  --ph-warn: #fbbf24;

  --ph-font: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ph-font-display: Fraunces, Georgia, serif;
  --ph-font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  --ph-r: .75rem;
  --ph-r-lg: 1.25rem;
  --ph-gutter: clamp(1rem, 4vw, 2.5rem);
  --ph-measure: 40rem;
  --ph-wide: 78rem;
  --ph-ease: cubic-bezier(.2, .8, .2, 1);
  --ph-ease-out: cubic-bezier(.16, 1, .3, 1);
  --ph-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9);
}

.ph {
  display: block;
  background-color: var(--ph-bg);
  color: var(--ph-ink);
  font: 400 1.0625rem/1.65 var(--ph-font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
.ph, .ph *, .ph *::before, .ph *::after { box-sizing: border-box; }
:where(.ph) :is(img, video, svg, canvas) { display: block; max-width: 100%; }
:where(.ph) a { color: var(--ph-primary); text-underline-offset: .2em; }
:where(.ph) button { font: inherit; color: inherit; cursor: pointer; }
:where(.ph) :focus-visible { outline: 2px solid var(--ph-primary); outline-offset: 3px; border-radius: 4px; }
:where(.ph) ::selection { background: rgb(var(--ph-primary-rgb) / .3); color: #fff; }

/* Tailwind-Preflight der Website neutralisieren (wie im Turnierbericht) */
:where(.ph) :is(p, blockquote, figure, dl, dd, hr, pre) { margin: revert; }
:where(.ph) :is(h1, h2, h3, h4, h5, h6) { margin: revert; font-size: revert; font-weight: revert; }
:where(.ph) :is(ul, ol) { margin: revert; padding: revert; list-style: revert; }
:where(.ph) a { text-decoration: revert; }

/* ---- Layout ---- */
:where(.ph) .ph-block { position: relative; padding: clamp(4.5rem, 11vw, 9rem) var(--ph-gutter); }
:where(.ph) .ph-measure { max-width: var(--ph-measure); margin-inline: auto; }
:where(.ph) .ph-wide { max-width: var(--ph-wide); margin-inline: auto; }
:where(.ph) .ph-dotgrid {
  background-image: radial-gradient(var(--ph-dots) 1px, transparent 1px);
  background-size: 16px 16px;
}

/* ---- Typo ---- */
:where(.ph) .ph-eyebrow {
  display: inline-flex; align-items: center; gap: .6rem; margin: 0;
  font: 700 .74rem/1 var(--ph-font-mono); letter-spacing: .2em; text-transform: uppercase;
  color: var(--ph-primary);
}
:where(.ph) .ph-eyebrow::before { content: ''; width: 1.6rem; height: 1px; background: currentColor; }
:where(.ph) .ph-eyebrow.is-sun { color: var(--ph-sun); }
:where(.ph) .ph-h2 {
  font: 900 clamp(2.3rem, 6.4vw, 5rem)/.98 var(--ph-font-display);
  letter-spacing: -.025em; margin: .9rem 0 1.3rem; color: var(--ph-ink);
  text-wrap: balance;
}
:where(.ph) .ph-h2 em { font-style: italic; font-weight: 700; color: var(--ph-primary); }
:where(.ph) .ph-h2 em.is-sun { color: var(--ph-sun); }
:where(.ph) .ph-h3 { font: 800 clamp(1.3rem, 2.4vw, 1.7rem)/1.15 var(--ph-font); letter-spacing: -.01em; margin: 0 0 .6rem; }
:where(.ph) .ph-lead { font-size: clamp(1.15rem, 2vw, 1.38rem); color: var(--ph-text); line-height: 1.6; margin: 0 0 1.4em; text-wrap: pretty; }
:where(.ph) .ph-prose p { margin: 0 0 1.2em; color: var(--ph-text); text-wrap: pretty; }
:where(.ph) .ph-prose strong { color: var(--ph-ink); }
:where(.ph) .ph-mono { font-family: var(--ph-font-mono); }
:where(.ph) .ph-muted { color: var(--ph-muted); }
:where(.ph) .ph-small { font-size: .85rem; color: var(--ph-muted); }

/* ---- Bausteine ---- */
:where(.ph) .ph-card {
  background: var(--ph-panel);
  border: 1px solid var(--ph-line);
  border-radius: var(--ph-r-lg);
}
:where(.ph) .ph-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .38rem .8rem; border-radius: 999px;
  border: 1px solid var(--ph-line2); background: var(--ph-panel);
  font: 600 .8rem/1 var(--ph-font); color: var(--ph-text);
  transition: background .2s, color .2s, border-color .2s;
}
:where(.ph) button.ph-chip[aria-pressed="true"] { background: var(--ph-primary); color: var(--ph-on-primary); border-color: var(--ph-primary); }
:where(.ph) .ph-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.5rem; border-radius: 999px; border: 0;
  background: var(--ph-primary); color: var(--ph-on-primary);
  font: 800 1rem/1 var(--ph-font); text-decoration: none;
  box-shadow: 0 0 40px rgb(var(--ph-primary-rgb) / .25);
  transition: transform .2s var(--ph-ease), box-shadow .2s;
}
:where(.ph) .ph-btn:hover { transform: translateY(-2px); box-shadow: 0 0 60px rgb(var(--ph-primary-rgb) / .4); }
:where(.ph) .ph-btn.is-ghost { background: transparent; color: var(--ph-ink); border: 1px solid var(--ph-line2); box-shadow: none; }
:where(.ph) .ph-badge {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .32rem .65rem; border-radius: .45rem;
  font: 700 .7rem/1 var(--ph-font-mono); letter-spacing: .12em; text-transform: uppercase;
  background: rgb(var(--ph-sun-rgb) / .14); color: var(--ph-sun); border: 1px solid rgb(var(--ph-sun-rgb) / .35);
}
:where(.ph) .ph-badge.is-cyan { background: rgb(var(--ph-primary-rgb) / .1); color: var(--ph-primary); border-color: rgb(var(--ph-primary-rgb) / .35); }

/* Foto-Rahmen mit LQIP-Hintergrund */
:where(.ph) .ph-photo { position: relative; overflow: hidden; border-radius: var(--ph-r-lg); background: var(--ph-bg3) center / cover no-repeat; }
:where(.ph) .ph-photo > img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Reveal ---- */
:where(.js .ph) .reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ph-ease-out), transform 1s var(--ph-ease-out); }
:where(.js .ph) .reveal.is-in { opacity: 1; transform: none; }
:where(.ph) .reveal[data-delay="1"] { transition-delay: .08s; }
:where(.ph) .reveal[data-delay="2"] { transition-delay: .16s; }
:where(.ph) .reveal[data-delay="3"] { transition-delay: .24s; }
:where(.ph) .reveal[data-delay="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .ph *, .ph *::before, .ph *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  :where(.ph) .reveal { opacity: 1; transform: none; }
}
:where(.ph) .visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Website-Rahmen: Header-Wrapper mit overflow-x:hidden würde position:sticky verhindern */
body.ph-page > .overflow-x-hidden { overflow-x: clip; }
.ph-page .glassmorphism {
  background: rgba(10, 10, 10, .65);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.ph-page .material-symbols-outlined { font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 48; }
