/* All In Echt, tijdelijke homepage. Tokens en componenten volgen het AllInEcht-thema, zie DESIGN.md. */

@font-face {
    font-family: 'Aeonik';
    src: url('../fonts/Aeonik-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aeonik';
    src: url('../fonts/Aeonik-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ---- Tokens ---------------------------------------------------------------- */
:root {
    --aie-red: #ee2c41;
    --aie-prime-red: #780d0c;
    --aie-black: #000000;
    --aie-black-hover: #1a1a1a;
    --aie-white: #ffffff;
    --aie-sand: #f7f0ea;
    --aie-wash: rgba(200, 195, 187, .2);
    --aie-ink-muted: rgba(0, 0, 0, .55);

    --aie-font: 'Aeonik', 'Helvetica Neue', Arial, sans-serif;
    --aie-h1: clamp(40px, 5.6vw, 80px);
    --aie-h2: clamp(32px, 3.8vw, 55px);
    --aie-h3: clamp(28px, 3.1vw, 45px);
    --aie-h5: clamp(24px, 2.2vw, 32px);
    --aie-lead: 20px;
    --aie-body: 16px;
    --aie-small: 13px;
    --aie-line-body: 24px;

    --aie-radius-sm: 5px;
    --aie-radius-md: 8px;
    --aie-radius-lg: 10px;
    --aie-shadow-soft: 0 0 12.5px rgba(0, 0, 0, .05);
    --aie-transition: .15s ease;

    --aie-gutter: 20px;
    --aie-container: 1200px;
    --aie-header-inset: 222px;
    --aie-band-padding: clamp(48px, 6vw, 80px);
    --aie-section-padding: clamp(48px, 6vw, 100px);
    --aie-btn-height: 40px;
    --aie-btn-height-lg: 50px;
    --aie-bottom-bar-height: 70px;
}

/* ---- Basis ----------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 150px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--aie-white);
    color: var(--aie-black);
    font-family: var(--aie-font);
    font-size: var(--aie-body);
    line-height: var(--aie-line-body);
    -webkit-font-smoothing: antialiased;
}

img,
svg {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3,
p,
dl,
dd,
address {
    margin: 0;
}

address {
    font-style: normal;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 3px solid var(--aie-red);
    outline-offset: 3px;
}

.aie-skip {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 1000;
    padding: 10px 14px;
    border-radius: var(--aie-radius-sm);
    background: var(--aie-black);
    color: var(--aie-white);
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-200%);
}

.aie-skip:focus {
    transform: none;
}

.aie-container {
    width: 100%;
    max-width: calc(var(--aie-container) + 2 * var(--aie-gutter));
    margin-inline: auto;
    padding-inline: var(--aie-gutter);
}

.aie-icon {
    flex: 0 0 auto;
    width: 13px;
    height: 13px;
}

/* ---- Knoppen (base/_buttons.scss) ----------------------------------------- */
.aie-btn {
    --aie-btn-bg: transparent;
    --aie-btn-color: var(--aie-white);
    --aie-btn-bg-hover: var(--aie-btn-bg);
    --aie-btn-color-hover: var(--aie-btn-color);

    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: var(--aie-btn-height);
    padding: 0 10px;
    border: 0;
    border-radius: var(--aie-radius-lg);
    background: var(--aie-btn-bg);
    color: var(--aie-btn-color);
    font-family: var(--aie-font);
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--aie-transition), color var(--aie-transition);
}

.aie-btn:hover,
.aie-btn:focus-visible {
    background: var(--aie-btn-bg-hover);
    color: var(--aie-btn-color-hover);
}

.aie-btn--lg {
    height: var(--aie-btn-height-lg);
    font-size: 16px;
}

.aie-btn--red {
    --aie-btn-bg: var(--aie-red);
    --aie-btn-bg-hover: var(--aie-prime-red);
}

.aie-btn--dark {
    --aie-btn-bg: var(--aie-black);
    --aie-btn-bg-hover: var(--aie-black-hover);
}

.aie-btn--hover-red {
    --aie-btn-bg-hover: var(--aie-red);
}

/* Hoekpijl: alleen op knoppen die de site verlaten (ticketshop). */
.aie-btn--external {
    padding: 0 22px 0 10px;
}

.aie-btn--external::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 7.75px;
    width: 8px;
    height: 8px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpath d='M1.5 6.5L6.5 1.5M6.5 1.5H2.5M6.5 1.5V5.5' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpath d='M1.5 6.5L6.5 1.5M6.5 1.5H2.5M6.5 1.5V5.5' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") center / contain no-repeat;
}

.aie-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

/* ---- Merkvlak (utilities/_mask.scss) -------------------------------------- */
/* Linksboven en rechtsonder 45 graden eraf, knikpunten afgerond met 10px. */
.aie-chamfer {
    --l: clamp(48px, 12.5vw, 180px);

    -webkit-clip-path: polygon(
        calc(var(--l) + 4.142px) 0,
        calc(var(--l) + 1.554px) .341px,
        calc(var(--l) - .858px) 1.34px,
        calc(var(--l) - 2.929px) 2.929px,
        2.929px calc(var(--l) - 2.929px),
        1.34px calc(var(--l) - .858px),
        .341px calc(var(--l) + 1.554px),
        0 calc(var(--l) + 4.142px),
        0 100%,
        calc(100% - var(--l) - 4.142px) 100%,
        calc(100% - var(--l) - 1.554px) calc(100% - .341px),
        calc(100% - var(--l) + .858px) calc(100% - 1.34px),
        calc(100% - var(--l) + 2.929px) calc(100% - 2.929px),
        calc(100% - 2.929px) calc(100% - var(--l) + 2.929px),
        calc(100% - 1.34px) calc(100% - var(--l) + .858px),
        calc(100% - .341px) calc(100% - var(--l) - 1.554px),
        100% calc(100% - var(--l) - 4.142px),
        100% 0
    );
    clip-path: polygon(
        calc(var(--l) + 4.142px) 0,
        calc(var(--l) + 1.554px) .341px,
        calc(var(--l) - .858px) 1.34px,
        calc(var(--l) - 2.929px) 2.929px,
        2.929px calc(var(--l) - 2.929px),
        1.34px calc(var(--l) - .858px),
        .341px calc(var(--l) + 1.554px),
        0 calc(var(--l) + 4.142px),
        0 100%,
        calc(100% - var(--l) - 4.142px) 100%,
        calc(100% - var(--l) - 1.554px) calc(100% - .341px),
        calc(100% - var(--l) + .858px) calc(100% - 1.34px),
        calc(100% - var(--l) + 2.929px) calc(100% - 2.929px),
        calc(100% - 2.929px) calc(100% - var(--l) + 2.929px),
        calc(100% - 1.34px) calc(100% - var(--l) + .858px),
        calc(100% - .341px) calc(100% - var(--l) - 1.554px),
        100% calc(100% - var(--l) - 4.142px),
        100% 0
    );
}

/* ---- Header ---------------------------------------------------------------- */
.aie-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--aie-white);
    box-shadow: var(--aie-shadow-soft);
}

