/* ==========================================================================
   UBOMI IT – Schwarz/Weiß mit UBOMI-Blau als Akzent
   ========================================================================== */

:root {
    --ink: #101010;
    --paper: #ffffff;
    --gray: #5a5a5a;
    --gray-light: #9a9a9a;
    --line: #e6e6e6;
    --blue: #2c5282;
    --blue-bright: #4a86e8;
    --blue-tint: #eef4ff;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --header-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

::selection { background: var(--blue-bright); color: #fff; }

/* --------------------------------------------------------------------------
   Typografie
   -------------------------------------------------------------------------- */

.eyebrow {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(2.6rem, 5.5vw, 4.4rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.explore-label {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 0.8rem;
}

.section-title {
    font-size: clamp(2rem, 3.6vw, 3rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--header-h);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    z-index: 100;
    transition: box-shadow 0.3s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 24px rgba(16, 16, 16, 0.06); }

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: flex;
    align-items: baseline;
    gap: 6px;
    text-decoration: none;
}
.logo-img { height: 22px; display: block; }

.main-nav { display: flex; align-items: center; gap: 34px; }

.nav-link {
    position: relative;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 600;
    padding: 6px 0;
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--blue-bright);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); }

.nav-link--cta {
    border: 1px solid var(--blue);
    border-radius: 2px;
    color: var(--blue);
    padding: 8px 20px;
    transition: background 0.25s ease, color 0.25s ease;
}
.nav-link--cta::after { display: none; }
.nav-link--cta:hover { background: var(--blue); color: #fff; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--ink);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* --------------------------------------------------------------------------
   Buttons & Tags
   -------------------------------------------------------------------------- */

.btn {
    display: inline-block;
    font-family: var(--font);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    padding: 11px 26px;
    border: 1px solid var(--blue);
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
    background: var(--blue);
    color: #fff;
}
.btn--primary:hover {
    background: var(--ink);
    border-color: var(--ink);
}

.btn--outline {
    background: var(--paper);
    color: var(--blue);
}
.btn--outline:hover {
    background: var(--blue);
    color: #fff;
}

.btn--small { padding: 8px 18px; font-size: 0.82rem; }

.tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--blue);
    text-decoration: none;
    border: 1px solid var(--blue-bright);
    border-radius: 2px;
    padding: 5px 12px;
    background: var(--paper);
    transition: background 0.2s ease, color 0.2s ease;
}
.tag:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-h) + 48px) 0 64px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 48px;
    position: relative;
    z-index: 2;
}

.hero-lead {
    font-size: 1.12rem;
    color: var(--gray);
    max-width: 34em;
    margin-bottom: 1.75rem;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2.25rem;
}

.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; }

/* Roboter & Oktagon */

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
}

