/* ------------------------------------------------------------------------- *
 * Koraĵo Kollektiv
 *
 * Seit 2026-10-14 eine Kopie der Google-Seite (sites.google.com/view/
 * korajokollektiv): gleicher Aufbau, gleiche Texte, gleiche Bilder, nur
 * moderner. Der eigene Entwurf vom 07.10. liegt im Git-Verlauf.
 *
 * Palette des Kollektivs: Yellow #FFF031, Purple #D298ED, Pink #FCB1D8,
 * Beige #F7E3C4, Black #1B1B1B, Team Blue #67CEF5.
 *
 * Kontraste (WCAG AA): Schwarz auf Beige 13,7:1, zweite Ebene auf Beige
 * 7,4:1, Schwarz auf Pink 11,1:1, Beige auf Schwarz 13,7:1, Gelb auf
 * Schwarz 14,6:1. Gelb und Lila tragen auf Beige nie Schrift.
 *
 * Keine Webfonts von Google, keine Einbettungen: Die Seite lädt nichts von
 * Dritten und braucht darum kein Cookie-Banner.
 * ------------------------------------------------------------------------- */
:root {
    /* Palette des Kollektivs */
    --color-yellow: #fff031;
    --color-purple: #d298ed;
    --color-pink: #fcb1d8;
    --color-beige: #f7e3c4;
    --color-black: #1b1b1b;
    --color-blue: #67cef5;
    /* abgeleitet: zweite Textebene auf Beige, Flächen über dem Schwarz */
    --color-ink-2: #4a4237;
    --color-black-2: #262626;
    --color-paper-2: #fbf1e1;

    /* Semantik */
    --bg: var(--color-beige);
    --bg-card: var(--color-paper-2);
    --bg-band: var(--color-pink);
    --bg-dark: var(--color-black);
    --bg-dark-2: var(--color-black-2);
    --text: var(--color-black);
    --text-2: var(--color-ink-2);
    --text-on-dark: var(--color-beige);
    --accent: var(--color-yellow);
    --line: rgba(27, 27, 27, 0.14);

    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(27, 27, 27, 0.08), 0 10px 28px rgba(27, 27, 27, 0.08);

    --font-display: 'Futura', 'Avenir Next', 'Century Gothic', 'Trebuchet MS', sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Roboto, Arial, sans-serif;

    --gutter: clamp(16px, 5vw, 56px);
    --max: 1120px;
    --nav-h: 60px;
}

* {
    margin: 0;
    padding: 0;

    box-sizing: border-box;
}

html {
    scroll-padding-top: calc(var(--nav-h) + 12px);

    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;

    display: block;
}

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

/* lange deutsche Wörter ("Herzensangelegenheiten") trennen statt die Seite zu verbreitern.
   hyphens: auto allein reicht nicht: Firefox trennte das Wort am 14.10. nicht, und es
   ragte aus der Karte. Darum steht in den Überschriften zusätzlich ein &shy;. */
h1,
h2,
h3 {
    overflow-wrap: break-word;
    hyphens: auto;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--color-purple);
    outline-offset: 3px;
}

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

.skip {
    position: absolute;
    left: -999px;
}

.skip:focus {
    left: 16px;
    top: 12px;
    z-index: 20;

    padding: 8px 14px;

    background: var(--accent);
    color: var(--text);
}

