/* ═══════════════════════════════════════════════════════════════════
   Heise Informatik — Design System (Elementor-Ready)
   ═══════════════════════════════════════════════════════════════════
   These CSS custom properties are available in Elementor's
   "Advanced → Custom CSS" and the Global CSS editor.
   Reference them as: var(--hi-accent), var(--hi-bg), etc.
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Design Tokens ────────────────────────────────────────────────── */
:root {
    /* Brand colors */
    --hi-bg:           #0b0f19;
    --hi-surface:      #ffffff;
    --hi-text:         #0b1220;
    --hi-muted:        #5b6474;
    --hi-border:       #e6e8ee;
    --hi-accent:       #2f6fed;
    --hi-accent-hover: #1b5ad4;
    --hi-accent-2:     #0ea5e9;

    /* Surfaces */
    --hi-surface-alt:  #f7f8fb;
    --hi-card-bg:      #ffffff;

    /* Radii */
    --hi-radius:       16px;
    --hi-radius-sm:    10px;

    /* Shadows */
    --hi-shadow:       0 1px 3px rgba(11,15,25,.06), 0 8px 24px rgba(11,15,25,.06);
    --hi-shadow-lg:    0 4px 12px rgba(11,15,25,.08), 0 16px 40px rgba(11,15,25,.10);

    /* Typography */
    --hi-font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;

    /* Layout */
    --hi-max-w:        1120px;
    --hi-header-h:     72px;
}

/* ─── Reset ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--hi-header-h);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--hi-font);
    font-size: 17px;
    line-height: 1.65;
    color: var(--hi-text);
    background: var(--hi-surface);
}

img { max-width: 100%; height: auto; display: block; }

a {
    color: var(--hi-accent);
    text-decoration: none;
    transition: color .15s;
}
a:hover { color: var(--hi-accent-hover); }

/* Focus */
:focus-visible {
    outline: 2px solid var(--hi-accent);
    outline-offset: 2px;
}

/* ─── Container (theme fallback) ───────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--hi-max-w);
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Typography ───────────────────────────────────────────────────── */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--hi-text);
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.125rem, 4vw + 1rem, 3.25rem); }
h2 { font-size: clamp(1.625rem, 2.5vw + 0.5rem, 2.125rem); }
h3 { font-size: 1.2rem; }

/* ═══════════════════════════════════════════════════════════════════
   Header (PHP fallback — overridden when Elementor Theme Builder
   header is active)
   ═══════════════════════════════════════════════════════════════════ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--hi-header-h);
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--hi-border);
}

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

.site-header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.site-header__logo img {
    height: 36px;
    width: auto;
}

.site-header__wordmark {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--hi-text);
    letter-spacing: -0.01em;
}

/* Nav */
.site-nav__list {
    display: flex;
    list-style: none;
    gap: 36px;
}

.site-nav__list a {
    font-size: 0.935rem;
    font-weight: 500;
    color: var(--hi-muted);
    text-decoration: none;
    transition: color .15s;
}

.site-nav__list a:hover,
.site-nav__list .current-menu-item > a {
    color: var(--hi-text);
}

/* Hamburger */
.site-header__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 24px;
    position: relative;
    flex-shrink: 0;
}

.site-header__toggle span {
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--hi-text);
    border-radius: 2px;
    transition: transform .25s, opacity .2s;
}

.site-header__toggle span:nth-child(1) { top: 0; }
.site-header__toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.site-header__toggle span:nth-child(3) { bottom: 0; }

.site-header__toggle[aria-expanded="true"] span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.site-header__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-header__toggle[aria-expanded="true"] span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

