/* IHG Innsbruck – one stylesheet for the whole website.

   Everything block specific stays inline in the area brick templates; this file
   only holds what inline styles cannot express: resets, keyframes, media
   queries, pseudo states, dropdown behaviour and the scroll reveal.

   Colours: #24352A (fir green), #1B2B22, #B08A52 (brass), #F0E2CC,
            #F7F6F3 (page background), #1B1B1B.
   Fonts:   Archivo (headlines), Manrope (text), Space Mono (labels/meta). */

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:'Manrope',system-ui,sans-serif;background:#F7F6F3;color:#1B1B1B;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
h1,h2,h3,h4,p,ul{margin:0;padding:0}
ul{list-style:none}
a{color:#B08A52;text-decoration:none;transition:color .3s ease,opacity .3s ease}
a:hover{color:#24352A}
img,iframe{display:block;max-width:100%}

/* ── Scroll reveal ─────────────────────────────────────
   Templates only emit `data-reveal` (and never in edit mode); the start state
   lives here so the brick markup stays readable. main.js sets the inline
   opacity/transform that overrides these rules once an element enters view. */
[data-reveal]{opacity:0;transform:translateY(28px);transition:opacity .9s cubic-bezier(.16,1,.3,1),transform .9s cubic-bezier(.16,1,.3,1)}
[data-reveal-zoom]{opacity:0;transform:scale(1.05);transition:opacity 1s cubic-bezier(.16,1,.3,1),transform 1s cubic-bezier(.16,1,.3,1)}
[data-reveal][data-reveal-delay="2"]{transition-delay:.05s}
[data-reveal][data-reveal-delay="3"]{transition-delay:.1s}
[data-reveal][data-reveal-delay="4"]{transition-delay:.15s}
[data-reveal][data-reveal-delay="5"]{transition-delay:.2s}
[data-reveal][data-reveal-delay="6"]{transition-delay:.25s}

/* ── Navigation ────────────────────────────────────────── */
@media (max-width:1180px){
  [data-desktop]{display:none !important}
  [data-menu-btn]{display:flex !important}
}
@media (min-width:1181px){
  [data-menu-btn]{display:none !important}
  [data-mobile-menu]{display:none !important}
}
[data-nav-item]{position:relative}
[data-submenu]{opacity:0;visibility:hidden;transform:translateY(6px);transition:opacity .25s ease,transform .25s ease,visibility .25s}
[data-nav-item]:hover > [data-submenu],
[data-nav-item]:focus-within > [data-submenu]{opacity:1;visibility:visible;transform:translateY(0)}
[data-submenu] a:hover{background:rgba(240,226,204,.1);color:#FFFFFF}
[data-navlink]:hover{opacity:.6}
[data-cta]:hover{transform:translateY(-2px)}
/* the label stays white - the global a:hover would darken it against the brass */
[data-contact-cta]:hover{transform:translateY(-2px);background:#C79A5C;color:#FFFFFF}

/* ── Keyframes ─────────────────────────────────────────── */
@keyframes ihgRise{from{opacity:0;transform:translateY(26px)}to{opacity:1;transform:translateY(0)}}
@keyframes ihgDrawX{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes ihgDrawY{from{transform:scaleY(0)}to{transform:scaleY(1)}}
@keyframes ihgRingIn{from{opacity:0;transform:translate(50%,-50%) scale(.82)}to{opacity:1;transform:translate(50%,-50%) scale(1)}}
@keyframes ihgRingInMobile{from{opacity:0;transform:scale(.85)}to{opacity:1;transform:scale(1)}}
@keyframes ihgFloat{0%,100%{transform:translate(50%,-50%) scale(1)}50%{transform:translate(50%,-50%) scale(1.015)}}
@keyframes ihgPulseDot{0%,100%{transform:translate(-50%,-50%) scale(1);box-shadow:0 0 30px rgba(176,138,82,.7)}50%{transform:translate(-50%,-50%) scale(1.25);box-shadow:0 0 48px rgba(176,138,82,1)}}
@keyframes ihgScrollCue{0%{transform:translateX(-50%) translateY(0);opacity:1}70%{opacity:.4}100%{transform:translateX(-50%) translateY(11px);opacity:0}}
@keyframes ihgPulse{0%,100%{transform:scale(1);opacity:.9}50%{transform:scale(1.04);opacity:1}}

/* ── Hero on small screens ─────────────────────────────── */
@media (max-width:640px){
  [data-hero-cross]{display:none !important}
  [data-hero-side]{display:none !important}
  [data-hero-facts]{display:grid !important;grid-template-columns:repeat(2,1fr) !important;gap:24px 0 !important;width:100%}
  [data-hero-fact]{padding:0 !important;border-left:none !important}
  [data-hero-rings]{top:5% !important;right:-46% !important;width:min(62vh,440px) !important;height:min(62vh,440px) !important;transform:none !important;animation:ihgRingInMobile 1.2s cubic-bezier(.16,1,.3,1) .4s both !important}
}

/* ── Card hover ────────────────────────────────────────── */
[data-event-card]:hover{transform:translateY(-5px);box-shadow:0 26px 56px rgba(27,43,34,.13);border-color:rgba(176,138,82,.5)}
[data-person]:hover{transform:translateY(-4px);box-shadow:0 24px 50px rgba(27,43,34,.12);border-color:rgba(176,138,82,.45)}
[data-contact]:hover{color:#B08A52}
[data-card-dark]:hover{transform:translateY(-3px);border-color:#B08A52}

/* ── Leaflet / map ─────────────────────────────────────── */
.ihg-tiles{filter:grayscale(0.3) contrast(1.03)}
.leaflet-container{font-family:'Manrope',sans-serif}
.leaflet-popup-content{font-size:0.9rem;line-height:1.5}
.leaflet-control-attribution{padding:2px 8px !important;font-size:10px}

/* ── Event teaser ──────────────────────────────────────── */
@media (max-width:640px){
  [data-teaser-head]{flex-direction:column !important;align-items:flex-start !important}
}

/* ── Event / article rail ──────────────────────────────────
   Set by the grid partials once a listing holds more than three cards: one row
   that scrolls sideways instead of wrapping. Three cards per view on a wide
   screen, never narrower than 268px, so a phone shows one card and a slice of
   the next as the swipe affordance. The container carries --rail-gap; dark
   sections override --rail-thumb. */
[data-event-rail]{scrollbar-width:thin;scrollbar-color:var(--rail-thumb,rgba(36,53,42,.22)) transparent;overscroll-behavior-x:contain}
[data-event-rail]::-webkit-scrollbar{height:6px}
[data-event-rail]::-webkit-scrollbar-track{background:transparent}
[data-event-rail]::-webkit-scrollbar-thumb{background:var(--rail-thumb,rgba(36,53,42,.22));border-radius:100px}
[data-event-rail]:hover::-webkit-scrollbar-thumb{background:var(--rail-thumb-hover,rgba(36,53,42,.4))}
[data-event-rail]>*{flex:0 0 clamp(268px,calc((100% - 2 * var(--rail-gap,20px)) / 3),100%);scroll-snap-align:start}
@media (prefers-reduced-motion:reduce){
  [data-event-rail]{scroll-snap-type:none !important}
}

/* the rail's prev/next pair — the outline pill of the "Alle Termine" link,
   sized down to a chevron. Fill tokens come from the partial, per theme. */
[data-rail-nav] button:hover:not(:disabled){background:var(--rail-btn-bg,#24352A);border-color:var(--rail-btn-line,#24352A);color:var(--rail-btn-fg,#F0E2CC)}
[data-rail-nav] button:focus-visible{outline:2px solid var(--rail-btn-line,#24352A);outline-offset:3px}
[data-rail-nav] button:disabled{opacity:.32;cursor:default}

/* ── Site-wide notices ─────────────────────────────────────
   Hover states and the dialog backdrop; the notices themselves are styled
   inline in cms/includes/alerts.html.twig like every other block. */
[data-closure-close]:hover{background:rgba(27,27,27,.22)}
[data-alert-close]:hover{background:rgba(240,226,204,.12);border-color:rgba(240,226,204,.5)}
[data-alert-modal]::backdrop{background:rgba(20,30,24,.62);backdrop-filter:blur(3px)}
[data-alert-modal][open]{animation:ihgAlertIn .42s cubic-bezier(.16,1,.3,1) both}
@keyframes ihgAlertIn{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){
  [data-alert-modal][open]{animation:none}
}

/* ── Text pages (only via body class, so nothing leaks) ────
   The `.rte` scale is tuned for a detail-page body, where one heading opens a
   long run of prose, so h2 climbs to 2.15rem. A legal page is the opposite
   shape: many short sections under one big H1. The handover sets its section
   heading at 1.35rem and separates sections by space rather than size, and at
   the detail-page scale those headings compete with the H1 above them.

   Paragraph size, colour and measure already match the handover through the
   container in cms/default/text.html.twig, so only the headings and the list
   rhythm are restated here. `.rte ul` already carries the disc. */
body.page-legal .rte h2{font-size:clamp(1.2rem,1.9vw,1.35rem);color:#24352A;margin:clamp(40px,5vw,60px) 0 16px}
/* outranks the h2 rule above, which would otherwise beat the generic
   `.rte > *:first-child` reset and double the gap under the H1 */
body.page-legal .rte > *:first-child{margin-top:0}
body.page-legal .rte h3{font-size:clamp(1.02rem,1.4vw,1.1rem);margin:1.9em 0 .45em}
body.page-legal .rte ul,body.page-legal .rte ol{padding-left:1.2em;line-height:1.9}
body.page-legal .rte li{margin:0 0 .3em}

/* ── Übersichtsseiten: Terminliste / Berichteliste (15, 16) ── */
[data-list-feature]:hover{box-shadow:0 30px 64px rgba(27,43,34,.14);border-color:rgba(176,138,82,.5);transform:translateY(-4px)}
[data-list-search]:focus{border-color:#B08A52}
[data-list-search]::placeholder{color:#9AA6A0}
[data-list-more]:hover{background:#24352A;color:#F0E2CC;border-color:#24352A}
@media (max-width:960px){
  [data-list-feature]{grid-template-columns:1fr !important}
  [data-feature-media]{aspect-ratio:16/9 !important;min-height:0 !important}
}
@media (max-width:900px){
  [data-list-tools]{flex-direction:column !important;align-items:stretch !important}
  [data-search-field]{max-width:none !important}
  [data-list-head]{flex-direction:column !important;align-items:flex-start !important}
}

/* ── Rich text (.rte) ──────────────────────────────────────
   The element palette an editor can produce in the WYSIWYG: nothing here may
   be left unstyled, because the global reset above removes list markers and
   all margins, and the container only sets the base font/colour.
   Container spacing (max-width, base size) stays inline in the template. */
.rte > *:first-child{margin-top:0}
.rte > *:last-child{margin-bottom:0}

.rte p{margin:0 0 1.15em}
.rte .lead{font-size:clamp(1.16rem,1.7vw,1.34rem);line-height:1.6;color:#1B2B22;font-weight:500;margin-bottom:1.3em}
/* editors usually bold the lead; the design shows it in normal weight */
.rte .lead strong{font-weight:inherit}
.rte p:empty{display:none}

.rte strong{font-weight:700;color:#1B2B22}
.rte em{font-style:italic}
.rte u{text-decoration:underline;text-underline-offset:.18em}
.rte a{color:#B08A52;text-decoration:underline;text-underline-offset:.18em;text-decoration-thickness:1px}
.rte a:hover{color:#24352A}

.rte h2,.rte h3,.rte h4,.rte h5,.rte h6{font-family:'Archivo',sans-serif;color:#1B2B22;letter-spacing:-.02em;line-height:1.15;text-wrap:balance}
.rte h2{font-size:clamp(1.6rem,2.8vw,2.15rem);font-weight:800;margin:1.8em 0 .55em}
.rte h3{font-size:clamp(1.25rem,2vw,1.5rem);font-weight:800;margin:1.7em 0 .5em}
.rte h4{font-size:clamp(1.08rem,1.5vw,1.22rem);font-weight:700;margin:1.6em 0 .45em}
.rte h5{font-size:1.04rem;font-weight:700;margin:1.5em 0 .4em}
.rte h6{font-family:'Space Mono',monospace;font-size:.78rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:#8A6A3A;margin:1.6em 0 .5em}

.rte hr{border:0;border-top:1px solid rgba(27,43,34,.14);margin:2.4em 0}

.rte ul,.rte ol{margin:0 0 1.2em;padding-left:1.35em}
.rte ul{list-style:disc}
.rte ol{list-style:decimal}
.rte li{margin:0 0 .7em;padding-left:.25em}
.rte li::marker{color:#B08A52}
.rte ul ul,.rte ol ol,.rte ul ol,.rte ol ul{margin:.7em 0 .3em}
.rte ul ul{list-style:circle}

.rte blockquote{margin:2.1em 0;padding:clamp(20px,2.6vw,28px) clamp(22px,3vw,32px);background:#FFFFFF;border:1px solid rgba(27,43,34,.08);border-left:3px solid #B08A52;border-radius:16px;box-shadow:0 18px 42px -30px rgba(27,43,34,.55);color:#1B2B22;font-style:normal}
.rte blockquote p{font-family:'Archivo',sans-serif;font-weight:700;font-size:1.06em;line-height:1.5;color:#1B2B22;margin:0 0 .55em}
.rte blockquote p:last-child{margin-bottom:0}
/* Attribution line. <cite>/<footer> are explicit; the trailing-paragraph rule
   is what an editor actually produces, but it also catches a genuine second
   quote paragraph — drop that selector if quotes ever run to two paragraphs. */
.rte blockquote cite,
.rte blockquote footer,
.rte blockquote > p:last-child:not(:only-child){font-family:'Space Mono',monospace;font-size:.72rem;font-weight:700;font-style:normal;letter-spacing:.16em;text-transform:uppercase;color:#8A6A3A;display:block;margin-top:.1em}

.rte table{width:100% !important;height:auto !important;margin:1.6em 0;border-collapse:separate;border-spacing:0;border:1px solid rgba(27,43,34,.1);border-radius:18px;overflow:hidden;font-size:.97em}
/* !important because dragging a table handle in TinyMCE writes a pixel height
   and a percentage width straight onto the element (`style="width: 25.1805%"`),
   and an inline style outranks this rule – the table then stops short of the
   column for no reason a reader can see. Every table here is meant to fill its
   column, so the editor's sizing is dropped rather than honoured. Inline widths
   on the cells survive on purpose: those set the column proportions. */
.rte tr,.rte th,.rte td{height:auto !important}
/* A table that does not fit scrolls inside this box instead of being turned
   into a block itself – as a block it would shrink to its content and stop
   filling the column on a phone. The box is added by main.js (initRteTables):
   the table markup comes out of the editor and cannot carry a wrapper. */
[data-rte-scroll]{margin:1.6em 0;overflow-x:auto;-webkit-overflow-scrolling:touch}
[data-rte-scroll] > table{margin:0}
.rte caption{caption-side:bottom;text-align:left;font-size:.84rem;line-height:1.5;color:rgba(27,27,27,.45);padding-top:.9em}
.rte thead{background:#24352A}
.rte th{font-family:'Space Mono',monospace;font-size:.68rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:rgba(240,226,204,.86);text-align:left;padding:15px 20px;white-space:nowrap}
.rte td{padding:15px 20px;border-top:1px solid rgba(27,43,34,.08);vertical-align:top}
.rte tbody tr:first-child td{border-top:0}
.rte td:first-child{color:#1B2B22;font-weight:600}
/* the design highlights the trailing value column (times, results) */
.rte td:last-child:not(:first-child){color:#8A6A3A;font-weight:600;white-space:nowrap}

.rte small,.rte .note{font-size:.86em;line-height:1.6;color:rgba(27,27,27,.45)}
.rte small strong,.rte .note strong{color:inherit}

.rte code{font-family:'Space Mono',monospace;font-size:.88em;background:rgba(27,43,34,.06);padding:.15em .4em;border-radius:6px}
.rte abbr[title]{text-decoration:underline dotted;text-underline-offset:.18em;cursor:help}
.rte img{max-width:100%;height:auto;border-radius:18px;margin:1.4em 0}
.rte figcaption{font-size:.84rem;color:rgba(27,27,27,.45);margin-top:.6em}

@media (max-width:640px){
  /* the table keeps its table layout so it still spans the full width; a wide
     one scrolls in its [data-rte-scroll] box */
  .rte th,.rte td{padding:13px 15px}
}

/* ── Detail page: grid, gallery, downloads, tags ────────── */
[data-gallery-prev]:hover,[data-gallery-next]:hover{background:#FFFFFF;transform:translateY(-1px)}
[data-gallery-thumb]:hover{opacity:1 !important}
[data-download-card]:hover{border-color:rgba(176,138,82,.55);box-shadow:0 16px 34px -26px rgba(27,43,34,.6);transform:translateY(-2px)}
[data-tagchip]:hover{background:#B08A52;border-color:#B08A52;color:#FFFFFF}
/* the outlined second button of the Termin sidebar */
[data-ghost]:hover{background:rgba(240,226,204,.1);color:#FFFFFF}

/* below the sidebar breakpoint the aside becomes a normal block after the text */
@media (max-width:1024px){
  [data-detail-grid]{grid-template-columns:1fr !important}
  [data-aside]{position:static !important}
}
@media (max-width:640px){
  [data-gallery-thumb]{width:72px !important}
  /* the podium stacks rather than squeezing three cards into a phone width */
  [data-podium]{grid-template-columns:1fr !important}
}
