/* palaudelamusica.com — Stile der statischen Fassung (seit 12/2026).
   Die Inhaltsblöcke (Präfix pm-) bringen ihre Stile wie in WordPress selbst mit.
   Hier: Grundstile, auf die sich die Blöcke verlassen (statt GeneratePress), Schrift,
   Kopf mit Navigation, Fuß, Buchungsleiste fürs Handy, Bausteine at-price/at-rating.

   Farben (aus Logo und Blöcken der WordPress-Fassung, leicht nachgeschärft):
     Bordeaux #8B2E4F (Marke), dunkel #5A1B33 (Fuß, Hover), Orange #E0712B (Buchen),
     Gold #C9A24B und Grün #3E7B5A nur im Mosaikband (Säulen und Buntglas des Saals),
     Rosé #FBF5F7 (Flächen), Tinte #2B2326 (Text).
   Schrift: Alegreya (Überschriften) und Alegreya Sans (Text), eine Familie mit
   kalligrafischem Zug, passend zum katalanischen Modernisme. Japanisch fällt auf die
   Systemschrift zurück. */

:root {
  --pdm-bordeaux: #8B2E4F;
  --pdm-bordeaux-dunkel: #5A1B33;
  --pdm-orange: #E0712B;
  --pdm-orange-dunkel: #B9561A;
  --pdm-gold: #C9A24B;
  --pdm-gruen: #3E7B5A;
  --pdm-blau: #2F5D8A;
  --pdm-rose: #FBF5F7;
  --pdm-linie: #EADDE2;
  --pdm-tinte: #2B2326;
  --pdm-grau: #6A5F63;
  --pdm-text: "Alegreya Sans", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --pdm-titel: "Alegreya", "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
}

/* ---------- Grundstile ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  font-family: var(--pdm-text);
  font-size: 18px;
  line-height: 1.6;
  /* Alegreya Sans hat eine kleine x-Höhe; die Blöcke setzen feste px-Größen, so bleiben sie lesbar */
  font-size-adjust: 0.5;
  color: var(--pdm-tinte);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
:lang(ja) body, body:lang(ja) { line-height: 1.75; }
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .5em;
  font-family: var(--pdm-titel);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
}
p { margin: 0 0 .9em; }
ul, ol { margin: 0 0 1.2em 1.4em; padding: 0; }
img { max-width: 100%; height: auto; }
a { color: var(--pdm-bordeaux); text-decoration-thickness: 1px; text-underline-offset: .15em; }
a:hover { color: var(--pdm-bordeaux-dunkel); }
table { border-collapse: collapse; width: 100%; }
button { font-family: inherit; font-size: inherit; }
strong, b { font-weight: 700; }
:focus-visible { outline: 3px solid var(--pdm-gold); outline-offset: 2px; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); border: 0; white-space: nowrap;
}
.skip-link:focus {
  clip: auto; clip-path: none; width: auto; height: auto; margin: 0; z-index: 1000;
  left: 8px; top: 8px; padding: 10px 16px; background: #fff; color: var(--pdm-bordeaux);
  font-weight: 700; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

/* Inhalt: so breit wie die WordPress-Fassung (GeneratePress, 1200 px mit 40 px Rand) */
.site-main { display: block; }
.entry-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 56px;
}
.entry-content > :first-child { margin-top: 0; }
/* Die Blöcke setzen ihre Überschriften selbst; die Schrift kommt von hier */
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 { font-family: var(--pdm-titel); }
.entry-content h1 { text-transform: none !important; letter-spacing: 0 !important; }
.entry-content button, .entry-content a[class*="btn"], .entry-content .at-affiliate-button { font-family: var(--pdm-text); }
@media (max-width: 768px) {
  body { font-size: 17px; }
  .entry-content { padding: 0 20px 48px; }
}

/* ---------- Mosaikband (Trencadís der Säulen, oben und über dem Fuß) ---------- */
.pdm-band {
  height: 6px;
  background:
    linear-gradient(90deg,
      var(--pdm-bordeaux) 0 18%, var(--pdm-gold) 18% 27%, var(--pdm-gruen) 27% 41%,
      var(--pdm-orange) 41% 52%, var(--pdm-blau) 52% 63%, var(--pdm-gold) 63% 70%,
      var(--pdm-bordeaux) 70% 86%, var(--pdm-gruen) 86% 93%, var(--pdm-orange) 93% 100%);
}