/* ---------- Kopf: dunkle Leiste wie bei Google, Menü auf dem Handy aufklappbar ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 10;

    background: var(--bg-dark);
    color: var(--text-on-dark);
}

.nav-inner {
    width: min(100% - 2 * var(--gutter), var(--max));
    min-height: var(--nav-h);
    margin-inline: auto;

    display: flex;
    align-items: center;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;

    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 600;
    text-decoration: none;

    white-space: nowrap;
}

.brand img {
    width: 30px;
}

.nav nav {
    margin-left: auto;
}

.nav ul {
    display: flex;
    gap: 4px;

    list-style: none;
}

.nav nav a {
    display: block;
    padding: 8px 12px;

    border-radius: var(--radius-sm);
    font-size: 15px;
    text-decoration: none;

    transition: background-color 0.15s;
}

.nav nav a:hover {
    background: var(--bg-dark-2);
}

.nav nav a[aria-current='page'] {
    color: var(--accent);
    font-weight: 600;
}

.menu-btn {
    margin-left: auto;

    display: none;
    padding: 8px 14px;

    background: transparent;
    border: 1px solid rgba(247, 227, 196, 0.4);
    border-radius: 999px;
    color: inherit;
    font: inherit;
    font-size: 15px;

    cursor: pointer;
}

@media (max-width: 860px) {
    .js .menu-btn {
        display: block;
    }

    .js .nav nav {
        position: absolute;
        inset: var(--nav-h) 0 auto 0;

        display: none;
        padding: 8px var(--gutter) 16px;

        background: var(--bg-dark);
    }

    .js .nav.is-open nav {
        display: block;
    }

    /* ohne JavaScript bleibt das Menü sichtbar und bricht um */
    .nav ul {
        flex-wrap: wrap;
    }

    .js .nav ul {
        flex-direction: column;
    }
}

/* ---------- Kopfbild der Startseite: Foto, Schriftzug, drei Symbole ---------- */
.hero {
    position: relative;
    min-height: min(78vh, 640px);

    display: grid;
    place-items: center;
    padding: 64px var(--gutter);
    text-align: center;

    background: var(--bg-dark);
    color: var(--text-on-dark);
}

.hero-photo {
    position: absolute;
    inset: 0;

    overflow: hidden;
}

.hero-photo img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    opacity: 0.55;
}

.hero-content {
    position: relative;

    display: grid;
    justify-items: center;
    gap: 28px;
}

.hero-mark img {
    width: min(720px, 86vw);
}

.social {
    display: flex;
    justify-content: center;
    gap: 14px;

    list-style: none;
}

.social a {
    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    background: var(--bg-dark);
    border: 1px solid rgba(247, 227, 196, 0.35);
    border-radius: 50%;
    color: var(--text-on-dark);

    transition: background-color 0.15s;
}

.social a:hover {
    background: var(--bg-dark-2);
}

.social svg {
    width: 22px;
    height: 22px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- Abschnitte ---------- */
.section {
    padding-block: clamp(48px, 8vw, 88px);
}

.lead {
    max-width: 760px;
    margin-inline: auto;

    display: grid;
    gap: 14px;
    text-align: center;

    font-size: 19px;
}

.lead .small {
    color: var(--text-2);
    font-size: 17px;
}

.section-title {
    margin-bottom: 28px;

    text-align: center;

    font-family: var(--font-display);
    font-size: clamp(26px, 3.4vw, 36px);
    font-weight: 600;
    line-height: 1.2;
}

.band {
    padding: 28px var(--gutter);
    text-align: center;

    background: var(--bg-band);
    font-family: var(--font-display);
    font-size: clamp(20px, 2.6vw, 28px);
    font-weight: 500;
    line-height: 1.3;
}

/* Koraĵo: Hochformat links, Text rechts */
.about {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    align-items: center;
    gap: clamp(24px, 5vw, 56px);
}

.about-photo img {
    width: 100%;

    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.about-text {
    display: grid;
    gap: 14px;
}

.about-text h1 {
    font-family: var(--font-display);
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.1;
}

@media (max-width: 760px) {
    .about {
        grid-template-columns: 1fr;
    }

    .about-photo {
        max-width: 420px;
    }
}

/* ---------- Karten: Säulen, Kacheln, "Was in uns steckt" ---------- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
    gap: 20px;
}

.cards.two {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
}

/* Die drei Säulen: drei nebeneinander oder eine unter der anderen.
   Zwei plus eine sähe aus, als fehle eine Karte. */
.cards.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 860px) {
    .cards.three {
        grid-template-columns: minmax(0, 1fr);
        max-width: 480px;
        margin-inline: auto;
    }
}

/* Die eine Spalte darf nie breiter werden als die Karte: Sonst schiebt ein langes Wort
   Bild und Text über den rechten Rand, und dort fehlt der helle Rand (14.10.). */
.card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 10px;
    padding: 14px 14px 20px;

    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card > img,
.card .card-img img {
    width: 100%;
    aspect-ratio: 1;

    border-radius: var(--radius-sm);
    object-fit: cover;
}

.cards.two .card > img,
.cards.two .card .card-img img,
.card.wide-img > img,
.card.wide-img .card-img img {
    aspect-ratio: 16 / 10;
}

.card .card-img {
    display: block;
}

/* Zeichen statt Foto: eingepasst auf dunklem Grund, nicht beschnitten */
.card > img.contain {
    padding: 28px;

    background: var(--bg-dark);
    object-fit: contain;
}

.card h3 {
    padding-top: 4px;
    text-align: center;

    font-family: var(--font-display);
    font-size: 21px;
    line-height: 1.25;
}

.card h3 a {
    text-decoration: none;
}

.card h3 a:hover {
    text-decoration: underline;
}

.card p {
    text-align: center;

    font-size: 16px;
}

.card .more {
    font-weight: 600;
}

.card .meta {
    color: var(--text-2);
    font-size: 15px;
}

/* Bilder, die zu einer anderen Seite führen, zeigen beim Darüberfahren einen Rand */
a.card-img img {
    transition: transform 0.25s;
}

a.card-img:hover img {
    transform: scale(1.02);
}

.steckt {
    display: grid;
    gap: 20px;
}

.steckt .card p {
    text-align: left;
}

/* ---------- DJs: runde Fotos, Name als Link ---------- */
.djs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr));
    gap: 28px 20px;

    list-style: none;
}

