/* Mobile composition only. Desktop styles and content are inherited unchanged. */
@media (max-width: 760px) {
  html body {
    --site-gutter: 20px;
    --elevents-display: clamp(36px, 10vw, 48px);
    --elevents-section: clamp(27px, 7.2vw, 34px);
    --elevents-lead: 16px;
    --ed-gap: 56px;
    --mobile-dock: calc(58px + env(safe-area-inset-bottom, 0px));
  }
  html { scroll-padding-top: 86px; }
  html body .wrap { width: calc(100% - 40px); }
  html body main :is(section, article, figure, form) { min-width: 0; }
  html body main h2 { font-size: var(--elevents-section); line-height: 1.14; }
  html body main h3 { line-height: 1.22; }
  html body main p { line-height: 1.6; }
  html body main .eyebrow { margin-bottom: 14px; font-size: 12px; }

  /* Show the actual event before the headline and its actions. */
  html body[data-page="start"] main .launch {
    display: flex; flex-direction: column; align-items: stretch;
    width: 100%; min-height: 0; padding: 82px 0 44px; gap: 28px;
  }
  html body[data-page="start"] main .launch-visual {
    order: -1; margin: 0 12px; width: calc(100% - 24px);
  }
  html body[data-page="start"] main .launch-depth { transform: none; }
  html body[data-page="start"] main .launch-screen {
    aspect-ratio: 4 / 3; max-height: 52svh; border-radius: 16px;
    box-shadow: 0 12px 28px -20px #101c2c70;
  }
  html body[data-page="start"] main .launch-copy { padding-inline: 20px; }
  html body[data-page="start"] main .launch h1 {
    font-size: clamp(38px, 11vw, 52px) !important; line-height: 1.04; margin-bottom: 16px;
  }
  html body[data-page="start"] main .launch-label {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
    font-size: 11px; margin-bottom: 16px;
  }
  html body[data-page="start"] main .launch-location { margin-left: 0; }
  html body[data-page="start"] main .launch .hero-role { min-height: 36px; margin-bottom: 20px; }
  html body[data-page="start"] main .launch #hero-role { font-size: 22px; }
  html body[data-page="start"] main .launch-actions { display: flex; flex-wrap: wrap; gap: 12px; }
  html body main .elevents-cta { min-height: 48px; font-size: 14px; max-width: 100%; }
  html body main .elevents-cta > span { flex-shrink: 0; }

  html body header.header { top: max(10px, env(safe-area-inset-top)); }
  html body .preview-dock { min-height: var(--mobile-dock); padding-top: 0; }
  html body .preview-dock a { min-height: 52px; }
  html body .cookie-tab { min-width: 56px; min-height: 36px; font-size: 11px; }
  html body .back-to-top { width: 40px; height: 40px; }
  html body .back-to-top svg { width: 36px; height: 36px; }

  html body main :is(.crew-section, .process, .events, .about, .social, .jobs, .contact) {
    padding-block: 56px;
  }
  html body main .reference-reel { padding-block: 24px; }
  html body main .venue-showcase { padding-block: 36px 44px; }
  html body .venue-showcase-inner { width: calc(100% - 40px); }
  html body .venue-showcase-intro { gap: 14px; margin-bottom: 24px; }
  html body .venue-showcase-list { gap: 12px; }
  html body .venue-showcase-list a { padding: 10px; }
  html body .venue-meta strong { font-size: 13px; line-height: 1.3; overflow-wrap: normal; }
  html body .venue-meta small { font-size: 12px; }
  html body .venue-mark { height: 44px; }
  html body main #crew .category-tabs { margin-top: 24px; margin-bottom: 24px; }
  html body main #crew .category-tabs button { font-size: 13px; padding: 10px 14px; }
  html body:is([data-page="start"],[data-page="eventpersonal"]) main #crew .role-grid {
    grid-template-columns: minmax(0, 1fr); gap: 20px;
  }
  html body:is([data-page="start"],[data-page="eventpersonal"]) main #crew .crew-product .role-card-photo {
    aspect-ratio: 1.9; height: auto;
  }
  html body:is([data-page="start"],[data-page="eventpersonal"]) main #crew .crew-product .role-card-copy {
    min-height: 0; padding: 18px;
  }
  html body:is([data-page="start"],[data-page="eventpersonal"]) main #crew .crew-product .role-card h3 { font-size: 22px; text-wrap: pretty; }
  html body:is([data-page="start"],[data-page="eventpersonal"]) main #crew .crew-product .role-card p { font-size: 15px; margin: 10px 0 16px; }
  html body main :is(.home-team-grid, .about-grid, .jobs-layout, .contact-layout, .event-briefing-grid) {
    grid-template-columns: minmax(0, 1fr); gap: 28px;
  }
  html body main .home-team { padding-block: 56px; }
  html body main .home-team h2 { font-size: var(--elevents-section); }
  html body main .home-team figure { margin: 0; }
  html body main .process-tabs { gap: 8px; }
  html body main .process-tabs button { padding: 10px; font-size: 12px; min-height: 88px; }
  html body main .process-panel { padding: 20px; gap: 20px; }
  html body main .process-panel p { font-size: 15px; }
  html body main .event-card { width: min(78vw, 320px); }
  html body[data-page="start"] main section.contact .contact-layout {
    width: calc(100% - 40px); padding: 24px 20px; gap: 24px;
  }
  html body main .contact-details { min-width: 0; }
  html body main .contact-details a { overflow-wrap: anywhere; }
  html body main .contact-request-row { margin-top: 4px; }
  html body main .social :is(.social-grid, .social-layout) { gap: 28px; }

  html body .jobs-hero-grid { display: flex; flex-direction: column; gap: 28px; }
  html body .jobs-hero-visual { order: -1; width: 100%; padding: 0; }
  html body .jobs-hero-main { max-height: 360px; }
  html body .jobs-hero-copy { width: 100%; }
  html body .jobs-explorer { gap: 24px; }
  html body .jobs-area-tabs { gap: 8px; padding-bottom: 8px; }
  html body .jobs-area-card { grid-template-columns: minmax(0, 1fr); }
  html body .jobs-area-photo { height: auto; aspect-ratio: 1.65; }
  html body .jobs-journey { gap: 16px; }
  html body .contact-workspace, html body .contact-rail { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  html body .contact-intro { padding: 24px 20px; }
  html body .contact-fields { grid-template-columns: minmax(0, 1fr); }
  html body main :is(input, textarea, select) { font-size: 16px; }
  html body .contact-faq { margin-top: 40px; }
  html body .contact-faq-filters { flex-wrap: wrap; gap: 8px; }
  html body .about-method, html body .about-field-inner, html body .about-next-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  html body .about-hero { min-height: 480px; }
  html body .about-field figure { margin: 0; }
  html body footer.footer { padding-top: 40px; }
  html body footer.footer nav { gap: 8px; }
  html body .crew-basket { width: 100%; max-width: 100%; }
  html body .crew-basket-row { gap: 12px; padding-block: 18px; }
  html body .crew-basket-row strong { font-size: 16px; }
  html body .crew-basket-footer { padding-top: 24px; }
  html body :is(#role-dialog, #request-dialog, #apply-dialog) {
    max-width: calc(100% - 20px); max-height: calc(100dvh - 20px);
    padding: 20px; overscroll-behavior: contain;
  }
  html body :is(#request-dialog, #apply-dialog) .form-nav { flex-wrap: wrap; gap: 12px; }
}

@media (max-width: 760px) {
  html body:is([data-page="start"], [data-page="eventpersonal"]) main #crew .category-tabs {
    display: flex;
    align-items: stretch;
    gap: 10px;
    overflow-x: auto;
    padding: 6px;
    scroll-padding-inline: 6px;
  }
  html body:is([data-page="start"], [data-page="eventpersonal"]) main #crew .category-tabs button {
    flex: 0 0 auto;
    width: max-content;
    min-width: 0;
    max-width: none;
    min-height: 44px;
    padding: 10px 15px;
    white-space: nowrap;
    line-height: 1.35;
    font-size: 13px;
  }
  html body[data-page="start"] main .launch-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    max-width: 390px;
  }
  html body[data-page="start"] main .launch-actions .elevents-cta {
    --cta-diameter: 26px;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    margin: 0;
    padding: 7px 7px 7px 12px;
    gap: 7px;
    font-size: clamp(11px, 3.2vw, 13px);
    line-height: 1.2;
    white-space: nowrap;
    font-weight: 650;
  }
  html body[data-page="start"] main .launch-actions .section-jump {
    width: auto;
  }
}