.hero-octagon {
    position: absolute;
    width: min(460px, 100%);
    aspect-ratio: 1;
    overflow: visible;
    z-index: 1;
}
.hero-octagon-line {
    fill: #ffffff;
    stroke: #b9bec6;
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

/* Cluster um das Roboter-Oktogon, ineinander verschachtelt */
.octa-c--1 { width: 320px; top: -14%; right: -6%; }
.octa-c--2 { width: 400px; bottom: -22%; left: -10%; }
.octa-c--3 { width: 210px; top: 4%; left: -14%; }
.octa-c--4 { width: 270px; bottom: -8%; right: -18%; }

.robot {
    position: relative;
    width: min(230px, 56%);
    z-index: 2;
}
.robot[hidden] { display: none; }

/* --------------------------------------------------------------------------
   Oktogramm-Hintergrund
   -------------------------------------------------------------------------- */

.octa-field {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.octa {
    position: absolute;
    overflow: visible;
    will-change: transform;
}
.octa polygon {
    fill: none;
    stroke: var(--line);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}
.octa--blue polygon { stroke: var(--blue-bright); opacity: 0.45; }
.octa--dashed polygon { stroke-dasharray: 6 8; }

/* Verschachtelte, statische Oktogon-Cluster (wie die Hexagon-Cluster der Vorlage) */

.octa-c {
    position: absolute;
    overflow: visible;
    pointer-events: none;
    z-index: 0;
}
.octa-c polygon {
    fill: none;
    stroke: #dfe3e7;
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.octa-cluster {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.octa--1 { width: 340px; top: -80px; right: -60px; animation: octa-spin 90s linear infinite; }
.octa--2 { width: 180px; top: 34%; right: 30%; animation: octa-spin-rev 70s linear infinite; }
.octa--3 { width: 120px; bottom: 18%; right: 8%; animation: octa-spin 55s linear infinite; }
.octa--4 { width: 520px; bottom: -220px; left: -180px; animation: octa-spin-rev 120s linear infinite; }
.octa--5 { width: 220px; top: 16%; left: 4%; animation: octa-spin 80s linear infinite; }
.octa--6 { width: 90px; top: 58%; left: 24%; animation: octa-spin-rev 45s linear infinite; }
.octa--7 { width: 300px; top: -60px; right: -80px; animation: octa-spin 100s linear infinite; }
.octa--8 { width: 160px; bottom: 10%; left: 2%; animation: octa-spin-rev 60s linear infinite; }

@keyframes octa-spin { to { transform: rotate(360deg); } }
@keyframes octa-spin-rev { to { transform: rotate(-360deg); } }

/* --------------------------------------------------------------------------
   Sektionen
   -------------------------------------------------------------------------- */

.section {
    position: relative;
    padding: 120px 0;
    border-top: 1px solid var(--line);
}

.section-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.6fr;
    gap: 64px;
    align-items: start;
    position: relative;
    z-index: 2;
}

.section-side { position: sticky; top: calc(var(--header-h) + 40px); }

/* Leistungen */

.service {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 20px;
    padding: 40px 0;
    border-top: 1px solid var(--line);
    background: var(--paper);
}
.service:last-child { border-bottom: 1px solid var(--line); }

.service-index {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gray-light);
    padding-top: 6px;
}

.service-body h3 {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
}
.service-body p { color: var(--gray); }
.service-body .btn { margin-top: 1.25rem; }

/* Produkt-Chips */

.service-products { margin-top: 1.75rem; }

.service-products-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray-light);
    margin-bottom: 0.9rem;
}

.product-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.product-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 10px 18px 10px 10px;
    background: var(--paper);
    transition: border-color 0.2s ease;
}
.product-chip:hover { border-color: var(--blue-bright); }

.product-chip img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--line);
}
.product-chip strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
}
.product-chip small {
    display: block;
    font-size: 0.74rem;
    color: var(--gray);
}

/* Über uns */

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.about-card {
    border-top: 1px solid var(--line);
    padding: 32px 0 0;
}

.about-icon {
    width: 44px;
    height: 44px;
    color: var(--ink);
    margin-bottom: 1.1rem;
}
.about-icon svg { width: 100%; height: 100%; }

.about-card h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
}
.about-card p { color: var(--gray); font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   Kontakt
   -------------------------------------------------------------------------- */

.section--contact { overflow: hidden; }

.contact-info { margin-top: 2.25rem; display: grid; gap: 1.5rem; }

.contact-detail {
    border-left: 3px solid var(--blue-bright);
    padding-left: 16px;
}
.contact-detail h4 {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray-light);
    margin-bottom: 0.25rem;
}
.contact-detail p { color: var(--ink); font-size: 0.98rem; }
.contact-detail a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--blue-bright); }
.contact-detail a:hover { color: var(--blue); }

.contact-lead {
    font-size: 1.15rem;
    color: var(--gray);
    margin-bottom: 1.75rem;
}