.dj {
    display: grid;
    justify-items: center;
    gap: 10px;
    text-align: center;

    font-weight: 600;
    text-decoration: none;
}

.dj img {
    width: min(100%, 180px);
    aspect-ratio: 1;

    border-radius: 50%;
    box-shadow: var(--shadow);
    object-fit: cover;

    transition: transform 0.25s;
}

.dj:hover img {
    transform: scale(1.03);
}

.dj:hover span {
    text-decoration: underline;
}

/* ---------- Unterseiten: Kopf, Text, Bildergalerien, Videos ---------- */
.page-head {
    padding: clamp(40px, 7vw, 72px) var(--gutter) 8px;
    text-align: center;
}

.page-head h1 {
    font-family: var(--font-display);
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.1;
}

.prose {
    max-width: 760px;
    margin-inline: auto;

    display: grid;
    gap: 16px;
}

.prose h2,
.prose h3 {
    margin-top: 24px;

    font-family: var(--font-display);
    font-size: clamp(22px, 2.8vw, 28px);
    line-height: 1.25;
}

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    list-style: none;
}

.links a {
    display: inline-block;
    padding: 6px 14px;

    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 15px;
    text-decoration: none;
}

.links a:hover {
    border-color: var(--text);
}

/*
 * Galerie: Reihen gleicher Höhe, kein Bild beschnitten.
 *
 * Bei Google standen die Fotos ungeschnitten, und viele sind hochkant: Ein festes 4:3
 * hätte Köpfe abgeschnitten. Jedes Bild bringt darum sein Seitenverhältnis als --r mit
 * (im HTML). Wachsen und Ausgangsbreite folgen --r, so wird ein breites Bild breiter als
 * ein hohes, und alle in einer Reihe enden gleich hoch. Das ::after schluckt den Rest der
 * letzten Reihe: Ohne es würde ein einzelnes Bild dort auf volle Breite aufgeblasen.
 */
.gallery {
    margin-block: 24px;

    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    container-type: inline-size;
}

.gallery::after {
    flex-grow: 999;

    content: '';
}

.gallery img {
    flex: var(--r, 1.333) 1 calc(var(--r, 1.333) * 240px);
    min-width: 0;
    height: auto;
    aspect-ratio: var(--r, 1.333);

    border-radius: var(--radius-sm);
    object-fit: cover;
}