@media (max-width: 768px) {
    .site-header__toggle { display: block; }

    .site-nav {
        display: none;
        position: absolute;
        top: var(--hi-header-h);
        left: 0;
        right: 0;
        background: var(--hi-surface);
        border-bottom: 1px solid var(--hi-border);
        padding: 24px;
        box-shadow: var(--hi-shadow);
    }

    .site-nav.is-open { display: block; }

    .site-nav__list {
        flex-direction: column;
        gap: 16px;
    }

    .site-nav__list a {
        font-size: 1.05rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   Footer (PHP fallback)
   ═══════════════════════════════════════════════════════════════════ */
.site-footer {
    background: var(--hi-bg);
    color: rgba(255,255,255,.6);
    padding: 48px 0;
    font-size: 0.875rem;
}

.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
}

.site-footer__brand strong {
    display: block;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 6px;
}

.site-footer__address {
    font-style: normal;
    line-height: 1.7;
}

.site-footer__contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.site-footer__contact a {
    color: rgba(255,255,255,.6);
    transition: color .15s;
}

.site-footer__contact a:hover { color: #fff; }

.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.site-footer__legal a {
    color: rgba(255,255,255,.5);
    transition: color .15s;
}

.site-footer__legal a:hover { color: #fff; }

.site-footer__copy {
    color: rgba(255,255,255,.35);
}

@media (max-width: 768px) {
    .site-footer__inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .site-footer__contact { align-items: center; }
    .site-footer__legal { justify-content: center; }
}

/* ═══════════════════════════════════════════════════════════════════
   Default Page (non-Elementor fallback)
   ═══════════════════════════════════════════════════════════════════ */
.page-default {
    padding: 88px 0;
}

.page-default h1 {
    margin-bottom: 32px;
}

.page-default__content {
    max-width: 720px;
    color: var(--hi-muted);
}

.page-default__content p:not(:last-child) {
    margin-bottom: 16px;
}

/* ═══════════════════════════════════════════════════════════════════
   Elementor Helpers
   ═══════════════════════════════════════════════════════════════════
   Utility classes you can apply in Elementor's Advanced → CSS Classes.
   ═══════════════════════════════════════════════════════════════════ */

/* Card style — add class "hi-card" to any Elementor widget/container */
.hi-card {
    background: var(--hi-card-bg);
    border: 1px solid var(--hi-border);
    border-radius: var(--hi-radius);
    padding: 32px 28px;
    box-shadow: var(--hi-shadow);
    transition: box-shadow .2s, transform .2s;
}

.hi-card:hover {
    box-shadow: var(--hi-shadow-lg);
    transform: translateY(-2px);
}

/* Badge style — add class "hi-badge" */
.hi-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: rgba(255,255,255,.75);
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 6px;
    padding: 6px 14px;
}

/* Highlight tag — add class "hi-tag" */
.hi-tag {
    display: inline-flex;
    background: #eef3ff;
    color: var(--hi-accent);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
}

/* Icon container — add class "hi-icon" */
.hi-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef3ff;
    border-radius: 12px;
    color: var(--hi-accent);
}

/* Button primary — add class "hi-btn" */
.hi-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--hi-font);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    padding: 14px 28px;
    border-radius: var(--hi-radius-sm);
    border: none;
    cursor: pointer;
    background: var(--hi-accent);
    color: #fff;
    text-decoration: none;
    transition: background .15s, transform .1s;
}

.hi-btn:hover {
    background: var(--hi-accent-hover);
    color: #fff;
}

.hi-btn:active { transform: scale(.98); }

/* Button secondary */
.hi-btn--secondary {
    background: transparent;
    color: var(--hi-accent);
    border: 1.5px solid var(--hi-border);
}

.hi-btn--secondary:hover {
    border-color: var(--hi-accent);
    color: var(--hi-accent-hover);
    background: transparent;
}

/* Dark section text override — add "hi-dark" to section */
.hi-dark,
.hi-dark h1,
.hi-dark h2,
.hi-dark h3,
.hi-dark h4 {
    color: #fff;
}

.hi-dark p,
.hi-dark li {
    color: rgba(255,255,255,.7);
}

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

/* ═══════════════════════════════════════════════════════════════════
   Onepager Section & Component Styles
   ═══════════════════════════════════════════════════════════════════
   Apply these CSS classes in Elementor's Advanced → CSS Classes.
   Backgrounds, animations, and hover effects are theme-controlled
   for guaranteed rendering after JSON import.
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Animations ──────────────────────────────────────────────────── */
@keyframes hi-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0.4); }
    50% { box-shadow: 0 0 0 6px rgba(52,211,153,0); }
}

/* ─── Hero Section ────────────────────────────────────────────────── */
.hi-hero {
    background: linear-gradient(160deg, #070a12 0%, #0f1729 100%) !important;
    position: relative;
    overflow: hidden;
}

.hi-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 20%, rgba(47,111,237,0.12) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.hi-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.hi-hero > .elementor-container {
    position: relative;
    z-index: 1;
}

/* ─── Status Pill ─────────────────────────────────────────────────── */
.hi-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(47,111,237,0.1);
    border: 1px solid rgba(47,111,237,0.2);
    border-radius: 100px;
    padding: 6px 16px 6px 12px;
    font-family: var(--hi-font);
}

