/* InstantImpro.Site — Design-Relaunch November 2026.
   Vorlage: assets/261102-instant-relaunch.pdf (Desktop, 1366 px breit),
            assets/261102-instant-relaunch-mobil.pdf (Mobil, 380 px breit),
            assets/261105-Werte-Website-instant.pdf (Farben, Schriftschnitte).
   Wird zusätzlich zum BaseSite-Tailwind-Build geladen (reines CSS, kein Tailwind).
   Navigationsbeschriftungen werden exakt so ausgegeben, wie sie im Backend stehen
   (keine CSS-Versalien), weil das Design „FOTOS & Co" gemischt schreibt.
   Alle Maße sind aus den PDFs gemessen; zwischen 380 px und 1366 px Viewport-Breite
   skalieren die Schriftgrößen linear (clamp), darüber bleiben sie konstant. */

:root {
  --ii-pink: #d40075;
  --ii-teal: #005663;
  --ii-shadow: 6px 6px 14px rgba(0, 0, 0, 0.35);

  /* 0 px bei 380 px Viewport, 1 px bei 1366 px — Basis der fluiden Schriftgrößen */
  --ii-vw: calc((100vw - 380px) / 986);

  --ii-text:     clamp(16px,   calc(16px   + 8    * var(--ii-vw)), 24px); /* Fließtext        16 → 24   */
  --ii-headline: clamp(32px,   calc(32px   + 48   * var(--ii-vw)), 80px); /* Headline / Datum 32 → 80   */
  --ii-subline:  clamp(24px,   calc(24px   + 21   * var(--ii-vw)), 45px); /* Subline          24 → 45   */
  --ii-nav:      clamp(49.5px, calc(49.5px + 10.5 * var(--ii-vw)), 60px); /* Hauptnavigation  49,5 → 60 */
  --ii-nav-sub:  clamp(23px,   calc(23px   + 5    * var(--ii-vw)), 28px); /* Nebennavigation  23 → 28   */
  --ii-subnav:   clamp(14px,   calc(14px   + 14   * var(--ii-vw)), 28px); /* Unternavigation  14 → 28   */

  /* Hero-Höhe: mobil 400/380 der Breite, im Querformat höchstens 85 % des Viewports;
     Inhaltsspalte mit 24 px Rand */
  --ii-hero-h: min(calc(100vw * 1.0526), 85vh);
  --ii-content-left: 24px;
  --ii-content-right: 24px;
  --ii-subnav-right: 24px;
}

/* Ab 640 px (Tablet hochkant, iPad mini, Smartphone quer) gilt die Desktop-Komposition.
   Damit Navigationskasten, Kreistext, Unternavigation und Headline auf dem Tablet nicht
   kollidieren, skalieren ihre Größen proportional zur Breite (Referenz 1366 px) und
   bleiben darüber stehen. Fließtext behält die eigene Mindestgröße (siehe --ii-text). */
@media (min-width: 640px) {
  :root {
    /* 800/1366 der Breite, aber nie höher als 86 % des Viewports */
    --ii-hero-h: min(58.5vw, 86vh);

    /* Inhaltsspalte: auf dem Tablet schmalere Ränder — links bündig mit dem
       Navigationskasten (11,7 %), rechts 10 %; zwischen 768 und 1200 px fließend
       zu den Vorlagenwerten 20,7 % / 21,8 % (Unternavigation: 20,7 %) */
    --ii-content-left:  clamp(11.7%, calc(36.57vw - 191px), 20.7%);
    --ii-content-right: clamp(10%, calc(42.73vw - 251px), 21.8%);
    --ii-subnav-right:  clamp(10%, calc(42.73vw - 251px), 20.7%);

    --ii-headline: min(5.857vw, 80px); /* 80 px bei 1366 */
    --ii-subline:  min(3.294vw, 45px); /* 45 px bei 1366 */
    --ii-nav:      min(4.392vw, 60px); /* 60 px bei 1366 */
    --ii-nav-sub:  max(14px, min(2.05vw, 28px));  /* 28 px bei 1366 */
    --ii-subnav:   max(14px, min(1.977vw, 27px)); /* 27 px bei 1366 */
  }
}