@media (max-width: 760px) {
  html body[data-page="start"] main .launch {
    padding-top: 0;
    padding-bottom: 48px;
    gap: 32px;
  }
  html body[data-page="start"] main .launch-visual {
    margin: 0;
    width: 100%;
  }
  html body[data-page="start"] main .launch-screen {
    height: clamp(420px, 74svh, 680px);
    max-height: none;
    aspect-ratio: auto;
    border-radius: 0 0 18px 18px;
    box-shadow: none;
  }
  html body[data-page="start"] main .launch-screen img {
    object-position: 52% center;
  }
  html body[data-page="start"] main .launch-copy { padding-inline: 22px; }
  html body[data-page="start"] main .launch-label { margin-bottom: 20px; }
  html body[data-page="start"] main .launch h1 { margin-bottom: 22px; }
  html body[data-page="start"] main .launch .hero-role { margin-bottom: 26px; }
  html body main #crew .crew-bottom { margin-top: 28px; }
  html body main #crew .category-tabs { margin-block: 28px 22px; }
  html body main .crew-description { margin-bottom: 24px; }
}

@media (max-width: 760px) {
  html body[data-page="start"] {
    padding-top: 0 !important;
  }
  html body[data-page="start"] header.header.header {
    inset: 0 0 auto !important;
    height: 64px;
    min-height: 64px;
  }
  html body[data-page="start"] header.header.header .header-inner {
    width: calc(100% - 24px) !important;
    height: 50px !important;
    margin-top: 10px;
    padding-inline: 12px !important;
    gap: 8px !important;
    border-radius: 14px;
    background: #17171bc9;
    box-shadow: 0 4px 16px #00000024;
  }
  html body[data-page="start"] header.header.header :is(a.brand, img.glass-wordmark) {
    width: 100px !important;
    min-width: 100px !important;
  }
  html body[data-page="start"] header.header.header .crew-basket-toggle {
    min-height: 38px;
    padding-inline: 9px 6px;
    gap: 6px;
    font-size: 12px;
  }
  html body[data-page="start"] header.header.header .mobile-menu {
    width: 38px;
    height: 38px;
    min-height: 38px;
    min-width: 38px;
  }
}

