/*
Theme Name: TioAutomation
Theme URI: https://tioautomation.de
Author: Tio Media UG (haftungsbeschränkt)
Description: OnePager für TioAutomation – Automatisierung & Prozessoptimierung.
Version: 1.0
*/

/* ===== DESIGN TOKENS ===== */
:root {
    --pink: #e040fb;
    --magenta: #d633c8;
    --violet: #7c3aed;
    --violet-deep: #5b21b6;
    --gradient: linear-gradient(135deg, #e040fb 0%, #a23bf0 50%, #7c3aed 100%);

    --bg: #0c0a14;
    --bg-alt: #13101f;
    --surface: rgba(255, 255, 255, 0.04);
    --border: rgba(255, 255, 255, 0.09);
    --text: #f3f0fa;
    --text-muted: #aaa3c2;

    --radius: 18px;
    --radius-lg: 26px;
    --max: 1140px;
    --shadow: 0 20px 50px -20px rgba(124, 58, 237, 0.45);
    --font-head: 'Sora', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; font-weight: 700; }
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ===== BACKGROUND ORBS ===== */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.35; }
.orb-1 { width: 480px; height: 480px; background: var(--pink); top: -120px; left: -100px;
    animation: drift 18s ease-in-out infinite; }
.orb-2 { width: 520px; height: 520px; background: var(--violet); bottom: -160px; right: -120px;
    animation: drift 22s ease-in-out infinite reverse; }
.orb-3 { width: 360px; height: 360px; background: var(--magenta); top: 45%; left: 55%; opacity: 0.2;
    animation: drift 26s ease-in-out infinite; }
@keyframes drift {
    0%,100% { transform: translate(0,0) scale(1); }
    50%     { transform: translate(40px,-30px) scale(1.08); }
}

