/**
 * Base: reset, typography, buttons, utilities.
 * Becomes assets/css/base.css in the theme (loaded on every page).
 */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--aw-header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--aw-black);
  color: var(--aw-white);
  font-family: var(--aw-font-body);
  font-size: var(--aw-step-0);
  line-height: 1.65;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }

h1, h2, h3 {
  font-family: var(--aw-font-display);
  font-weight: 600;
  line-height: .88;
  text-transform: uppercase;
  letter-spacing: .005em;
  margin: 0 0 .4em;
  text-wrap: balance;
}

h4, h5, h6 {
  font-family: var(--aw-font-body);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 .5em;
}

p { margin: 0 0 1em; text-wrap: pretty; }

/* Links: the underline keeps its shape; on hover only its colour brightens (smoothly) */
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-decoration-color: rgb(255 255 255 / .45);
  text-underline-offset: .22em;
  transition: color var(--aw-dur) var(--aw-ease-out), text-decoration-color var(--aw-dur) var(--aw-ease-out);
}
a:hover { text-decoration-color: currentColor; }

:focus-visible {
  outline: 2px solid var(--aw-white);
  outline-offset: 3px;
  border-radius: 2px;
}

.aw-wrap {
  width: min(100% - 2 * var(--aw-gutter), var(--aw-wide));
  margin-inline: auto;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed; z-index: 1000; top: .5rem; left: .5rem;
  width: auto; height: auto; clip: auto;
  padding: .6rem 1rem;
  background: var(--aw-white); color: var(--aw-black);
}

/* Buttons ---------------------------------------------------------------- */
.aw-btn,
.wp-block-button .wp-block-button__link {   /* core button: .wp-block-button raises specificity above WP's own styles */
  /* Outline in the attraction colour (red elsewhere), white text; filled on hover */
  --btn-bg: transparent;
  --btn-fg: var(--aw-white);
  --btn-bd: var(--c, var(--aw-red));
  display: inline-flex;
  align-items: center;
  gap: .6em;
  min-height: 44px;
  padding: .5em 1.3em .4em;
  border: 2px solid var(--btn-bd);
  border-radius: var(--aw-radius-s);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--aw-font-display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    background-color var(--aw-dur) var(--aw-ease-out),
    border-color var(--aw-dur) var(--aw-ease-out),
    color var(--aw-dur) var(--aw-ease-out),
    box-shadow var(--aw-dur) var(--aw-ease-out),
    transform var(--aw-dur-fast) var(--aw-ease-out);
}
:is(.aw-btn, .wp-block-button .wp-block-button__link):hover {
  --btn-bg: var(--c, var(--aw-red));
  color: var(--btn-fg);
  box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--btn-bg) 60%, transparent);
}
/* Filled (hover): text colour follows the attraction colour – white on dark colours
   (red, violet), black on light ones (turquoise, blue) */
@supports (color: oklch(from red l c h)) {
  :is(.aw-btn, .wp-block-button .wp-block-button__link):hover { --btn-fg: oklch(from var(--c, var(--aw-red)) clamp(0, (.66 - l) * 1000, 1) 0 0); }
}
:is(.aw-btn, .wp-block-button .wp-block-button__link):active { transform: translateY(1px) scale(.98); }

.aw-btn svg { width: 1em; height: 1em; flex: none; transition: transform var(--aw-dur) var(--aw-ease-out); }
.aw-btn:hover svg { transform: translateX(3px); }

.aw-btn--ghost,
.wp-block-button.is-style-outline > .wp-block-button__link {
  --btn-bg: transparent;
  --btn-bd: rgb(255 255 255 / .5);
  --btn-fg: var(--aw-white);
}
:is(.aw-btn--ghost, .wp-block-button.is-style-outline > .wp-block-button__link):hover {
  --btn-bg: var(--aw-white);
  --btn-bd: var(--aw-white);
  --btn-fg: var(--aw-black);
  box-shadow: 0 10px 30px -8px rgb(255 255 255 / .35);
}

.aw-btn--small { min-height: 36px; font-size: 1rem; padding-inline: 1em; }