/* Alles richtet sich an einem maximal 1366 px breiten, zentrierten Rahmen aus;
   das Hero-Foto läuft dahinter über die volle Breite. */
.ii-frame {
  position: relative;
  max-width: 1366px;
  height: 100%;
  margin: 0 auto;
}

/* ---------------------------------------------------------------- Hero -- */

.ii-hero {
  position: relative;
  height: var(--ii-hero-h);
  background: #141414;
  color: #fff;
}

.ii-hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.ii-hero__media picture,
.ii-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* Social-Icons oben links, bündig mit der Inhaltsspalte */
.ii-social {
  position: absolute;
  z-index: 3;
  top: 20px;
  left: calc(var(--ii-content-left) - 0.1em);
  display: flex;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: clamp(24px, calc(24px + 17 * var(--ii-vw)), 41px);
}

.ii-social a {
  display: block;
  width: 1em;
  height: 1em;
  color: #fff;
}

.ii-social a:hover,
.ii-social a:focus-visible {
  color: var(--ii-pink);
}

.ii-social svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Kreistext oben rechts — ersetzt das Logo */
.ii-circle {
  position: absolute;
  z-index: 2;
  top: 42.75%;
  left: 49.2%;
  height: 82%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  color: #fff;
}

.ii-circle svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ii-circle text {
  font-family: "DM Sans", Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 50.7px;
  font-variation-settings: "opsz" 18;
  fill: currentColor;
}

.ii-circle:hover,
.ii-circle:focus-visible {
  color: #fff;
}

@media (min-width: 640px) {
  .ii-social {
    top: 22px;
    font-size: clamp(24px, 3vw, 41px); /* 41 px bei 1366 */
  }

  .ii-circle {
    top: 49.6%;
    left: 61.57%;
    height: 96.7%;
  }
}

/* ---------------------------------------------------------- Navigation -- */

.ii-nav {
  position: absolute;
  z-index: 4;
  left: 16px;
  bottom: -10.5%;
  font-weight: 700;
  color: #000;
}

/* Mobil: MENÜ-Button (weißer Kasten mit 3×3-Punkte-Icon) */
.ii-nav__toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 12px 14px;
  background: #fff;
  box-shadow: var(--ii-shadow);
  font-size: 32px;
  line-height: 1;
  font-weight: 700;
  color: #000;
  cursor: pointer;
}

.ii-nav__toggle svg {
  display: block;
  width: 43px;
  height: 56px;
}

.ii-nav__panel {
  display: none;
  position: relative;
  background: #fff;
  box-shadow: var(--ii-shadow);
  padding: 0.17em 0.27em 0.2em 0.25em;
  font-size: min(var(--ii-nav), 13vw);
}

.ii-nav.is-open {
  z-index: 6; /* über der Unternavigation */
  left: 24px;
  right: auto;
  width: min(calc(100% - 48px), 480px);
  bottom: -17%;
}

@media (max-width: 639px) and (max-height: 520px) {
  .ii-nav.is-open {
    position: fixed;
    inset: 0;
    z-index: 50;
    width: auto;
    overflow-y: auto;
  }

  .ii-nav.is-open .ii-nav__panel {
    min-height: 100%;
    box-shadow: none;
  }
}

.ii-nav.is-open .ii-nav__toggle {
  display: none;
}

.ii-nav.is-open .ii-nav__panel {
  display: block;
}

.ii-nav__close {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  font-size: 32px;
  line-height: 44px;
  text-align: center;
  color: #000;
  cursor: pointer;
}