/* ---------- Kopf ---------- */
.pdm-kopf { background: #fff; border-bottom: 1px solid var(--pdm-linie); position: relative; z-index: 50; }
.pdm-kopf__innen {
  max-width: 1200px; margin: 0 auto; padding: 12px 40px;
  display: flex; align-items: center; gap: 24px;
}
.pdm-kopf__logo { display: block; flex: 0 0 auto; line-height: 0; }
.pdm-kopf__logo img { width: 232px; height: auto; }
.pdm-kopf__schalter { display: none; }
.pdm-nav { margin-left: auto; }
.pdm-nav__liste { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.pdm-nav__punkt { position: relative; }
.pdm-nav__punkt > a, .pdm-nav__knopf {
  display: block; padding: 10px 12px; border: 0; background: none; cursor: pointer;
  color: var(--pdm-tinte); font-family: var(--pdm-text); font-size: 17px; font-weight: 500;
  text-decoration: none; line-height: 1.3; border-radius: 4px;
}
.pdm-nav__punkt > a:hover, .pdm-nav__knopf:hover { color: var(--pdm-bordeaux); background: var(--pdm-rose); }
.pdm-nav__punkt--aktiv > a, .pdm-nav__punkt--aktiv > .pdm-nav__knopf { color: var(--pdm-bordeaux); box-shadow: inset 0 -2px 0 var(--pdm-bordeaux); border-radius: 0; }
.pdm-nav__knopf::after {
  content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 8px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
}
.pdm-nav__sprache > .pdm-nav__knopf { font-weight: 700; letter-spacing: .02em; color: var(--pdm-bordeaux); }
.pdm-nav__unter {
  list-style: none; margin: 0; padding: 6px 0; position: absolute; top: 100%; right: 0; min-width: 210px;
  background: #fff; border: 1px solid var(--pdm-linie); border-top: 3px solid var(--pdm-bordeaux);
  border-radius: 0 0 6px 6px; box-shadow: 0 10px 24px rgba(43,35,38,.12);
  display: none;
}
.pdm-nav__punkt--unter:hover > .pdm-nav__unter,
.pdm-nav__punkt--unter:focus-within > .pdm-nav__unter,
.pdm-nav__punkt.offen > .pdm-nav__unter { display: block; }
.pdm-nav__unter a { display: block; padding: 8px 18px; color: var(--pdm-tinte); text-decoration: none; font-size: 16px; }
.pdm-nav__unter a:hover, .pdm-nav__unter a[aria-current] { background: var(--pdm-rose); color: var(--pdm-bordeaux); }

@media (max-width: 960px) {
  .pdm-kopf__innen { padding: 10px 20px; flex-wrap: wrap; }
  .pdm-kopf__logo img { width: 190px; }
  .pdm-kopf__schalter {
    display: block; margin-left: auto; width: 46px; height: 42px; padding: 0; position: relative;
    background: none; border: 1px solid var(--pdm-linie); border-radius: 6px; cursor: pointer;
  }
  .pdm-kopf__balken, .pdm-kopf__balken::before, .pdm-kopf__balken::after {
    position: absolute; left: 12px; width: 20px; height: 2px; background: var(--pdm-bordeaux); content: "";
  }
  .pdm-kopf__balken { top: 19px; }
  .pdm-kopf__balken::before { left: 0; top: -6px; }
  .pdm-kopf__balken::after { left: 0; top: 6px; }
  .pdm-nav { display: none; flex-basis: 100%; margin: 6px 0 4px; }
  .pdm-nav.offen { display: block; }
  .pdm-nav__liste { flex-direction: column; align-items: stretch; gap: 0; }
  .pdm-nav__punkt { border-top: 1px solid var(--pdm-linie); }
  .pdm-nav__punkt > a, .pdm-nav__knopf { width: 100%; text-align: left; padding: 12px 4px; }
  .pdm-nav__punkt--aktiv > a { box-shadow: none; }
  .pdm-nav__unter { position: static; box-shadow: none; border: 0; padding: 0 0 8px 12px; min-width: 0; }
  .pdm-nav__punkt--unter:hover > .pdm-nav__unter { display: none; }
  .pdm-nav__punkt.offen > .pdm-nav__unter { display: block; }
  .pdm-nav__sprache .pdm-nav__unter { display: none; columns: 2; }
}

/* ---------- Fuß ---------- */
.pdm-fuss { background: var(--pdm-bordeaux-dunkel); color: #F3E6EA; font-size: 16px; }
.pdm-fuss__innen { max-width: 1200px; margin: 0 auto; padding: 40px 40px 28px; }
.pdm-fuss a { color: #fff; }
.pdm-fuss__nav { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 22px; }
.pdm-fuss__nav a { text-decoration: none; font-weight: 500; }
.pdm-fuss__nav a:hover { text-decoration: underline; }
.pdm-fuss__hinweis { max-width: 70ch; color: #E3CDD5; }
.pdm-fuss__schwester, .pdm-fuss__recht { margin: 0 0 .4em; }
@media (max-width: 768px) {
  .pdm-fuss__innen { padding: 32px 20px 96px; }
}

/* ---------- Buchungsleiste fürs Handy (Ersatz für die Sticky-Elemente der WordPress-Fassung) ---------- */
.pdm-leiste { display: none; }
@media (max-width: 767px) {
  .pdm-leiste:not([hidden]) {
    display: flex; align-items: center; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--pdm-bordeaux); color: #fff; box-shadow: 0 -4px 14px rgba(0,0,0,.18);
  }
  .pdm-leiste__text { flex: 1; min-width: 0; font-size: 15px; line-height: 1.3; }
  .pdm-leiste__text strong { display: block; }
  .pdm-leiste__text .at-price { color: #F6DCE5; }
  .pdm-leiste__knopf {
    flex: 0 0 auto; padding: 10px 16px; border-radius: 6px; background: var(--pdm-orange);
    color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap;
  }
}

/* ---------- Bausteine Preis und Bewertung (vorher Plugin affiliate-tours) ---------- */
.at-price { white-space: nowrap; }
.at-price__label { font-weight: 400; }
.at-price__value { font-weight: 700; }
.at-rating { white-space: nowrap; }
.at-stars { color: #D99A1E; letter-spacing: 1px; }
.at-star--half { background: linear-gradient(90deg, #D99A1E 50%, #D8CDD1 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.at-star--empty { color: #D8CDD1; }
.at-rating__count { color: var(--pdm-grau); }
.at-affiliate-button {
  display: inline-block; padding: 12px 22px; border-radius: 6px;
  background: var(--pdm-orange); color: #fff !important; font-weight: 700; text-decoration: none !important;
  text-align: center; transition: background-color .15s ease;
}
.at-affiliate-button:hover, .at-affiliate-button:focus { background: var(--pdm-orange-dunkel); }

/* Interne Verlinkung (vorher Sitewide-Snippet) */
.pm-links { max-width: 800px; margin: 24px auto; padding: 20px; background: var(--pdm-rose); border-radius: 8px; border: 1px solid var(--pdm-linie); }
.pm-links h3 { font-size: 1.1rem; color: var(--pdm-bordeaux); margin-bottom: 12px; }
.pm-links ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pm-links li a { display: inline-block; background: #fff; color: var(--pdm-bordeaux); padding: 6px 14px; border-radius: 4px; font-size: .9rem; text-decoration: none; border: 1px solid var(--pdm-linie); }
.pm-links li a:hover { background: var(--pdm-bordeaux); color: #fff; }

/* 404 */
.pdm-404 { max-width: 720px; margin: 48px auto; }
.pdm-404 h1 { color: var(--pdm-bordeaux); font-size: 2.2rem; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

.pdm-recht { max-width: 780px; margin: 40px auto 0; }
.pdm-recht h1 { color: var(--pdm-bordeaux); }