/* ===== Fonts ===== */
/* inter-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/inter-v20-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  src: url('fonts/inter-v20-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/inter-v20-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* sora-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Sora';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/sora-v17-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* sora-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Sora';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/sora-v17-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* sora-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Sora';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/sora-v17-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* sora-800 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Sora';
  font-style: normal;
  font-weight: 800;
  src: url('fonts/sora-v17-latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}



/* ===== HEADER ===== */
.site-header {
    position: fixed; top: 0; left: 0; width: 100%;
    z-index: 1000; padding: 16px 0;
    transition: background .3s ease, padding .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
    background: rgba(12, 10, 20, 0.8);
    backdrop-filter: blur(14px);
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.logo img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav-link { color: var(--text-muted); font-weight: 500; transition: color .2s; position: relative; }
.nav-link:hover { color: var(--text); }
.nav-link::after {
    content: ''; position: absolute; bottom: -6px; left: 0; width: 0; height: 2px;
    background: var(--gradient); transition: width .25s;
}
.nav-link:hover::after { width: 100%; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--font-head); font-weight: 600; font-size: .95rem;
    padding: 13px 26px; border-radius: 50px; cursor: pointer;
    border: none; transition: transform .2s, box-shadow .2s, opacity .2s;
}
.btn-primary { background: var(--gradient); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 24px 55px -18px rgba(224,64,251,.6); }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-nav { padding: 10px 22px; background: var(--gradient); color: #fff; }
.btn-nav:hover { transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ===== NAV TOGGLE ===== */
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero { padding: 180px 0 100px; text-align: center; position: relative; }
.hero-inner { max-width: 820px; margin: 0 auto; position: relative; z-index: 2; }
.badge {
    display: inline-block; padding: 8px 18px; border-radius: 50px;
    background: var(--surface); border: 1px solid var(--border);
    font-size: .85rem; color: var(--text-muted); margin-bottom: 28px;
}
.badge-icon {
    width: 16px; height: 16px;
    stroke: var(--pink); stroke-width: 1.8;
    fill: none; stroke-linecap: round; stroke-linejoin: round;
    vertical-align: -3px; margin-right: 6px;
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; letter-spacing: -.02em; }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--text-muted); margin: 26px auto 38px; max-width: 640px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-trust { display: flex; justify-content: center; gap: 48px; margin-top: 64px; flex-wrap: wrap; }
.trust-item { display: flex; flex-direction: column; }
.trust-item strong { font-family: var(--font-head); font-size: 1.5rem; }
.trust-item span { color: var(--text-muted); font-size: .9rem; }

/* ===== HERO KNOTEN-NETZWERK (KI / vernetzte Systeme) ===== */
.hero-net { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-net .node {
    position: absolute; width: 10px; height: 10px; border-radius: 50%;
    background: var(--pink); opacity: .5;
    box-shadow: 0 0 0 1px rgba(224,64,251,.25), 0 0 12px rgba(224,64,251,.5);
    animation: nodeFloat 7s ease-in-out infinite;
}
.n1 { top: 18%; left: 12%; animation-delay: 0s; }
.n2 { top: 30%; left: 84%; animation-delay: 1.2s; }
.n3 { top: 68%; left: 20%; animation-delay: 2.1s; }
.n4 { top: 75%; left: 78%; animation-delay: .6s; }
.n5 { top: 12%; left: 60%; animation-delay: 3s; }
@keyframes nodeFloat {
    0%,100% { transform: translateY(0); opacity: .35; }
    50%     { transform: translateY(-18px); opacity: .7; }
}

/* ===== FLOW DIVIDER (animierte Daten-Pipeline) ===== */
.flow-divider { width: 100%; height: 80px; overflow: hidden; line-height: 0; }
.flow-divider svg { width: 100%; height: 100%; display: block; }
.flow-divider--flip svg { transform: scaleX(-1); }
.flow-track {
    fill: none; stroke: var(--border); stroke-width: 1.5;
}
.flow-pulse {
    fill: none; stroke: url(#flowGrad); stroke-width: 2.5;
    stroke-dasharray: 180 1200; stroke-dashoffset: 1380;
    animation: flowPulse 4s linear infinite;
    filter: drop-shadow(0 0 6px rgba(224,64,251,.55));
}
.flow-dot { fill: var(--pink); filter: drop-shadow(0 0 6px rgba(224,64,251,.8)); }
@keyframes flowPulse { to { stroke-dashoffset: 0; } }

/* ===== SECTIONS ===== */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.eyebrow {
    display: inline-block; font-family: var(--font-head); font-weight: 600;
    font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
    color: var(--pink); margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }

/* ===== CARDS ===== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 34px 30px;
    transition: transform .3s, border-color .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(224,64,251,.4); box-shadow: var(--shadow); }
.card-icon {
    width: 58px; height: 58px; border-radius: 14px;
    display: grid; place-items: center;
    background: var(--gradient); margin-bottom: 20px;
    transition: transform .3s ease, box-shadow .3s ease;
}
.card-icon svg {
    width: 28px; height: 28px;
    stroke: #fff; stroke-width: 1.8;
    fill: none; stroke-linecap: round; stroke-linejoin: round;
}
.card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card p { color: var(--text-muted); }

/* ===== ICON MICRO-ANIMATIONEN (Bedeutung pro Leistung) ===== */
.card:hover .card-icon {
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 0 12px 30px -10px rgba(224,64,251,.7);
}
/* Prozessautomatisierung – Refresh-Pfeil rotiert (= läuft automatisch) */
.card:nth-child(1) .card-icon svg { transition: transform .8s ease; }
.card:nth-child(1):hover .card-icon svg { transform: rotate(360deg); }
/* System-Integration – Kettenglieder „verbinden" sich */
.card:nth-child(2) .card-icon svg { transition: transform .4s ease; }
.card:nth-child(2):hover .card-icon svg { transform: scale(1.12); }
/* Daten & Dashboards – Balken „wachsen" */
.card:nth-child(3) .card-icon svg { transition: transform .4s ease; transform-origin: bottom; }
.card:nth-child(3):hover .card-icon svg { transform: scaleY(1.15); }
/* Prozessanalyse – Lupe „sucht" */
.card:nth-child(5) .card-icon svg { transition: transform .4s ease; }
.card:nth-child(5):hover .card-icon svg { transform: rotate(-12deg) scale(1.1); }

/* ===== STEPS ===== */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; position: relative; }
/* Verbindungslinie (Automatisierungs-Pipeline) */
.steps::before {
    content: ''; position: absolute; top: 52px; left: 5%; right: 5%; height: 2px;
    background: var(--border); z-index: 0;
}
.steps::after {
    content: ''; position: absolute; top: 52px; left: 5%; height: 2px; width: 0;
    background: var(--gradient); z-index: 1;
    box-shadow: 0 0 10px rgba(224,64,251,.6);
    transition: width 1.4s ease;
}
.steps.run::after { width: 90%; }
.step {
    position: relative; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 32px 26px; z-index: 2;
}
.step-num {
    position: relative;
    font-family: var(--font-head); font-weight: 800; font-size: 2.4rem;
    background: var(--gradient); -webkit-background-clip: text; background-clip: text;
    color: transparent; display: block; margin-bottom: 8px;
}
.step.visible .step-num::after {
    content: ''; position: absolute; inset: -6px -10px;
    border-radius: 50%; border: 2px solid var(--pink);
    animation: nodePulse 2s ease-out infinite;
}
@keyframes nodePulse {
    0%   { transform: scale(.6); opacity: .8; }
    100% { transform: scale(1.4); opacity: 0; }
}
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: .95rem; }

/* ===== VORTEILE ===== */
.vorteile-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.vorteile-text h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 12px 0 18px; }
.vorteile-text > p { color: var(--text-muted); margin-bottom: 24px; }
.check-list li { position: relative; padding-left: 34px; margin-bottom: 14px; }
.check-list li::before {
    content: '✓'; position: absolute; left: 0; top: 1px;
    width: 22px; height: 22px; border-radius: 50%; background: var(--gradient);
    color: #fff; font-size: .8rem; display: grid; place-items: center; font-weight: 700;
}
.vorteile-stats { display: grid; gap: 20px; }
.stat-box {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px 30px;
}
.stat-box strong, .stat-box .suffix {
    font-family: var(--font-head); font-size: 2.6rem; font-weight: 800;
    background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-box p { color: var(--text-muted); margin-top: 4px; }

/* ===== ABOUT ===== */
.about-inner { max-width: 760px; }
.about-inner h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 12px 0 18px; }
.about-inner p { color: var(--text-muted); margin-bottom: 16px; }