/* Button row */
.aw-actions,
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.wp-block-button .wp-block-button__link { width: auto; border-radius: var(--aw-radius-s); }

/* Rating stars + Google label (reviews block, footer badge) */
.aw-stars {
  --rating: 5;
  --size: 22px;
  position: relative;
  display: inline-block;
  width: calc(var(--size) * 5);
  height: var(--size);
  margin-top: .35rem;
  background: rgb(255 255 255 / .18);
  -webkit-mask: var(--star) repeat-x 0 0 / var(--size) var(--size);
  mask: var(--star) repeat-x 0 0 / var(--size) var(--size);
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.8l3.1 6.6 7.2.9-5.3 5 1.4 7.1L12 17.9l-6.4 3.5L7 14.3 1.7 9.3l7.2-.9z'/%3E%3C/svg%3E");
}
.aw-stars::before {
  content: "";
  position: absolute; inset: 0;
  width: calc(var(--rating) / 5 * 100%);
  background: #fbbc04;
}
.aw-stars--small { --size: 15px; margin: 0; }

.aw-google { display: inline-flex; align-items: center; gap: .45rem; color: var(--aw-mute); font-size: var(--aw-step--1); }
.aw-google svg { width: 18px; height: 18px; }

/* Drop-downs (core Details block): FAQ, AGB … – used inside sections and directly in page text.
   Height animation: main.js */
.wp-block-details {
  margin: 0;
  border-bottom: 1px solid rgb(255 255 255 / .2);
}
:not(.wp-block-details) + .wp-block-details,
.wp-block-details:first-child { border-top: 1px solid rgb(255 255 255 / .2); }
.aw-content > .wp-block-details + .wp-block-details { margin-top: 0; }
.aw-prices__inner > .wp-block-details { max-width: 70ch; }
.wp-block-details > summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem 0 .85rem;   /* a little less above, more below: the text sits optically centred */
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  transition: color var(--aw-dur-fast);
}
.wp-block-details > summary::-webkit-details-marker { display: none; }
.wp-block-details > summary::after {
  content: "";
  flex: none;
  width: 10px; height: 10px;
  margin-top: .4em;
  border-right: 2px solid var(--c);
  border-bottom: 2px solid var(--c);
  transform: rotate(45deg);
  transition: transform var(--aw-dur) var(--aw-ease-out);
}
.wp-block-details[open]:not(.is-closing) > summary::after { transform: rotate(-135deg); }
.wp-block-details > summary:hover { color: color-mix(in srgb, var(--c) 60%, white); }
.wp-block-details > :not(summary) { color: #d5d9e0; }
.wp-block-details > :last-child { padding-bottom: .9rem; }
.wp-block-details > summary + * { margin-top: .1rem; }
.wp-block-details ul { padding-left: 1.2em; }
/* Content fades in while the drop-down opens */
@media (prefers-reduced-motion: no-preference) {
  .wp-block-details > :not(summary) { transition: opacity .35s var(--aw-ease-out) .05s; }
  .wp-block-details.is-closing > :not(summary) { opacity: 0; transition-delay: 0s; transition-duration: .2s; }
  .wp-block-details[open]:not(.is-closing) > :not(summary) { animation: aw-details-in .45s var(--aw-ease-out) both; }
}
@keyframes aw-details-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Section rhythm --------------------------------------------------------- */
.aw-section { padding-block: var(--aw-section); }

/* Reveal on scroll (only one orchestrated entrance per section, set via JS) */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--aw-dur-slow) var(--aw-ease-out), transform var(--aw-dur-slow) var(--aw-ease-out);
  }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Theme only ------------------------------------------------------------- */
.aw-sentinel { position: absolute; top: 140px; width: 1px; height: 1px; pointer-events: none; }