.contact-form { max-width: 640px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 7px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    font-family: var(--font);
    font-size: 1rem;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid #b9bec6;
    border-radius: 2px;
    padding: 12px 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 2px rgba(44, 82, 130, 0.15);
}
.form-group textarea { resize: vertical; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-message {
    display: none;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    border-left: 3px solid;
}
.form-message.is-success {
    display: block;
    color: #1e5631;
    background: #f0faf2;
    border-color: #2e9e4f;
}
.form-message.is-error {
    display: block;
    color: #8a1f1f;
    background: #fdf2f2;
    border-color: #d64545;
}
.form-message.is-info {
    display: block;
    color: var(--blue);
    background: var(--blue-tint);
    border-color: var(--blue-bright);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
    background: var(--ink);
    color: #b9b9b9;
    padding: 56px 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 48px;
    align-items: center;
}

.footer-logo {
    height: 20px;
    filter: invert(1);
    margin-bottom: 10px;
}
.footer-brand p { font-size: 0.85rem; line-height: 1.6; }

.footer-nav { display: flex; gap: 28px; }
.footer-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border-bottom: 1.5px solid transparent;
    transition: border-color 0.25s ease, color 0.25s ease;
}
.footer-nav a:hover { border-color: var(--blue-bright); color: var(--blue-bright); }

.footer-copy { font-size: 0.85rem; }

/* --------------------------------------------------------------------------
   Cookie-Banner
   -------------------------------------------------------------------------- */

.cookie-banner {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 24px;
    max-width: 720px;
    margin: 0 auto;
    background: var(--paper);
    border: 1.5px solid var(--ink);
    box-shadow: 0 20px 60px rgba(16, 16, 16, 0.18);
    padding: 22px 26px;
    display: flex;
    align-items: center;
    gap: 24px;
    z-index: 200;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { font-size: 0.9rem; color: var(--gray); }
.cookie-banner a { color: var(--blue); }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* --------------------------------------------------------------------------
   Rechtliche Seiten (Impressum / Datenschutz)
   -------------------------------------------------------------------------- */

.legal-page {
    padding: calc(var(--header-h) + 72px) 0 96px;
    position: relative;
    overflow: hidden;
}
.legal-content {
    max-width: 780px;
    position: relative;
    z-index: 2;
}
.legal-content h1 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 2.5rem;
}
.legal-content h2 {
    font-size: 1.45rem;
    font-weight: 800;
    margin: 2.5rem 0 0.9rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}
.legal-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 1.75rem 0 0.6rem;
}
.legal-content p, .legal-content li { color: var(--gray); margin-bottom: 0.9rem; }
.legal-content ul { padding-left: 1.4rem; }
.legal-content a { color: var(--blue); }
.legal-content strong { color: var(--ink); }

/* --------------------------------------------------------------------------
   Reveal-Animationen (GSAP setzt die Endwerte; Fallback: sichtbar)
   -------------------------------------------------------------------------- */

.no-js .reveal { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001s !important;
    }
    html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 24px; }
    .hero-visual { min-height: 360px; order: -1; }
    .robot { width: 240px; }
    .hero-octagon { width: 340px; }
    .section-grid { grid-template-columns: 1fr; gap: 40px; }
    .section-side { position: static; }
    .about-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 720px) {
    .container { padding: 0 20px; }
    .section { padding: 72px 0; }

    .main-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 20px 20px;
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
    .main-nav.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .main-nav .nav-link { padding: 14px 0; border-bottom: 1px solid var(--line); }
    .main-nav .nav-link--cta { border: none; padding: 14px 0; color: var(--blue); }

    .nav-toggle { display: flex; }
    .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
    .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .octa-c { display: none; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .service { grid-template-columns: 1fr; gap: 8px; padding: 28px 0; }
    .footer-inner { grid-template-columns: 1fr; gap: 24px; text-align: left; }
    .cookie-banner { flex-direction: column; align-items: stretch; text-align: left; gap: 14px; }
    .scroll-hint { display: none; }
}