.hi-status-pill__dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #34d399;
    border-radius: 50%;
    animation: hi-pulse 2s ease-in-out infinite;
}

.hi-status-pill__text {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
    letter-spacing: 0.02em;
}

/* ─── Hero Buttons ────────────────────────────────────────────────── */
.hi-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--hi-radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--hi-font);
    text-decoration: none;
    transition: all .2s;
    cursor: pointer;
    border: none;
    line-height: 1;
}

.hi-hero-btn--primary {
    background: var(--hi-accent);
    color: #fff;
}

.hi-hero-btn--primary:hover {
    background: var(--hi-accent-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(47,111,237,0.3);
}

.hi-hero-btn--ghost {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.12);
}

.hi-hero-btn--ghost:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,255,255,0.25);
}

@media (max-width: 480px) {
    .hi-hero-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ─── Trust Badges ────────────────────────────────────────────────── */
.hi-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.73rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    padding: 7px 14px;
    font-family: var(--hi-font);
    transition: all .2s;
}

.hi-trust-badge:hover {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.6);
    border-color: rgba(255,255,255,0.15);
}

.hi-trust-badge svg {
    flex-shrink: 0;
}

/* ─── Stats Counter ───────────────────────────────────────────────── */
.hi-stat {
    text-align: center;
    font-family: var(--hi-font);
}

.hi-stat__number {
    font-family: 'Space Grotesk', var(--hi-font);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--hi-text);
    letter-spacing: -0.03em;
    line-height: 1;
}

.hi-stat__label {
    font-size: 0.82rem;
    color: var(--hi-muted);
    margin-top: 6px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .hi-stat__number { font-size: 2rem; }
}

/* ─── Section Label (overline) ────────────────────────────────────── */
.hi-section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hi-accent);
    font-family: var(--hi-font);
    margin-bottom: 16px;
}

/* ─── Card Icon (gradient circle) ─────────────────────────────────── */
.hi-card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--hi-accent) 0%, var(--hi-accent-2) 100%);
    border-radius: 12px;
    margin-bottom: 20px;
}

/* ─── Service Tags ────────────────────────────────────────────────── */
.hi-service-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--hi-accent);
    background: #EEF3FF;
    padding: 4px 12px;
    border-radius: 6px;
    font-family: var(--hi-font);
}

/* ─── CTA Dark Section ───────────────────────────────────────────── */
.hi-cta-dark {
    background: linear-gradient(135deg, #0d1424 0%, #101d3a 100%) !important;
    position: relative;
    overflow: hidden;
}

.hi-cta-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(47,111,237,0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hi-cta-dark > .elementor-container {
    position: relative;
    z-index: 1;
}

/* ─── CTA Button ──────────────────────────────────────────────────── */
.hi-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    background: var(--hi-accent);
    color: #fff;
    border: none;
    border-radius: var(--hi-radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--hi-font);
    text-decoration: none;
    transition: all .2s;
    cursor: pointer;
    line-height: 1;
}

.hi-cta-btn:hover {
    background: var(--hi-accent-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(47,111,237,0.35);
}

/* ─── Contact Info ────────────────────────────────────────────────── */
.hi-contact-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-family: var(--hi-font);
}

.hi-contact-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F0F4FF;
    border-radius: 10px;
}

.hi-contact-label {
    font-weight: 600;
    color: var(--hi-text);
    font-size: 0.95rem;
}

.hi-contact-value {
    color: var(--hi-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.hi-contact-link {
    color: var(--hi-accent);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color .15s;
}

.hi-contact-link:hover {
    color: var(--hi-accent-hover);
}

/* ─── Portrait Placeholder ────────────────────────────────────────── */
.hi-portrait {
    width: 100%;
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, #e8ecf4 0%, #d5dbe8 100%);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-family: var(--hi-font);
}

.hi-portrait__text {
    color: #9ca3af;
    font-size: 0.82rem;
    margin-top: 12px;
    font-weight: 500;
    text-align: center;
    line-height: 1.5;
}

/* ─── About Tags ──────────────────────────────────────────────────── */
.hi-about-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #EEF3FF;
    color: var(--hi-accent);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    font-family: var(--hi-font);
}