/* Tekst begint naast het logo, rechts lijnt hij uit met de container. */
.aie-top-bar,
.aie-header__main {
    padding-left: var(--aie-header-inset);
    padding-right: max(var(--aie-gutter), calc((100% - var(--aie-container)) / 2));
}

.aie-top-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 30px;
    padding-block: 7px;
    background: var(--aie-sand);
}

.aie-top-bar__spacer {
    flex: 1 1 auto;
}

.aie-top-bar__item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: var(--aie-small);
    line-height: 15px;
    white-space: nowrap;
    text-decoration: none;
    transition: color var(--aie-transition);
}

.aie-top-bar__item .aie-icon {
    width: 10px;
    height: 10px;
    color: var(--aie-red);
}

.aie-top-bar__item:hover,
.aie-top-bar__item:focus-visible {
    color: var(--aie-red);
}

.aie-header__main {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 90px;
}

/* Diagonaal lint tegen de linkerbovenhoek van het venster; hangt over de hero. */
.aie-logo {
    position: absolute;
    top: 50%;
    left: 0;
    z-index: 5;
    width: 180px;
    transform: translateY(-50%);
}

.aie-logo img {
    width: 100%;
    height: auto;
}

.aie-header__actions {
    display: flex;
    gap: 10px;
}

/* ---- Hero ------------------------------------------------------------------ */
.aie-hero {
    padding-block: clamp(28px, 4.1vw, 59px);
    background: var(--aie-prime-red);
}

