/*! HTML5 Boilerplate v5.3.0 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

/* Self-hosted (no Google CDN — avoids the GDPR/Abmahnung issue from LG München I).
   Work Sans is a humanist grotesque chosen to pair with the geometric logo wordmark. */
@font-face {
    font-family: 'Work Sans';
    font-style: normal;
    font-weight: 100 900; /* variable weight axis */
    font-display: swap;
    src: url('../fonts/work-sans-latin-var.woff2') format('woff2');
}

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
    font-family: 'Work Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

a {
    color: currentColor;
}


/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap; /* 1 */
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
    white-space: inherit;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after,
    p:first-letter,
    div:first-letter,
    blockquote:first-letter,
    li:first-letter,
    p:first-line,
    div:first-line,
    blockquote:first-line,
    li:first-line {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre {
        white-space: pre-wrap !important;
    }
    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}

/* Grayscale AA renders glyphs thinner than the default smoothing (macOS only; no-op elsewhere) */
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }

/* Stage video: full-width 16:9 like the ship's home header; the intrinsic width/height
   attrs reserve the box before metadata arrives, so the logo block below does not jump */
.stage { position: relative; background-color: #222; }

.stage__video { display: block; width: 100%; height: auto; object-fit: cover; pointer-events: none; }

/* Sound toggle, bottom left like the ship's mute button. Hidden until the script wires it up,
   so a no-JS visitor never sees a dead control. Stroke icon: speaker + waves (on) or cross (off) */
.stage__sound { position: absolute; left: 24px; bottom: 24px; z-index: 2; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background-color: rgba(34, 34, 34, 0.55); color: #fff; cursor: pointer; transition: background-color 0.2s ease; }

.stage__sound:hover,
.stage__sound:focus-visible { background-color: rgba(34, 34, 34, 0.85); }

.stage__sound:focus-visible { outline: 2px solid #EFCB8A; outline-offset: 2px; }

.stage__sound-icon { width: 26px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

.stage__sound-wave { display: none; }

.stage__sound.is-on .stage__sound-wave { display: block; }

.stage__sound.is-on .stage__sound-cross { display: none; }

@media (max-width: 700px) {
    .stage__sound { left: 12px; bottom: 12px; width: 40px; height: 40px; }
}

/* Scroll hint, after the ship's header arrow: centred at the bottom of the stage, bounces once
   after a 5s delay so the footage gets a quiet start. Hidden on phones like the ship */
.stage__arrow { position: absolute; left: 50%; bottom: 8%; z-index: 2; display: block; width: 35px; color: #fff; transform: translateX(-50%); animation: stage-bounce 2s 5s; }

.stage__arrow svg { display: block; width: 100%; height: auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4)); }

.stage__arrow:focus-visible { outline: 2px solid #EFCB8A; outline-offset: 4px; }

@keyframes stage-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -10px); }
    60% { transform: translate(-50%, -5px); }
}

@media (prefers-reduced-motion: reduce) {
    .stage__arrow { animation: none; }
}

@media (max-width: 700px) {
    .stage__arrow { display: none; }
}

.logo{ display:table-cell; vertical-align:middle; text-align:center; padding: 0px 20%; height: 100vh; width:100vw; }

/* width:auto needed alongside the img width/height attrs: both axes are capped
   (max-width + max-height), so the attrs must supply the ratio without pinning width */
.logo img { display: block; margin: 0 auto; max-width: 100%; max-height: calc(100vh - 210px); width: auto; height: auto; }

.logo .claim { margin: 0; color: #222; font-size: 1.125rem; }

/* 20% side padding starves the logo on phones — fixed gutter below 700px */
@media (max-width: 700px) {
    /* Phones: crop the 16:9 footage to portrait so the stage fills the screen instead of a
       letterbox strip, and let the logo block size to its content instead of 100vh */
    .stage__video { aspect-ratio: 4 / 5; height: auto; }
    .logo { display: block; width: auto; height: auto; padding: 56px 24px 40px; }
    .logo .buttons { flex-direction: column; gap: 14px; }
    .logo .buttons .connector { display: none; }
}
.logo .buttons { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 40px; }

.logo .buttons .connector { width: 48px; height: 2px; background-color: #156082; }

/* Asymmetric padding compensates for sans-serif metrics placing text ~1.5px high in the box (Firefox lacks text-box-trim) */
.logo .button { display: inline-block; padding: 13px 32px 10px; border: none; border-radius: 12px; background-color: #EFCB8A; color: #222; text-decoration: none; }

@supports (text-box: trim-both cap alphabetic) {
    .logo .button { padding: 17px 32px; text-box: trim-both cap alphabetic; }
}

.logo .button:hover,
.logo .button:focus { background-color: #e2b56e; }

.logo .tagline { margin: 14px 0 0; color: grey; }

.imprint { color: grey; font-size:80%; max-width: 800px; margin: 0px auto; padding:0px 10px; border-top: 1px solid grey; }