/* Pages without a hero block (Impressum, AGB …) */
.aw-page-title { padding-block: clamp(3.5rem, 2rem + 4vw, 6rem) clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.aw-page-title h1 { font-size: var(--aw-step-4); }

/* Core blocks inside page content get the reading width; Actionworld blocks run full width */
.aw-content > :is(p, h1, h2, h3, h4, h5, h6, ul, ol, blockquote, table, hr, .wp-block-buttons, .wp-block-group,
  .wp-block-columns, .wp-block-table, .wp-block-image, .wp-block-embed, .wp-block-quote, .wp-block-separator, .wp-block-details) {
  width: min(100% - 2 * var(--aw-gutter), var(--aw-content));
  margin-inline: auto;
}
.aw-content > .alignwide { width: min(100% - 2 * var(--aw-gutter), var(--aw-wide)); margin-inline: auto; }
.aw-content > .alignfull { width: 100%; }
.aw-content > :is(h2, h3) { margin-top: 2em; }
.aw-content > :last-child:not([class*="aw-"]) { margin-bottom: var(--aw-section); }
.aw-content :is(p, li, td, dd) > a:not([class]) { text-decoration-line: underline; }   /* -line only: the shorthand would reset thickness and colour */

/* Single posts (info) */
.aw-single__label { margin: 0 0 1rem; color: var(--aw-mute); font-size: var(--aw-step--1); font-weight: 600; letter-spacing: .3em; text-transform: uppercase; }
.aw-content > * + * { margin-top: 1.25rem; }
.aw-content > :is(section, nav) { margin-top: 0; }   /* full-width sections sit flush: no strip between two coloured bands */
.aw-content > :first-child { margin-top: 0; }
.aw-content .wp-block-embed iframe { display: block; border: 0; border-radius: var(--aw-radius-m); }
/* Embeds without WordPress' aspect-ratio setting: make them responsive too */
.aw-content .wp-block-embed:not(.wp-has-aspect-ratio) iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; }

/* Utility: soft light panel – class "lightbackground" (Block → Erweitert → Zusätzliche CSS-Klasse).
   For images made for light backgrounds (e.g. Paketpreise) or text that should stand out. */
.lightbackground {
  position: relative;
  padding: clamp(1.25rem, .75rem + 2.5vw, 3rem);
  overflow: hidden;
  border-radius: var(--aw-radius-m);
  background:
    radial-gradient(120% 80% at 50% 0%, #ffffff 0%, transparent 60%),
    linear-gradient(180deg, #f4f4f6 0%, #e6e7eb 100%);
  color: var(--aw-ink);
  box-shadow: 0 40px 90px -45px rgb(0 0 0 / .9);
}
/* Thin line in the attraction colours along the top edge */
.lightbackground::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  background: var(--aw-spectrum, var(--c));
}
.lightbackground img { display: block; max-width: min(100%, 760px); height: auto; margin-inline: auto; border-radius: 0 !important; }
.lightbackground :is(h1, h2, h3, h4, h5, h6, p, li, a, figcaption) { color: var(--aw-ink); }
.lightbackground a { text-decoration-color: rgb(20 20 20 / .4); }
.lightbackground a:hover { text-decoration-color: currentColor; }
.lightbackground.wp-block-image { margin-inline: 0; }

/* Footnotes ("* …", class aw-footnote): same small size everywhere */
.aw-footnote,
.aw-prices__inner .aw-footnote,
.aw-prices__inner .wp-block-column > .aw-footnote { font-size: .9rem; color: var(--aw-mute); }

/* Links to PDF files get a small document icon */
a[href$=".pdf" i]::after,
a[href*=".pdf?" i]::after {
  content: "";
  display: inline-block;
  flex: none;
  width: .95em;
  height: 1.1em;
  margin-left: .45em;
  vertical-align: -.18em;
  background: currentColor;
  -webkit-mask: var(--aw-pdf) center / contain no-repeat;
  mask: var(--aw-pdf) center / contain no-repeat;
  --aw-pdf: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 24'%3E%3Cpath d='M3 1h9l5 5v15a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2zm8 1.5V7h4.5' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3Ctext x='10' y='18.5' font-family='Arial,sans-serif' font-size='6.2' font-weight='700' text-anchor='middle'%3EPDF%3C/text%3E%3C/svg%3E");
}