/* A consistent, compact scale for phone screens. */
@media (max-width: 760px) {
  html body {
    --elevents-display: clamp(32px, 8.7vw, 38px);
    --elevents-section: clamp(24px, 6.5vw, 29px);
    --elevents-lead: 16px;
    --ed-gap: 40px;
  }
  html body main :is(.crew-section, .process, .events, .about, .social, .jobs, .contact, .home-team) {
    padding-block: 40px;
  }
  html body main :is(.inner-hero, .jobs-hero, .contact-entry, .about-method, .about-next) { padding-block: 32px; }
  html body main :is(.inner-hero, .jobs-hero, .contact-intro, .about-hero) h1 {
    font-size: var(--elevents-display) !important;
    line-height: 1.12;
  }
  html body[data-page="start"] main .launch { gap: 24px; padding-bottom: 36px; }
  html body[data-page="start"] main .launch h1 {
    font-size: clamp(34px, 9.2vw, 40px) !important;
    margin-bottom: 16px;
  }
  html body[data-page="start"] main .launch-label { margin-bottom: 14px; }
  html body[data-page="start"] main .launch .hero-role { min-height: 30px; margin-bottom: 20px; }
  html body[data-page="start"] main .launch #hero-role { font-size: 20px; }
  html body main :is(h2, #crew h2, .home-team h2) {
    font-size: var(--elevents-section) !important;
    line-height: 1.17;
  }
  html body main h3 { font-size: 19px; line-height: 1.25; }
  html body main :is(.section-head, .crew-heading, .jobs-section-heading) { margin-bottom: 22px; gap: 16px; }
  html body main :is(.home-team-grid, .about-grid, .jobs-layout, .contact-layout, .event-briefing-grid) { gap: 22px; }
  html body main .eyebrow { margin-bottom: 10px; }
  html body main .venue-showcase { padding-block: 28px 32px; }
  html body main .venue-showcase-intro { margin-bottom: 18px; }
  html body main .venue-showcase-list { gap: 10px; }
  html body main #crew .category-tabs { margin-block: 22px 18px; gap: 8px; }
  html body main #crew .category-tabs button { padding: 9px 12px; font-size: 13px; }
  html body:is([data-page="start"], [data-page="eventpersonal"]) main #crew .role-grid { gap: 16px; }
  html body:is([data-page="start"], [data-page="eventpersonal"]) main #crew .crew-product .role-card-photo { aspect-ratio: 2.1; }
  html body:is([data-page="start"], [data-page="eventpersonal"]) main #crew .crew-product .role-card-copy { padding: 15px; }
  html body:is([data-page="start"], [data-page="eventpersonal"]) main #crew .crew-product .role-card h3 { font-size: 20px; }
  html body:is([data-page="start"], [data-page="eventpersonal"]) main #crew .crew-product .role-card p { margin: 8px 0 12px; font-size: 16px; line-height: 1.5; }
  html body main .crew-discover { padding: 16px; gap: 16px; }
  html body main .process-tabs button { min-height: 74px; padding: 8px; }
  html body main .process-panel { padding: 17px; gap: 16px; }
  html body main .process-panel p { font-size: 16px; line-height: 1.5; }
  html body main .elevents-cta { min-height: 44px; padding: 6px 7px 6px 12px; font-size: 13px; --cta-diameter: 26px; }
  html body main .contact-direct a { padding: 8px 10px; }
  html body main :is(.contact-request, .contact-faq) { padding: 18px; }
  html body main .contact-rail { padding: 18px; gap: 18px; }
  html body main .contact-intro { padding: 0; }
  html body main .contact-faq { margin-top: 24px; }
  html body main .jobs-area-copy { padding: 18px; }
  html body main .jobs-role-list summary { padding-block: 12px; font-size: 16px; }
  html body main .about-next-grid a { min-height: 100px; padding: 18px; }
  html body .preview-dock a { font-size: 11px; min-height: 48px; }
  html body .preview-dock svg { width: 20px; height: 20px; }
  html body .cookie-tab { min-width: 48px; padding: 6px 8px; font-size: 11px; }
  html body .back-to-top { width: 36px; height: 36px; }
  html body .back-to-top svg { width: 32px; height: 32px; }
  html body :is(#request-dialog, #apply-dialog, #role-dialog) { padding: 16px; }
  html body :is(#request-dialog, #apply-dialog, #role-dialog) h2 { font-size: 26px; line-height: 1.18; }
  html body .crew-basket h2 { font-size: 28px; }
  html body .crew-basket-row { padding-block: 14px; }
}

@media (max-width: 359px) {
  html body[data-page="start"] main .launch-actions {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: 8px;
  }
  html body[data-page="start"] main .launch-actions .elevents-cta {
    --cta-diameter: 24px;
    white-space: normal;
    font-size: 12px;
    min-height: 48px;
    padding-inline: 6px;
    gap: 4px;
  }
}

/* Compact personnel rows retain the complete description and selection controls. */
@media (max-width: 760px) {
  html body main #crew .role-grid { gap: 12px; }
  html body:is([data-page="start"], [data-page="eventpersonal"], [data-page="jobs"]) main #crew .crew-product {
    border-radius: 13px;
    box-shadow: none;
    transform: none;
  }
  html body:is([data-page="start"], [data-page="eventpersonal"], [data-page="jobs"]) main #crew .crew-product .role-card {
    display: grid;
    grid-template-columns: clamp(82px, 25vw, 120px) minmax(0, 1fr);
    align-items: stretch;
    text-align: left;
    padding: 0;
    min-width: 0;
  }
  html body:is([data-page="start"], [data-page="eventpersonal"], [data-page="jobs"]) main #crew .crew-product .role-card-photo {
    width: 100%;
    height: 100%;
    min-height: 150px;
    aspect-ratio: auto;
    position: relative;
    overflow: hidden;
    border-radius: 0;
  }
  html body main #crew .crew-product .role-card-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  html body:is([data-page="start"], [data-page="eventpersonal"], [data-page="jobs"]) main #crew .crew-product .role-card-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    padding: 14px;
  }
  html body:is([data-page="start"], [data-page="eventpersonal"], [data-page="jobs"]) main #crew .crew-product .role-card h3 {
    font-size: 18px;
    line-height: 1.23;
    letter-spacing: -.025em;
    overflow-wrap: break-word;
    text-wrap: pretty;
    hyphens: auto;
  }
  html body:is([data-page="start"], [data-page="eventpersonal"], [data-page="jobs"]) main #crew .crew-product .role-card p {
    font-size: 15px;
    line-height: 1.5;
    margin: 8px 0 10px;
  }
  html body main #crew .crew-product .personnel-explore {
    align-self: flex-start;
    min-height: 36px;
    padding: 6px 10px;
    margin-top: auto;
    font-size: 13px;
    gap: 8px;
  }
  html body main #crew .crew-product > .personnel-quantity {
    align-self: flex-end;
    margin: 0 12px 10px;
    padding: 2px;
    max-width: calc(100% - 24px);
  }
  html body main #crew .crew-product .personnel-quantity > span { font-size: 12px; }
  html body main .jobs-area-photo { height: 145px; aspect-ratio: auto; }
  html body main .jobs-area-copy { padding: 16px; }
  html body main .jobs-expect-grid { gap: 12px; }
  html body main .jobs-expect-grid > article { padding: 18px; }
  html body main .about-next-grid { gap: 12px; }
  html body main .about-next-grid .about-choice { min-height: 92px; padding: 16px; }
}