.ii-nav__main,
.ii-nav__secondary {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ii-nav__main {
  line-height: 1;
}

.ii-nav__main a,
.ii-nav__secondary a {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}

.ii-nav__main a:hover,
.ii-nav__main a:focus-visible,
.ii-nav__main a.is-active,
.ii-nav__secondary a:hover,
.ii-nav__secondary a:focus-visible,
.ii-nav__secondary a.is-active {
  color: var(--ii-pink);
}

/* Punktlinie zwischen Haupt- und Nebennavigation */
.ii-nav__dots {
  height: 0.1em;
  margin: 0.13em 0 0.2em;
  background: radial-gradient(circle, #000 0.045em, transparent 0.052em) 0 50% / 0.185em 0.1em repeat-x;
}

.ii-nav__secondary {
  font-size: var(--ii-nav-sub);
  line-height: 1.07;
}

@media (min-width: 640px) {
  .ii-nav,
  .ii-nav.is-open {
    left: 11.7%;
    right: auto;
    bottom: -10%;
  }

  .ii-nav__toggle,
  .ii-nav__close {
    display: none !important;
  }

  .ii-nav__panel {
    display: block;
    width: max-content;
    max-width: 60vw;
    font-size: var(--ii-nav);
  }
}

/* Unternavigation (z. B. Ensemble-Mitglieder) rechts unter dem Hero */
.ii-subnav-slot {
  position: relative;
  height: 0;
}

.ii-subnav {
  position: absolute;
  z-index: 5;
  right: var(--ii-subnav-right);
  top: calc(var(--ii-hero-h) * 0.065);
  font-size: var(--ii-subnav);
  font-weight: 600;
  line-height: 1.25;
  text-align: right;
  white-space: nowrap;
}

.ii-subnav a {
  color: #000;
  text-decoration: none;
}

.ii-subnav a:hover,
.ii-subnav a:focus-visible,
.ii-subnav a.is-active {
  color: var(--ii-pink);
}

.ii-subnav__sep {
  padding: 0 0.2em;
}

.ii-subnav__full {
  display: none;
}

@media (min-width: 640px) {
  .ii-subnav {
    /* Vorlage: rechte Kante bei 79,3 % der Breite, Abstand zum Kasten ca. 3,5 %;
       die Breite endet links immer erst hinter dem Navigationskasten (ca. 41 %) */
    top: calc(var(--ii-hero-h) * 0.054);
    max-width: calc(57% - var(--ii-subnav-right));
    white-space: normal;
  }

  .ii-subnav__short {
    display: none;
  }

  .ii-subnav__full {
    display: inline;
  }
}

/* -------------------------------------------------------------- Inhalt -- */

.ii-main {
  padding-top: calc(var(--ii-hero-h) * 0.165);
  padding-bottom: 6rem;
  font-size: var(--ii-text);
  line-height: 1.5;
  color: #000;
}

@media (min-width: 640px) {
  .ii-main {
    padding-top: calc(var(--ii-hero-h) * 0.156);
  }
}

.ii-container {
  padding-left: var(--ii-content-left);
  padding-right: var(--ii-content-right);
}

.ii-headline {
  margin: 0;
  font-size: var(--ii-headline);
  font-weight: 700;
  line-height: 1;
  color: #000;
  hyphens: auto;
  overflow-wrap: anywhere;
}

/* Der Inline-Editor kann eigene Überschriften-Tags in die Headline setzen */
.ii-headline :is(h1, h2, h3, h4, p) {
  margin: 0;
  font: inherit;
}

.ii-subline {
  margin: 0.05em 0 0.45em;
  font-size: var(--ii-subline);
  font-weight: 400;
  line-height: 1;
  color: #000;
}

.ii-headline + .ii-richtext,
.ii-headline + .ii-media {
  margin-top: 1em;
}

.ii-module + .ii-module {
  margin-top: 1.5em;
}

/* Fließtext aus dem Inline-Editor */
.ii-richtext {
  max-width: 100%;
}

.ii-richtext p,
.ii-richtext ul,
.ii-richtext ol {
  margin: 0 0 1.5em;
}

.ii-richtext > :last-child {
  margin-bottom: 0;
}

.ii-richtext a {
  color: var(--ii-teal);
  font-weight: 600;
  font-style: italic;
  text-decoration: none;
}

.ii-richtext a:hover,
.ii-richtext a:focus-visible {
  text-decoration: underline;
}

.ii-richtext strong {
  font-weight: 700;
}

.ii-richtext em {
  font-style: italic;
}

.ii-richtext ul {
  padding: 0;
  list-style: none;
}

.ii-richtext ul li {
  position: relative;
  padding-left: 1em;
}

.ii-richtext ul li::before {
  content: "/";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--ii-pink);
}

.ii-richtext ol {
  padding-left: 1.5em;
  list-style: decimal;
}

.ii-richtext h2,
.ii-richtext h3,
.ii-richtext h4 {
  margin: 1.5em 0 0.4em;
  font-size: var(--ii-subline);
  font-weight: 700;
  line-height: 1.1;
}

.ii-richtext h4 {
  font-size: 1em;
}

/* Ein Absatz, der nur aus einem Link besteht, ist ein Call-to-Action in Pink
   (Design: „» Ja und wie geht das? Klick to connect" auf der Workshops-Seite) */
.ii-richtext p > a:only-child {
  color: var(--ii-pink);
}

/* Hervorgehobener Link in Pink (Ticket-Links, Call-to-Action) */
.ii-ticket {
  color: var(--ii-pink);
  font-weight: 600;
  font-style: italic;
  text-decoration: none;
}

.ii-ticket::before {
  content: "»";
  color: #000;
  font-weight: 700;
  font-style: normal;
}

.ii-ticket:hover,
.ii-ticket:focus-visible {
  text-decoration: underline;
}

/* ------------------------------------------------------------- Termine -- */

.ii-event {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.25em;
  margin-bottom: calc(var(--ii-headline) * 0.4);
}

.ii-event__day,
.ii-event__time {
  font-size: var(--ii-headline);
  line-height: 0.95;
  white-space: nowrap;
}

.ii-event__day {
  font-weight: 700;
}

.ii-event__time {
  font-weight: 300;
}

.ii-event__details {
  flex-basis: 100%;
}

.ii-event__details > * {
  margin: 0;
}

.ii-event__venue {
  font-weight: 700;
}

.ii-event__venue-link {
  color: inherit;
  text-decoration: none;
}

.ii-event__venue-link:hover,
.ii-event__venue-link:focus-visible {
  color: var(--ii-pink);
  text-decoration: underline;
}

/* ---------------------------------------------------- Veranstaltungsorte -- */

.ii-venue__section {
  margin-top: 1.5em;
}

.ii-venue__address {
  font-style: normal;
}

.ii-venue__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5em;
}

