/* Juliet Bravo Development – Stylesheet
   Formen und Farben aus dem bisherigen Design (Hero-Figur, schräges Band, 3D-Icons), modernisiertes Layout. */

:root {
    --bg: #1d2026;
    --bg-dark: #15181d;
    --bg-card: #23272f;
    --bg-card-hover: #282d36;
    --line: rgba(255, 255, 255, 0.07);
    --line-strong: rgba(255, 255, 255, 0.14);
    --text: #ffffff;
    --text-soft: #c4cbd8;
    --text-muted: #8a94a7;
    --blue: #0270d7;
    --blue-light: #0f8afd;
    --cyan: #00bffb;
    --cofys: #12715b;
    --cofys-light: #1fae8c;
    --gradient: linear-gradient(65deg, #0270d7 0, #0f8afd 100%);
    --radius: 12px;
    --max: 1120px;
    --gutter: 24px;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text-muted);
    font-family: "IBM Plex Sans", system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue-light); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--text); font-weight: 600; line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(15, 138, 253, 0.35); color: #fff; }

.body-wrap { position: relative; overflow-x: clip; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; position: relative; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (max-width: 640px) { :root { --gutter: 16px; } body { font-size: 16px; } }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: var(--bg-card); color: #fff; padding: 8px 12px; border-radius: 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Schräges Band hinter Kopf und Hero (aus dem alten Design) */
.body-wrap::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 820px; z-index: 0; pointer-events: none;
    background: linear-gradient(80deg, rgba(36, 40, 48, 0.6) 0%, rgba(36, 40, 48, 0) 100%);
    transform-origin: 0; transform: skewY(-12deg);
}

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; transition: background 200ms, box-shadow 200ms; }
.site-header.is-scrolled { background: rgba(21, 24, 29, 0.85); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand img { width: 180px; height: auto; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav a:not(.button) { color: var(--text-soft); font-size: 15px; font-weight: 600; padding: 8px 14px; border-radius: 8px; transition: background 150ms, color 150ms; }
.nav a:not(.button):hover { color: #fff; background: rgba(255, 255, 255, 0.06); text-decoration: none; }
.nav .button { margin-left: 8px; }
@media (max-width: 760px) {
    .brand img { width: 140px; }
    .nav a:not(.button) { display: none; }
}

/* Buttons */
.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 48px; padding: 0 24px; border: 1px solid var(--line-strong); border-radius: 8px;
    background: rgba(255, 255, 255, 0.04); color: #fff !important;
    font: inherit; font-size: 15px; font-weight: 600; line-height: 1; white-space: nowrap;
    text-decoration: none !important; cursor: pointer;
    transition: background 150ms, border-color 150ms, box-shadow 150ms, transform 150ms;
}
.button:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.24); }
.button:active { transform: translateY(1px); }
.button-primary { background: var(--gradient); border-color: transparent; box-shadow: 0 8px 24px -8px rgba(15, 138, 253, 0.55); }
.button-primary:hover { background: var(--gradient); border-color: transparent; box-shadow: 0 10px 28px -8px rgba(15, 138, 253, 0.75); filter: brightness(1.08); }
.button-cofys { background: var(--cofys); box-shadow: 0 8px 24px -8px rgba(31, 174, 140, 0.5); border-color: transparent; }
.button-cofys:hover { background: #158a6f; border-color: transparent; }
.button-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.button .arrow { transition: transform 150ms; }
.button:hover .arrow { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero mit animierter Figur */
.hero { position: relative; z-index: 1; padding: 64px 0 112px; }
.hero-inner { display: flex; align-items: center; justify-content: space-between; }
.hero-copy { position: relative; z-index: 1; flex: 0 0 540px; padding-right: 40px; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 24px; }
.hero h1 .accent { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--text-soft); margin-bottom: 36px; max-width: 34em; }
.hero-products { margin-top: 48px; display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; }
.hero-products span { font-size: 13px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.hero-products a { opacity: 0.7; transition: opacity 150ms; }
.hero-products a:hover { opacity: 1; }
.hero-products img { height: 22px; width: auto; }

.hero-figure { position: relative; flex: 0 1 528px; }
.hero-figure svg { width: 100%; height: auto; }
.hero-figure::before, .hero-figure::after { content: ""; position: absolute; background-repeat: no-repeat; background-size: 100%; }
.has-animations .hero-figure::before, .has-animations .hero-figure::after { opacity: 0; transition: opacity 2s ease; }
.anime-ready .has-animations .hero-figure::before, .anime-ready .has-animations .hero-figure::after { opacity: 1; }
.hero-figure::before { top: -57.8%; left: -1.3%; width: 152.84%; height: 178.78%; background-image: url("../images/hero-back-illustration.svg"); }
.hero-figure::after { top: -35.6%; left: 99.6%; width: 57.2%; height: 87.88%; background-image: url("../images/hero-top-illustration.svg"); }
.has-animations .anime-element { visibility: hidden; }
.anime-ready .has-animations .anime-element { visibility: visible; }

.hero-figure-box { position: absolute; top: 0; will-change: transform; }
.hero-figure-box-01, .hero-figure-box-02, .hero-figure-box-03, .hero-figure-box-04, .hero-figure-box-08, .hero-figure-box-09 { overflow: hidden; }
.hero-figure-box-01::before, .hero-figure-box-02::before, .hero-figure-box-03::before, .hero-figure-box-04::before, .hero-figure-box-08::before, .hero-figure-box-09::before {
    content: ""; position: absolute; inset: 0; transform-origin: 100% 100%;
}
.hero-figure-box-01 { left: 103.2%; top: 41.9%; width: 28.03%; height: 37.37%; background: linear-gradient(to left top, #00bffb, rgba(0, 191, 251, 0)); transform: rotateZ(45deg); }
.hero-figure-box-01::before { background: linear-gradient(to left, #15181d 0%, rgba(21, 24, 29, 0) 60%); transform: rotateZ(45deg) scale(1.5); }
.hero-figure-box-02 { left: 61.3%; top: 64.1%; width: 37.87%; height: 50.5%; background: linear-gradient(to left top, #0270d7, rgba(2, 112, 215, 0)); transform: rotateZ(-45deg); }
.hero-figure-box-02::before { background: linear-gradient(to top, #15181d 0%, rgba(21, 24, 29, 0) 60%); transform: rotateZ(-45deg) scale(1.5); }
.hero-figure-box-03 { left: 87.7%; top: -56.8%; width: 56.81%; height: 75.75%; background: linear-gradient(to left top, #00bffb, rgba(0, 191, 251, 0)); }
.hero-figure-box-03::before { background: linear-gradient(to left, #15181d 0%, rgba(21, 24, 29, 0) 60%); transform: rotateZ(45deg) scale(1.5); }
.hero-figure-box-04 { left: 54.9%; top: -8%; width: 45.45%; height: 60.6%; background: linear-gradient(to left top, #0270d7, rgba(2, 112, 215, 0)); transform: rotateZ(-135deg); }
.hero-figure-box-04::before { background: linear-gradient(to top, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0) 60%); transform: rotateZ(-45deg) scale(1.5); }
.hero-figure-box-05, .hero-figure-box-06, .hero-figure-box-07 { background-color: #242830; box-shadow: -20px 32px 64px rgba(0, 0, 0, 0.25); }
.hero-figure-box-05 { left: 17.4%; top: 13.3%; width: 64%; height: 73.7%; transform: perspective(500px) rotateY(-15deg) rotateX(8deg) rotateZ(-1deg); }
.hero-figure-box-06 { left: 65.5%; top: 6.3%; width: 30.3%; height: 40.4%; transform: rotateZ(20deg); }
.hero-figure-box-07 { left: 1.9%; top: 42.4%; width: 12.12%; height: 16.16%; transform: rotateZ(20deg); }
.hero-figure-box-08 { left: 27.1%; top: 81.6%; width: 19.51%; height: 26.01%; background: #0270d7; transform: rotateZ(-22deg); }
.hero-figure-box-08::before { background: linear-gradient(to left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.48) 100%); transform: rotateZ(45deg) scale(1.5); }
.hero-figure-box-09 { left: 42.6%; top: -17.9%; width: 6.63%; height: 8.83%; background: #00bffb; transform: rotateZ(-52deg); }
.hero-figure-box-09::before { background: linear-gradient(to left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.64) 100%); transform: rotateZ(45deg) scale(1.5); }
.hero-figure-box-10 { left: -3.8%; top: 4.3%; width: 3.03%; height: 4.04%; background: rgba(0, 191, 251, 0.32); transform: rotateZ(-50deg); }

@media (max-width: 960px) {
    .hero { padding: 40px 0 72px; }
    .hero-inner { flex-direction: column; align-items: stretch; }
    .hero-copy { flex: none; padding-right: 0; margin-bottom: 56px; }
    .hero-figure { flex: none; width: 85%; max-width: 480px; margin: 0 auto; }
    .hero-figure::after, .hero-figure-box-01, .hero-figure-box-03, .hero-figure-box-04, .hero-figure-box-09 { display: none; }
}
@media (max-width: 640px) {
    .hero .actions .button { flex: 1 1 100%; }
    .hero-products { gap: 12px 24px; }
    .hero-products span { flex: 1 1 100%; }
    .hero-products img { height: 20px; }
}

/* Abschnitte */
.section { position: relative; z-index: 1; padding: 96px 0; }
.section + .section::before {
    content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--max) - 2 * var(--gutter)); height: 1px;
    background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
.kicker { display: block; margin-bottom: 12px; color: var(--cyan); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }
.section-head { max-width: 680px; margin: 0 0 48px; }
.section-head h2, .custom-copy h2, .cta h2 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.025em; }
.section-head p { font-size: 18px; margin: 0; color: var(--text-soft); }
@media (max-width: 640px) { .section { padding: 64px 0; } }

/* Produkte */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product {
    position: relative; display: flex; flex-direction: column; padding: 32px 28px; overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)), var(--bg-card);
    border: 1px solid var(--line); border-radius: var(--radius);
    transition: transform 250ms ease, border-color 250ms, box-shadow 250ms;
}
.product:hover { transform: translateY(-4px); border-color: rgba(15, 138, 253, 0.45); box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(15, 138, 253, 0.15); }
.product-shape { position: absolute; top: 12px; right: 12px; width: 76px; height: 76px; opacity: 0.9; transition: transform 400ms ease; pointer-events: none; }
.product:hover .product-shape { transform: rotate(-8deg) scale(1.06); }
.product h3 { margin: 4px 0 16px; }
.product h3 img { height: 30px; width: auto; }
.product h3.text-title { font-size: 28px; line-height: 30px; }
.product .tagline { color: var(--cyan); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; padding-right: 64px; hyphens: manual; }
.product p { color: var(--text-soft); hyphens: auto; }
.product ul { list-style: none; padding: 16px 0 0; margin: auto 0 0; display: grid; gap: 8px; font-size: 15px; border-top: 1px solid var(--line); }
.product li { display: flex; gap: 10px; }
.product li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 0.6em; background: var(--gradient); transform: rotate(45deg); }

.product-featured {
    grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding: 48px 44px;
    background:
        radial-gradient(ellipse 60% 90% at 100% 0%, rgba(31, 174, 140, 0.16), transparent 70%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)), var(--bg-card);
}
.product-featured:hover { border-color: rgba(31, 174, 140, 0.5); box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(31, 174, 140, 0.15); }
.product-featured h3 img { height: 46px; }
.product-featured .tagline { color: var(--cofys-light); padding-right: 0; }
.product-featured .product-shape { display: none; }
.product-featured .actions { margin-top: 8px; }
.facts { margin: 0; padding: 8px 24px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line); border-radius: 10px; font-size: 15px; }
.facts div { display: flex; gap: 16px; padding: 12px 0; }
.facts div + div { border-top: 1px solid var(--line); }
.facts dt { flex: none; width: 96px; color: var(--cofys-light); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; padding-top: 2px; }
.facts dd { margin: 0; color: var(--text-soft); }

@media (max-width: 960px) {
    .products { grid-template-columns: 1fr 1fr; }
    .product-featured { grid-template-columns: 1fr; gap: 28px; padding: 36px 28px; }
}
@media (max-width: 640px) {
    .products { grid-template-columns: 1fr; }
    .product, .product-featured { padding: 28px 20px; }
    .product-featured h3 img { height: 38px; }
}

/* Individualsoftware */
.custom { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.custom-copy p { font-size: 18px; color: var(--text-soft); }
.custom-copy .actions { margin-top: 32px; }
.custom-points { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.custom-points div {
    padding: 24px 22px; border-radius: var(--radius); border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)), var(--bg-card);
}
.custom-points img { width: 52px; height: 52px; margin: -6px 0 10px -6px; }
.custom-points strong { display: block; color: #fff; margin-bottom: 4px; }
.custom-points span { font-size: 15px; }
@media (max-width: 900px) { .custom { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 480px) { .custom-points { grid-template-columns: 1fr; } }

/* Kontakt (mit Illustration aus dem alten Design) */
.cta {
    position: relative; overflow: hidden; text-align: center; padding: 72px 32px; border-radius: 16px;
    background: radial-gradient(ellipse 70% 100% at 50% 0%, rgba(2, 112, 215, 0.22), transparent 70%), var(--bg-dark);
    border: 1px solid var(--line);
}
.cta::before {
    content: ""; position: absolute; right: 98px; top: -117px; width: 160px; height: 187px;
    background: url("../images/cta-illustration.svg") no-repeat;
}
.cta > * { position: relative; }
.cta p { max-width: 48ch; margin: 0 auto 32px; font-size: 18px; color: var(--text-soft); }
.cta .actions { justify-content: center; }
@media (max-width: 640px) { .cta { padding: 56px 20px 48px; } .cta::before { right: -40px; } }

/* Footer */
.site-footer { position: relative; z-index: 1; padding: 0 0 48px; font-size: 14px; }
.site-footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 40px; }
.site-footer .brand img { width: 140px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: #fff; }

/* Rechtstexte */
.legal { position: relative; z-index: 1; padding: 48px 0 96px; }
.legal-body { max-width: 760px; font-size: 16px; color: var(--text-soft); }
.legal-body h1 { font-size: clamp(32px, 5vw, 46px); letter-spacing: -0.025em; margin: 24px 0 32px; }
.legal-body h2 { font-size: 22px; margin-top: 2em; }
.legal-body h3 { font-size: 18px; margin-top: 1.5em; }
.legal-body ul, .legal-body ol { padding-left: 1.3em; }
.legal-body table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: 15px; display: block; overflow-x: auto; }
.legal-body th, .legal-body td { border: 1px solid var(--line-strong); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal-body code { background: var(--bg-card); padding: 1px 5px; border-radius: 4px; }
.legal-body p, .legal-body li { overflow-wrap: anywhere; hyphens: auto; }
.back-link { color: var(--text-muted); font-size: 15px; font-weight: 600; }
.back-link:hover { color: #fff; text-decoration: none; }

::-webkit-scrollbar { width: 6px; background-color: var(--bg); }
::-webkit-scrollbar-thumb { background: #3a4250; border-radius: 10px; }

/* Open Source */
.oss { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.oss-card {
    display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 28px 24px; color: var(--text-muted);
    border-radius: var(--radius); border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)), var(--bg-card);
    transition: transform 250ms ease, border-color 250ms;
}
.oss-card:hover { text-decoration: none; transform: translateY(-4px); border-color: rgba(15, 138, 253, 0.45); }
.oss-card strong { color: #fff; font-size: 20px; }
.oss-card > span { font-size: 15px; color: var(--text-soft); }
.oss-card code {
    margin-top: auto; padding: 8px 12px; border-radius: 6px; background: var(--bg-dark); border: 1px solid var(--line);
    color: var(--cyan); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere;
}
.oss-card em { font-style: normal; font-size: 14px; font-weight: 600; color: var(--blue-light); overflow-wrap: anywhere; }
@media (max-width: 900px) { .oss { grid-template-columns: 1fr; } }

/* Produktlogos im Hero: Cofys hat ein hohes Bildzeichen, POLES und CARGO sind reine Schriftzüge */
.hero-products img.logo-cofys { height: 32px; }
.hero-products img.logo-poles, .hero-products img.logo-cargo { height: 17px; }
@media (max-width: 640px) {
    .hero-products img.logo-cofys { height: 28px; }
    .hero-products img.logo-poles, .hero-products img.logo-cargo { height: 15px; }
}

/* GeoTools hat keinen Schriftzug: Titel in der Höhe der anderen Logos */
.product h3.text-title { font-size: 34px; line-height: 30px; font-weight: 600; letter-spacing: -0.03em; }

.oss-head { display: flex; align-items: center; gap: 12px; }
.oss-head img { width: 24px; height: 24px; opacity: 0.9; }