@media (max-width: 760px) {
  html body {
    --mobile-dock: 62px;
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }
  html body .preview-dock {
    width: calc(100% - 28px);
    max-width: 430px;
    bottom: 6px;
    min-height: 56px;
    padding: 3px 6px;
    border: 1px solid #ffffff25;
    border-radius: 18px;
    box-shadow: 0 5px 20px #00000030;
  }
}

@media (max-width: 760px) {
  html body[data-page="start"] main .launch-visual::after { content: none; }
}

@media (max-width: 760px) {
  html { scroll-padding-block: 72px 78px; }
  html body[data-page="start"] main .launch-screen {
    height: clamp(225px, min(120vw, 64svh, calc(100svh - 325px)), 560px);
  }
  html body[data-page="start"] main .launch { gap: 18px; padding-bottom: 30px; }
  html body[data-page="start"] main .launch-copy { padding-inline: var(--site-gutter); }
  html body[data-page="start"] main .launch-label { margin-bottom: 10px; }
  html body[data-page="start"] main .launch h1 em::after { margin-top: 10px; }
  html body[data-page="start"] main .launch .hero-role { margin-bottom: 14px; }
  html body[data-page="start"] main .about-photo {
    height: clamp(205px, 64vw, 310px); min-height: 0;
  }
  html body[data-page="start"] main .about-photo img { height: 100%; object-fit: cover; }
  html body[data-page="start"] main #einsatzbereiche .event-track { padding-inline: 0; }
  html body main :is(.jobs-discover,.jobs-apply-section,.about-field) { padding-block: 32px; }
  html body .about-hero { min-height: clamp(320px, 52svh, 440px); }
  html body main .jobs-hero-grid { gap: 18px; }
  html body main .contact-workspace { gap: 18px; }
  html body main .contact-workspace .contact-faq { margin-top: 0; }
  html body main .contact-entry { padding-block: 22px 18px; }
  html body main .venue-showcase-list a { gap: 6px; padding: 8px; }
  html body main .venue-meta { min-width: 0; }
  html body main #crew .crew-product .role-card-photo { min-height: 124px; }
  html body:is([data-page="start"],[data-page="eventpersonal"]) main #crew .crew-product .role-card-copy { padding: 11px 12px; }
  html body:is([data-page="start"],[data-page="eventpersonal"]) main #crew .crew-product .role-card p { margin: 5px 0 7px; }
  html body .footer-home-logo { display: inline-flex; width: fit-content; max-width: 100%; }
  html body.ed-legal main .el-legal-section h2 { font-size: clamp(20px,5.3vw,24px) !important; }
  html body.ed-legal .el-legal-toc a { min-height: 36px; align-items: center; }
  html body #request-dialog .crew-shift-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
  html body #request-dialog .crew-shift-fields > :first-child { grid-column: 1/-1; }
  html body :is(#apply-dialog,#request-dialog,#contact-review) :is(input,select,textarea) { max-width: 100%; }
  html body:has(.cookie-tab:not([hidden])) .preview-dock {
    width: min(calc(100% - 28px),430px); padding-right: 65px;
  }
  html body .cookie-tab {
    inset: auto max(21px,calc((100% - 416px)/2)) 12px auto;
    z-index: 31; width: 54px; min-height: 44px; padding: 0 2px;
    border: 0; border-left: 1px solid #ffffff30; border-radius: 0;
    background: transparent; color: #fff;
  }
  html body .cookie-tab:focus-visible { outline-color: #f6531d; }
  html body:has(dialog[open]) .cookie-tab { visibility: hidden; }
}

/* Distinct reading surfaces on phones, with black reserved for the reference reel. */
@media (max-width: 760px) {
  html body {
    --mobile-paper: #ffffff;
    --mobile-mist: #ebebee;
    --mobile-charcoal: #202024;
    --mobile-edge: #d2d2d7;
  }
  html body[data-page="start"] main #einsatzorte::before {
    background: var(--mobile-charcoal);
    box-shadow: inset 0 1px #39393e;
  }
  html body[data-page="start"] main .home-team-flow::before { content: none; }
  html body[data-page="start"] main .home-team-flow .home-team {
    background: var(--mobile-paper);
  }
  html body[data-page="start"] main .home-team-flow #ablauf {
    background: var(--mobile-mist);
    border-block-start: 1px solid var(--mobile-edge);
  }
  html body[data-page="start"] main section.jobs { background: var(--mobile-paper); }
  html body[data-page="start"] main section.contact {
    background: var(--mobile-mist);
    border-block-start: 1px solid var(--mobile-edge);
  }
  html body[data-page="eventpersonal"] main #ablauf.personnel-lineup { background: var(--mobile-paper); }
  html body[data-page="jobs"] main .jobs-discover { background: var(--mobile-mist); }
  html body[data-page="jobs"] main .jobs-expect { background: var(--mobile-charcoal); }
  html body[data-page="jobs"] main .jobs-expect > .wrap { border-color: transparent; }
  html body[data-page="jobs"] main .jobs-apply-section { background: var(--mobile-paper); }
  html body[data-page="kontakt"] .contact-main { background: var(--mobile-mist); }
  html body[data-page="kontakt"] .contact-entry { background: var(--mobile-paper); border-bottom: 1px solid var(--mobile-edge); }
  html body[data-page="kontakt"] .contact-workspace { padding-top: 18px; }
  html body[data-page="kontakt"] .contact-faq { background: #f8f8fa; border-color: #c9c9d0; }
  html body[data-page="ueber-uns"] main .about-method { background: var(--mobile-paper); }
  html body[data-page="ueber-uns"] { background: var(--mobile-paper); }
  html body.ed-legal { background: var(--mobile-mist); }
  html body.ed-legal .el-legal-section { border-color: var(--mobile-edge); }
}