.ii-venue__events {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ii-venue__events li + li {
  margin-top: 0.35em;
}

.ii-event-list__past {
  margin-top: 3em;
}

.ii-event-list__past .ii-event {
  opacity: 0.55;
}

@media (min-width: 640px) {
  .ii-event {
    display: grid;
    grid-template-columns: 39.5% minmax(0, 1fr);
    column-gap: 0;
  }

  .ii-event__details {
    grid-column: 2;
  }
}

/* ---------------------------------------------- Zitate, Listen, Medien -- */

.ii-quote-separator {
  margin: 1em 0;
  font-weight: 700;
  color: var(--ii-pink);
}

.ii-quote {
  margin: 0;
}

.ii-quote__source {
  display: block;
  margin-top: 0.25em;
  font-style: italic;
}

.ii-pagelist {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--ii-subline);
  font-weight: 700;
  line-height: 1.15;
}

.ii-pagelist li {
  margin-bottom: 0.4em;
}

.ii-pagelist a {
  color: #000;
  text-decoration: none;
}

.ii-pagelist a::before {
  content: "»";
}

.ii-pagelist a:hover,
.ii-pagelist a:focus-visible {
  color: var(--ii-pink);
}

.ii-pagelist small {
  display: block;
  font-size: var(--ii-text);
  font-weight: 400;
}

.ii-media {
  margin: 0;
}