/*
 * Reihen, die die ganze Breite füllen (.fill, seit 14.10.2026 beim Schlupfloch).
 *
 * Jede .fill ist genau eine Reihe, ohne Umbruch und ohne das ::after von oben, das sonst den
 * Rest der Reihe schluckt; darum endeten die Reihen vorher verschieden weit rechts. Wachsen
 * und Schrumpfen folgen --r, so bleiben alle Bilder einer Reihe gleich hoch und die Reihe
 * endet bündig. Wechseln sich Reihen mit zwei und mit drei Bildern ab, werden die einen groß
 * und die anderen kleiner (Moritz: „manche große, manche kleiner").
 */
.gallery.fill {
    margin-block: 12px;

    flex-wrap: nowrap;
}

.gallery.fill::after {
    content: none;
}

/* Ein einzelnes Bild steht groß und mittig wie bei Google, nicht klein am linken Rand.
   Die Höhe ist das Kleinste aus 70 % des Fensters und dem, was Textbreite (760 px) und
   Galeriebreite (100cqi) erlauben; die Breite folgt dann aus --r. So wird ein Hochkant-Bild
   nicht höher als der Bildschirm und ein Querformat am Handy nicht beschnitten. */
.gallery:has(> img:only-child) {
    justify-content: center;
}

.gallery:has(> img:only-child)::after {
    content: none;
}

.gallery > img:only-child {
    flex: 0 0 auto;
    width: auto;
    height: min(70vh, 760px / var(--r, 1.333), 100cqi / var(--r, 1.333));
}

/*
 * Video: erst ein Vorschaubild, YouTube lädt nach dem Klick (Moritz, Q3 am 14.10.2026).
 *
 * So kommt beim Öffnen der Seite nichts von Google, und es braucht kein Cookie-Banner.
 * Ohne JavaScript führt der Link einfach zu YouTube. Breite wie der Text darüber.
 */
.video {
    max-width: 760px;
    margin: 24px auto;
}

.video-start {
    position: relative;

    display: block;

    border-radius: var(--radius-sm);
    color: var(--text-on-dark);
    text-decoration: none;
}

.video-start img,
.video iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;

    border: 0;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;

    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;

    background: var(--bg-dark);
    border-radius: 999px;
    font-weight: 600;
    white-space: nowrap;

    transition: background-color 0.15s, color 0.15s;
}

/* das Dreieck: ein Rand, keine Grafik */
.video-play::before {
    width: 0;
    height: 0;

    border-block: 8px solid transparent;
    border-left: 13px solid currentColor;

    content: '';
}

.video-start:hover .video-play,
.video-start:focus-visible .video-play {
    background: var(--accent);
    color: var(--text);
}

/* Darunter auch, wer ein Foto gemacht hat (.credit unter einer Galerie) */
.video-note,
.credit {
    margin-top: 6px;

    color: var(--text-2);
    font-size: 14px;
}

/* ---------- Rechtliches ---------- */
.legal {
    max-width: 760px;
    margin-inline: auto;

    display: grid;
    gap: 12px;
}

.legal h2 {
    margin-top: 16px;

    font-family: var(--font-display);
    font-size: 22px;
}

.draft-note {
    padding: 14px 16px;

    background: var(--bg-band);
    border-radius: var(--radius-sm);
}

/* ---------- Fuß ---------- */
.footer {
    padding: 40px var(--gutter);

    background: var(--bg-dark);
    color: var(--text-on-dark);
}

.footer-inner {
    width: min(100%, var(--max));
    margin-inline: auto;

    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

    font-size: 15px;
}

.footer-links {
    display: flex;
    gap: 18px;

    list-style: none;
}

/* sanftes Einblenden beim Scrollen; main.js setzt die Klassen nur ohne "Bewegung reduzieren" */
.js .reveal {
    opacity: 0;

    transition: opacity 0.6s, transform 0.6s;
    transform: translateY(12px);
}

.js .reveal.is-in {
    opacity: 1;

    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
    }
}