.aie-hero__media {
    position: relative;
    width: 100%; /* anders rekt min-height het vlak via aspect-ratio in de breedte op */
    aspect-ratio: 1200 / 647;
    min-height: 420px;
    overflow: hidden;
    background: #3d283e; /* gemiddelde kleur van de foto, voor het beeld laadt */
}

.aie-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
}

.aie-hero__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, 0) 55%);
    pointer-events: none;
}

.aie-hero__content {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(28px, 4vw, 57px) clamp(24px, 4.4vw, 63px);
}

.aie-hero__title {
    max-width: 520px;
    color: var(--aie-white);
    font-size: var(--aie-h1);
    font-weight: 400;
    line-height: 1;
    text-shadow: 6px 6px 6px rgba(0, 0, 0, .25);
}

.aie-hero__title span,
.aie-hero__title strong {
    display: block;
}

.aie-hero__title strong {
    font-weight: 700;
}

.aie-hero__actions {
    margin-top: clamp(20px, 3.5vw, 50px);
}

/* ---- Banden en titels ------------------------------------------------------ */
.aie-band {
    padding-block: var(--aie-band-padding);
}

.aie-band--sand {
    background: var(--aie-sand);
}

.aie-band--wash {
    background: var(--aie-wash);
}

.aie-section {
    padding-block: var(--aie-section-padding);
}

/* Tweekleurige kop: accent vet in rood, rest regular in prime red. */
.aie-title {
    --aie-title-size: var(--aie-h3);
    --aie-title-lead-size: var(--aie-title-size);

    font-size: var(--aie-title-size);
    font-weight: 400;
    line-height: 1.15;
    color: var(--aie-prime-red);
}

.aie-title__lead {
    font-weight: 700;
    font-size: var(--aie-title-lead-size);
    color: var(--aie-red);
}

.aie-title--xl {
    --aie-title-size: var(--aie-h2);
}

.aie-title--lead-xl {
    --aie-title-size: var(--aie-h3);
    --aie-title-lead-size: var(--aie-h2);
}

.aie-title--stacked {
    line-height: 1.05;
}

.aie-title--stacked .aie-title__lead,
.aie-title--stacked .aie-title__rest {
    display: block;
}

.aie-title--band {
    margin-bottom: clamp(32px, 4vw, 56px);
}

/* ---- Intro (Figma: blok "24 activiteiten") -------------------------------- */
.aie-intro {
    display: grid;
    grid-template-columns: minmax(0, 522fr) minmax(0, 486fr);
    gap: clamp(40px, 13vw, 190px);
    align-items: center;
}

.aie-intro__text {
    max-width: 62ch;
}

/* ---- Checklist (Figma: frame "Checklist") --------------------------------- */
.aie-checklist {
    display: grid;
    grid-template-columns: minmax(0, 488fr) minmax(0, 606fr);
    gap: clamp(40px, 7.4vw, 107px);
    align-items: center;
}

.aie-checklist__title {
    margin-bottom: 25px;
    color: var(--aie-prime-red);
    font-size: var(--aie-h3);
    font-weight: 400;
    line-height: 1.1;
}

.aie-checklist__title span,
.aie-checklist__title strong {
    display: block;
}

.aie-checklist__title strong {
    color: var(--aie-red);
    font-weight: 700;
}

.aie-checklist__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 0 25px;
    padding: 0;
    list-style: none;
    font-size: var(--aie-lead);
    line-height: 1.4;
}

.aie-checklist__list li {
    position: relative;
    padding-left: 25px;
}

.aie-checklist__list li::before {
    content: '';
    position: absolute;
    top: .4em;
    left: 0;
    width: 16px;
    height: 12px;
    background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='12' viewBox='0 0 16 12'%3E%3Cpath d='M13.8805 0L5.72827 7.58517L2.28064 3.89512L0 6.0385L5.56982 12L16 2.30426L13.8805 0Z' fill='%23ee2c41'/%3E%3C/svg%3E");
}

