/*
Theme Name: Ocean Cargo Manager
Theme URI: https://oceancargomanager.com/
Author: Angry Seagull Games
Description: Eigenständiges, datensparsames Theme für Ocean Cargo Manager.
Version: 1.6.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: ocean-cargo-manager
*/

:root {
    --ocean-950: #07131c;
    --ocean-900: #0c1e2a;
    --ocean-800: #123044;
    --steel-700: #334b5a;
    --steel-300: #b8c7cf;
    --foam: #f3f7f8;
    --signal: #ef922f;
    --signal-light: #ffb45f;
    --success: #53c7a1;
    --content-width: 1180px;
    --radius: 18px;
    color-scheme: dark;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ocean-950); color: var(--foam); line-height: 1.65; }
body::before { content: ""; position: fixed; inset: 0; z-index: -2; background: radial-gradient(circle at 75% 12%, #1a4b6190 0, transparent 32%), linear-gradient(145deg, #07131c 0%, #0b202d 55%, #07131c 100%); }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.site-shell { width: min(calc(100% - 2rem), var(--content-width)); margin-inline: auto; }
.skip-link { position: fixed; top: .75rem; left: .75rem; z-index: 100; padding: .75rem 1rem; background: var(--foam); color: var(--ocean-950); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid #ffffff18; background: #07131ce8; backdrop-filter: blur(14px); }
.site-header__inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; font-weight: 850; letter-spacing: .02em; }
.brand__mark { width: 38px; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid #ffffff25; border-radius: 50%; background: linear-gradient(145deg, var(--signal), #a94b18); color: var(--ocean-950); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.site-nav a { padding: .55rem .8rem; border-radius: 999px; text-decoration: none; color: var(--steel-300); font-weight: 700; }
.site-nav a:hover, .site-nav a:focus-visible { background: #ffffff10; color: var(--foam); }
.language-switch { display: inline-flex; align-items: center; gap: .15rem; margin-left: .35rem; color: var(--steel-700); }
.language-switch a { padding-inline: .5rem; }
.language-switch a[aria-current="page"] { color: var(--signal-light); background: #ef922f18; }

.hero { position: relative; min-height: 78vh; display: grid; align-items: end; isolation: isolate; overflow: hidden; border-bottom: 1px solid #ffffff12; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("assets/images/hero-ocean.jpg") center 46% / cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #07131cf2 0%, #07131cb8 48%, #07131c42 76%), linear-gradient(0deg, #07131c 0%, transparent 48%); }
.hero__content { max-width: 760px; padding-block: clamp(6rem, 16vh, 11rem) 5rem; }
.eyebrow { margin: 0 0 .9rem; color: var(--signal-light); font-size: .82rem; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.12; text-wrap: balance; }
h1 { max-width: 12ch; margin: 0; font-size: clamp(3rem, 8vw, 6.7rem); letter-spacing: -.055em; }
h2 { margin-top: 0; font-size: clamp(2rem, 5vw, 3.7rem); letter-spacing: -.035em; }
.hero__lead { max-width: 58ch; margin: 1.4rem 0 0; color: #d4e0e5; font-size: clamp(1.05rem, 2vw, 1.28rem); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: .75rem 1.15rem; border: 1px solid #ffffff24; border-radius: 8px; background: #ffffff0d; color: var(--foam); text-decoration: none; font-weight: 800; }
.button:hover, .button:focus-visible { border-color: #ffffff55; background: #ffffff16; transform: translateY(-1px); }
.button--primary { border-color: var(--signal); background: var(--signal); color: #161d22; }
.button--primary:hover, .button--primary:focus-visible { background: var(--signal-light); }

.section { padding-block: clamp(4.5rem, 10vw, 8rem); }
.section--steel { border-block: 1px solid #ffffff12; background: linear-gradient(180deg, #ffffff07, #ffffff02); }
.section-heading { max-width: 720px; margin-bottom: 2.4rem; }
.section-heading p { color: var(--steel-300); font-size: 1.08rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feature-card { min-height: 230px; padding: 1.5rem; border: 1px solid #ffffff16; border-radius: var(--radius); background: linear-gradient(145deg, #173142cc, #0d202ccc); box-shadow: inset 0 1px #ffffff0d, 0 20px 50px #0003; }
.feature-card__number { color: var(--signal); font: 800 .8rem/1 ui-monospace, monospace; letter-spacing: .14em; }
.feature-card h3 { margin: 2.8rem 0 .7rem; font-size: 1.35rem; }
.feature-card p { margin: 0; color: var(--steel-300); }
.game-facts { border-bottom: 1px solid #ffffff12; background: linear-gradient(180deg, #0c1e2a, #07131c); }
.facts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.fact-card { padding: 1.4rem; border-top: 3px solid var(--signal); border-radius: 0 0 var(--radius) var(--radius); background: #ffffff08; }
.fact-card > strong { display: block; color: var(--signal-light); font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; letter-spacing: -.04em; }
.fact-card h3 { margin: 1rem 0 .5rem; font-size: 1.15rem; }
.fact-card p { margin: 0; color: var(--steel-300); }
.fact-card--planned { border-top-color: var(--success); }
.fact-card--planned > strong { color: var(--success); font-size: clamp(1.35rem, 2.5vw, 2rem); }
.screenshot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.screenshot-card { margin: 0; overflow: hidden; border: 1px solid #ffffff1c; border-radius: var(--radius); background: var(--ocean-900); box-shadow: 0 16px 35px #0004; }
.screenshot-card--featured { grid-column: 1 / -1; }
.screenshot-trigger { display: block; width: 100%; padding: 0; overflow: hidden; border: 0; background: #050c12; color: inherit; cursor: zoom-in; }
.screenshot-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .25s ease, filter .25s ease; }
.screenshot-trigger:hover img, .screenshot-trigger:focus-visible img { transform: scale(1.015); filter: brightness(1.08); }
.screenshot-card figcaption { display: grid; gap: .25rem; padding: 1rem 1.15rem 1.2rem; }
.screenshot-card figcaption strong { color: var(--foam); font-size: 1.05rem; }
.screenshot-card figcaption span { color: var(--steel-300); }
.screenshot-lightbox { width: 100vw; max-width: none; height: 100vh; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--foam); }
.screenshot-lightbox::backdrop { background: #02070bea; backdrop-filter: blur(5px); }
.lightbox__layout { position: relative; width: 100%; height: 100%; display: grid; grid-template-columns: minmax(52px, 8vw) minmax(0, 1fr) minmax(52px, 8vw); align-items: center; gap: .5rem; padding: clamp(3.5rem, 7vw, 5rem) .5rem 1rem; }
.lightbox__figure { min-width: 0; max-width: 1500px; max-height: 100%; margin: auto; display: grid; justify-items: center; gap: .8rem; }
.lightbox__image { width: auto; max-width: 100%; max-height: calc(100vh - 9rem); border-radius: 8px; box-shadow: 0 25px 70px #000c; object-fit: contain; }
.lightbox__caption { color: #dbe6eb; text-align: center; }
.lightbox__control { min-width: 48px; min-height: 48px; border: 1px solid #ffffff35; border-radius: 50%; background: #07131cdd; color: #fff; font: 700 2rem/1 system-ui, sans-serif; cursor: pointer; }
.lightbox__control:hover, .lightbox__control:focus-visible { border-color: var(--signal-light); background: var(--signal); color: var(--ocean-950); }
.lightbox__close { position: absolute; top: 1rem; right: 1rem; z-index: 2; }
.lightbox__previous, .lightbox__next { justify-self: center; }
.lightbox-open { overflow: hidden; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(260px, .7fr); gap: clamp(2rem, 7vw, 6rem); align-items: center; }
.ship-visual { position: relative; min-height: 460px; display: grid; place-items: center; overflow: hidden; border: 1px solid #ffffff18; border-radius: var(--radius); background: radial-gradient(circle, #ef922f33, transparent 50%), linear-gradient(145deg, #384952, #111d24); }
.ship-visual::after { content: ""; position: absolute; inset: auto 8% 8%; height: 1px; background: linear-gradient(90deg, transparent, #ffffff55, transparent); }
.ship-visual img { max-height: 420px; filter: drop-shadow(0 25px 25px #0009); }
.status { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1rem; color: var(--steel-300); font-size: .9rem; font-weight: 750; }
.status::before { content: ""; width: .65rem; aspect-ratio: 1; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 5px #53c7a120; }
.updates-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.update-card { display: flex; flex-direction: column; padding: 1.4rem; border: 1px solid #ffffff16; border-radius: var(--radius); background: linear-gradient(145deg, #173142cc, #0d202ccc); }
.update-card time { color: var(--signal-light); font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.update-card h3 { margin: .8rem 0 .65rem; font-size: 1.35rem; }
.update-card h3 a { text-decoration: none; }
.update-card h3 a:hover, .update-card h3 a:focus-visible { color: var(--signal-light); }
.update-card p, .updates-empty { color: var(--steel-300); }
.update-card__link { margin-top: auto; padding-top: 1rem; color: var(--signal-light); font-weight: 800; text-underline-offset: .2em; }

.legal { width: min(calc(100% - 2rem), 820px); margin-inline: auto; padding-block: 5rem; }
.legal h1 { max-width: none; font-size: clamp(2.4rem, 6vw, 4.5rem); }
.legal h2 { margin-top: 2.8rem; font-size: 1.55rem; }
.legal h3 { margin-top: 2rem; font-size: 1.15rem; }
.legal p, .legal li { color: #d1dde2; }
.legal a { color: var(--signal-light); }
.legal-notice { padding: 1rem; border: 1px solid #ffb45f88; border-radius: 8px; background: #6d401a55; }

.site-footer { border-top: 1px solid #ffffff16; background: #050d13; }
.site-footer__inner { min-height: 130px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; color: #9fb1bb; }
.footer-nav { display: flex; gap: 1rem; }
.footer-nav a:hover, .footer-nav a:focus-visible { color: var(--foam); }

:focus-visible { outline: 3px solid var(--signal-light); outline-offset: 3px; }
@media (max-width: 760px) {
    .site-header__inner { padding-block: .8rem; align-items: flex-start; flex-direction: column; }
    .site-nav { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: .2rem; }
    .hero { min-height: 720px; }
    .hero::after { background: linear-gradient(0deg, #07131cf7 0%, #07131c88 72%, #07131c55); }
    .feature-grid, .about-grid, .updates-grid { grid-template-columns: 1fr; }
    .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .screenshot-grid { grid-template-columns: 1fr; }
    .screenshot-card--featured { grid-column: auto; }
    .lightbox__layout { grid-template-columns: 52px minmax(0, 1fr) 52px; }
    .lightbox__image { max-height: calc(100vh - 10rem); }
    .ship-visual { min-height: 360px; }
    .ship-visual img { max-height: 330px; }
}

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

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