/* ===== CTA / KONTAKT ===== */
.cta-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.cta-inner h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.cta-inner > p { color: var(--text-muted); margin: 16px 0 36px; }
.contact-form { display: grid; gap: 16px; text-align: left; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 15px 18px; border-radius: 14px;
    background: var(--surface); border: 1px solid var(--border);
    color: var(--text); font-family: var(--font-body); font-size: 1rem; resize: vertical;
    transition: border-color .2s, background .2s;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none; border-color: var(--pink); background: rgba(255,255,255,.06);
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--text-muted); }
.form-note { font-size: .9rem; min-height: 1.2em; text-align: center; }
.form-note.ok { color: #6ee7a8; }
.form-note.err { color: #ff7a90; }
.cta-direct { margin-top: 26px; color: var(--text-muted); }
.cta-direct a { color: var(--pink); font-weight: 600; }

/* ===== FOOTER ===== */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 50px 0 24px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer-logo { height: 40px; margin-bottom: 8px; }
.footer-brand p { color: var(--text-muted); font-size: .9rem; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { color: var(--text-muted); font-size: .92rem; transition: color .2s; }
.footer-nav a:hover { color: var(--text); }
.footer-bottom { text-align: center; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: .85rem; }

/* ===== SCROLL REVEAL ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
    .nav {
        position: fixed; inset: 0 0 0 auto; width: min(80%, 320px);
        flex-direction: column; justify-content: center; gap: 28px;
        background: rgba(12,10,20,.97); backdrop-filter: blur(16px);
        transform: translateX(100%); transition: transform .35s ease;
        border-left: 1px solid var(--border);
    }
    .nav.open { transform: translateX(0); }
    .nav-toggle { display: flex; z-index: 1100; }
    .vorteile-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-trust { gap: 32px; }
}
@media (max-width: 700px) {
    /* Prozesslinie auf Mobil ausblenden (Steps einspaltig) */
    .steps::before, .steps::after { display: none; }
    .flow-divider { height: 56px; }
}
@media (max-width: 540px) {
    .form-row { grid-template-columns: 1fr; }
    .section { padding: 72px 0; }
    .hero { padding: 150px 0 70px; }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
    .flow-pulse, .flow-dot, .hero-net .node,
    .orb-1, .orb-2, .orb-3,
    .step.visible .step-num::after { animation: none !important; }
    .steps::after { transition: none; width: 90%; }
    .card:hover .card-icon,
    .card:hover .card-icon svg { transform: none !important; }
}