.aie-checklist__img {
    width: 100%;
    height: auto;
    aspect-ratio: 606 / 439;
    object-fit: cover;
    background: #6a4029; /* gemiddelde kleur van de foto, voor het beeld laadt */
}

/* ---- Contactkaarten (components/_maintenance.scss) ------------------------ */
.aie-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 24px);
}

.aie-card {
    padding: clamp(24px, 2.6vw, 32px);
    border-radius: var(--aie-radius-md);
    background: var(--aie-white);
    box-shadow: var(--aie-shadow-soft);
}

.aie-card__heading {
    margin-bottom: 12px;
    font-size: var(--aie-body);
    font-weight: 700;
    line-height: 1.25;
}

.aie-card__subheading {
    margin: 18px 0 8px;
    font-size: var(--aie-body);
    font-weight: 400;
    line-height: 1.25;
}

.aie-card__cta {
    margin-top: 24px;
}

.aie-hours div {
    display: flex;
    gap: 10px;
}

.aie-hours dt {
    flex: 0 0 100px;
    font-weight: 700;
}

.aie-hours-holiday {
    display: inline-block;
    margin-top: 10px;
    color: var(--aie-red);
    line-height: 1.3;
    text-decoration: underline;
}

.aie-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.aie-contact__item,
.aie-contact__link {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 20px;
}

.aie-contact__link {
    text-decoration: none;
}

.aie-contact__link:hover .aie-contact__text,
.aie-contact__link:focus-visible .aie-contact__text {
    color: var(--aie-red);
    text-decoration: underline;
}

.aie-contact__icon {
    display: inline-flex;
    flex: 0 0 18px;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 20px;
    color: var(--aie-red);
}

.aie-contact__icon svg {
    width: 15px;
    height: 15px;
}

.aie-contact__icon--mail svg {
    width: 17px;
    height: 17px;
}

.aie-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.aie-social {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    line-height: 21px;
    text-decoration: none;
    transition: color var(--aie-transition);
}

.aie-social:hover,
.aie-social:focus-visible {
    color: var(--aie-red);
}

.aie-social__icon svg {
    width: 17px;
    height: 17px;
}

/* ---- Legal-balk ------------------------------------------------------------ */
.aie-legal {
    background: var(--aie-sand);
}

.aie-legal__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 50px;
    padding-block: 8px;
    color: var(--aie-ink-muted);
    font-size: var(--aie-small);
    line-height: 15px;
}

/* ---- Mobiele onderbalk ----------------------------------------------------- */
.aie-bottom-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 900;
    display: none;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--aie-white);
    box-shadow: var(--aie-shadow-soft);
}

.aie-bottom-bar .aie-btn {
    flex: 1 1 0;
    min-width: 0;
    max-width: 220px;
    height: var(--aie-btn-height-lg);
    white-space: normal;
    line-height: 15px;
    text-align: center;
}

/* ---- Breekpunten ----------------------------------------------------------- */
@media (max-width: 991.98px) {
    html {
        scroll-padding-top: 64px;
    }

    body {
        padding-bottom: calc(var(--aie-bottom-bar-height) + env(safe-area-inset-bottom, 0px));
    }

    .aie-top-bar,
    .aie-header__actions {
        display: none;
    }

    .aie-header__main {
        min-height: 64px;
    }

    /* Lint hangt vanaf de hoek naar beneden; zonder topbalk zou centreren de bovenkant afknippen. */
    .aie-logo {
        top: 0;
        width: 99px;
        transform: none;
    }

    .aie-bottom-bar {
        display: flex;
    }
}

@media (max-width: 767.98px) {
    :root {
        --aie-gutter: 16px;
    }

    .aie-intro,
    .aie-checklist,
    .aie-info {
        grid-template-columns: minmax(0, 1fr);
    }

    .aie-intro {
        gap: 24px;
    }

    .aie-checklist__title {
        font-size: var(--aie-h5);
    }

    .aie-hero__actions .aie-btn {
        flex: 1 1 auto;
    }

    .aie-legal__inner {
        flex-direction: column;
        align-items: center;
    }
}

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

    .aie-btn,
    .aie-social,
    .aie-top-bar__item {
        transition: none;
    }
}
