/* ============================================================
   GORGE IT — main.css
   Aesthetic: Dark navy, gorge photo bg, minimal centered layout
   ============================================================ */

/* ── Design tokens  ────────────────────────────────────────── */
:root {
    /* Colours */
    --clr-bg: #1a2332; /* deep navy — neutral-800 dark equiv */
    --clr-surface: rgba(31, 45, 61, 0);
    --clr-surface-2: rgba(36, 52, 71, 0);
    --clr-surface-imprint: #475569; /* slate-600: 6.1:1 with --clr-text (WCAG AA) */
    --clr-border: rgba(255, 255, 255, 0.08);
    --clr-text: #e2e8f0; /* neutral-200 */
    --clr-muted: #94a3b8; /* neutral-400 */
    --clr-primary: #60a5fa; /* blue-400 — matches gorgeit primary */
    --clr-primary-hov: #93c5fd;
    --clr-accent: #5bc4f5; /* the "IT" blue */
    --clr-accent-dk: #3a9fd4;

    /* Fonts */
    --font: "Comfortaa", sans-serif;
    --font-body: "Comfortaa", system-ui, sans-serif;
    --font-serif: "Lora", Georgia, serif;

    /* Layout */
    --nav-h: 72px;
    --max-w: 960px;
    --pad-x: clamp(1.5rem, 5vw, 4rem);

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 4px;
}
/* ── Reset ──────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

/* ── Base body ──────────────────────────────────────────────── */
body {
    height: 100%;
    min-height: 100vh;
    /*display: grid;*/
    /*grid-template-rows: auto 1fr auto;*/
    background: var(--clr-bg);
    color: var(--clr-text);
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}
a {
    color: inherit;
    text-decoration: none;
}
ul {
    list-style: none;
}

/* Scale SVG icons to text size */
.icon svg {
    @apply h-[1em] w-[1em];
}

/* ── Skip link ──────────────────────────────────────────────── */
.skip-link {
    position: absolute;
    top: -40px;
    left: 1rem;
    background: var(--clr-primary);
    color: #000;
    padding: 0.3rem 0.8rem;
    border-radius: 0 0 6px 6px;
    font-size: 0.85rem;
    z-index: 9999;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
}

/* ── Fixed Background ────────────────────────────────────────── */
/* Gorge photo sits fixed behind everything */
.bg-wrap {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
}

.bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* No transform — image is fixed to viewport and never moves */
    transition: filter 0.08s linear;
    will-change: filter;
}

/* Two-layer gradient — matches gorgeit.com exactly:
   1. Bottom-up dark fill
   2. Full dark tint overlay at ~60% opacity */
.bg-gradient {
    position: absolute;
    inset: 0;
    background:
    /* top-to-bottom fill — dark navy takes over lower portion */ linear-gradient(
        to top,
        var(--clr-bg) 0%,
        rgba(26, 35, 50, 0.85) 40%,
        rgba(26, 35, 50, 0.55) 70%,
        rgba(26, 35, 50, 0.35) 100%
    );
}

/* Blur overlay — opacity driven by JS on scroll */
.bg-blur {
    position: fixed;
    inset: 0;
    z-index: -1;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    opacity: 0;
    transition: opacity 0.1s linear;
    pointer-events: none;
    background: rgba(26, 35, 50, 0);
}

/* ── Navbar ─────────────────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition:
        background 0.4s var(--ease),
        box-shadow 0.4s var(--ease);
}

.site-header__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--pad-x);
    height: var(--nav-h);
    display: flex;
    align-items: center;
    gap: 2rem;
}

.site-header.is-scrolled {
    background: rgba(26, 35, 50, 0.35);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    box-shadow: 0 1px 0 var(--clr-border);
}

.site-header__logo {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--clr-text);
    flex-shrink: 0;
}
.site-header__logo span {
    color: var(--clr-primary);
}

.site-header__nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-left: auto;
}
.site-header__nav-link {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--clr-muted);
    transition: color 0.2s;
    position: relative;
}
.site-header__nav-link::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--clr-primary);
    transition: width 0.3s var(--ease);
}
.site-header__nav-link:hover {
    color: var(--clr-text);
}
.site-header__nav-link:hover::after {
    width: 100%;
}
/* Language switch (DE/EN): separated from the section links */
.site-header__lang {
    padding-left: 2rem;
    border-left: 1px solid var(--clr-border);
    letter-spacing: 0.08em;
}
.site-header__lang::after {
    left: 2rem;
}
.site-header__lang:hover::after {
    width: calc(100% - 2rem);
}

/* Burger */
.site-header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    margin-left: auto;
}
.site-header__burger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--clr-text);
    border-radius: 2px;
    transition:
        transform 0.3s,
        opacity 0.3s;
}

/* Mobile menu */
.mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: rgba(26, 35, 50, 0.97);
    backdrop-filter: blur(20px);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease);
}
.mobile-menu.is-open {
    max-height: 300px;
}
.mobile-menu__link {
    padding: 1rem var(--pad-x);
    font-size: 1.05rem;
    color: var(--clr-muted);
    border-top: 1px solid var(--clr-border);
    transition:
        color 0.2s,
        background 0.2s;
}
.mobile-menu__link:hover {
    color: var(--clr-text);
    background: rgba(255, 255, 255, 0.03);
}

/* ── Hero ───────────────────────────────────────────────────── */
/* Full viewport, content centered — exactly like gorgeit.com */
.hero {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 var(--pad-x);
    position: relative;
}

.hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.hero__title {
    font-family: var(--font-body);
    font-size: clamp(1.8rem, 7vw, 4.5rem);
    font-weight: 700;
    color: var(--clr-text);
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeUp 0.7s var(--ease) 0.1s forwards;
}
.hero__title span {
    color: var(--clr-primary);
}

.hero__subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 300;
    color: var(--clr-muted);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 0.7s var(--ease) 0.25s forwards;
}

/* Social icons row */
.hero__socials {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 1.25rem;
    opacity: 0;
    animation: fadeUp 0.7s var(--ease) 0.4s forwards;
}

.hero__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    color: var(--clr-primary);
    border-radius: 6px;
    transition:
        color 0.2s,
        background 0.2s;
}
.hero__social-link:hover {
    color: var(--clr-primary-hov);
    background: rgba(96, 165, 250, 0.1);
}
.hero__social-link svg {
    width: 1.1rem;
    height: 1.1rem;
}

/* Phone */
.hero__phone {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--clr-text);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeUp 0.7s var(--ease) 0.55s forwards;
}
.hero__phone-icon {
    width: 1rem;
    height: 1rem;
    color: var(--clr-primary);
    flex-shrink: 0;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition:
        background 0.2s,
        color 0.2s,
        transform 0.2s,
        box-shadow 0.2s;
}
.btn--primary {
    background: var(--clr-primary);
    /*color: #0f172a;*/
    color: #fff;
    border-radius: 4px;
    /*padding: 0.5em 1em;*/
}
.btn--primary:hover {
    background: var(--clr-primary-hov);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(96, 165, 250, 0.3);
}
.call--button a {
    display: inline-block;
    padding: 0.5em 1em;
    background: #4caf50;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}
.call--button a.support {
    background: #2196f3;
    margin-left: 0.5em;
}

.hero__content .btn {
    opacity: 0;
    animation: fadeUp 0.7s var(--ease) 0.7s forwards;
}

.icon-button {
    display: inline-flex; /* Flex container for icon + text */
    align-items: center; /* Vertically center content */
    gap: 0.6rem; /* Space between icon and text */
    padding: 0.6rem 1.2rem;
    background: var(--clr-primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    font: inherit;
    cursor: pointer;
    transition: background 0.2s;
    min-width: 250px;
}

/* Hover / focus states */
.icon-button:hover,
.icon-button:focus {
    background: var(--clr-primary-hov);
    outline: none;
}

/* Icon size – you can adjust as needed */
.icon-button-icon {
    width: 1.25em;
    height: 1.25em;
    display: block; /* Remove inline‑spacing gaps */
}

/* ── Content Blocks ─────────────────────────────────────────── */
/* Each block sits below the hero, on the dark navy background */
.blockx {
    position: relative;
    z-index: 1;
    background: var(--clr-bg);
    padding: 6rem 0;
}
.blockx--alt {
    background: var(--clr-surface);
}
.blockx--imprint {
    background: var(--clr-surface-imprint);
}

.blockx__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--pad-x);
}
.blockx__inner--center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.blockx__label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--clr-primary);
    margin-bottom: 0.6rem;
}

.blockx__title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--clr-text);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}
.blockx__subtitle {
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 1.5vw, 1.5rem);
    font-weight: 600;
    color: var(--clr-text);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.blockx__prose {
    color: var(--clr-muted);
    font-size: 1rem;
    line-height: 1.8;
    max-width: 65ch;
}
.blockx__prose p + p {
    margin-top: 1rem;
}
.blockx__prose--center {
    text-align: center;
}

/* About: text + portrait */
.about-layout {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
}
.about-photo {
    flex: 0 0 220px;
    margin: 0.4rem 0 0;
}
.about-photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--clr-accent);
}
@media (max-width: 768px) {
    .about-layout {
        flex-direction: column;
        gap: 1.5rem;
    }
    .about-photo {
        order: -1;
        flex-basis: auto;
        width: 160px;
    }
}

/* Stats row */
.stats-row {
    display: flex;
    gap: 3.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}
.stat {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.stat strong {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--clr-primary);
    line-height: 1;
}
.stat span {
    font-size: 0.85rem;
    color: var(--clr-muted);
}

/* Sub-pages (posts): leave room for the fixed header */
.blockx--page {
    padding-top: 9rem;
    min-height: 100vh;
}

/* Posts (content/impulse/): typography mirrors the social media images
   (Templates/linkedin-post.typ): kicker Comfortaa semibold in the "IT" blue,
   headline Comfortaa bold, short primary rule, body text Lora (muted).
   Cards reuse .service-item for the box. */
.post-kicker,
.post-card .post-card__kicker {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--clr-accent);
    margin-bottom: 0.9rem;
}
.post-title {
    font-family: var(--font-body);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--clr-text);
    max-width: 30ch;
}
.post-rule {
    width: 4.5rem;
    height: 2px;
    background: var(--clr-primary);
    margin: 1.5rem 0;
}
.post-rule--small {
    width: 2.5rem;
    margin: 0.9rem 0;
}
.post-card {
    display: flex;
    flex-direction: column;
    color: inherit;
}
.service-item .post-card__title {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0;
}
.service-item .post-card__text {
    font-family: var(--font-serif);
    font-size: 0.95rem;
}
.post-card__more {
    margin-top: auto;
    padding-top: 1rem;
    font-size: 0.85rem;
    color: var(--clr-primary);
}
.post-list__intro {
    margin-bottom: 2.5rem;
}
.post-list__all {
    margin-top: 2.5rem;
    text-align: center;
}
.post-meta {
    font-size: 0.85rem;
    color: var(--clr-muted);
    margin: 0 0 2rem;
}
.post-body {
    font-family: var(--font-serif);
    font-size: 1.1rem;
}
.post-body a {
    color: var(--clr-primary);
}
.post-body h2 {
    font-family: var(--font);
    font-size: 1.25rem;
    color: var(--clr-text);
    margin: 2.5rem 0 1rem;
}
/* Tabellen (z. B. Entscheidungsmatrix): auf schmalen Bildschirmen horizontal scrollbar */
.post-body table {
    display: block;
    overflow-x: auto;
    width: max-content;
    max-width: 100%;
    margin: 1.5rem 0 1rem;
    border-collapse: collapse;
    font-family: var(--font-body);
    font-size: 0.85rem;
    line-height: 1.4;
}
.post-body th,
.post-body td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--clr-border);
    text-align: center;
    vertical-align: middle;
    min-width: 7rem;
}
.post-body th {
    color: var(--clr-text);
    font-weight: 600;
}
.post-body td:first-child {
    text-align: left;
    color: var(--clr-text);
    min-width: 11rem;
}
.post-body th:last-child,
.post-body td:last-child {
    background: rgba(96, 165, 250, 0.08);
    color: var(--clr-primary);
}
.post-cta {
    max-width: 65ch;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--clr-border);
    color: var(--clr-text);
}
.post-cta p {
    margin-bottom: 1.25rem;
}
.post-back {
    margin-top: 3rem;
    font-size: 0.9rem;
}
.post-back a {
    color: var(--clr-muted);
}
.post-back a:hover {
    color: var(--clr-text);
}

/* Services grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 0;
}

.service-item {
    background: var(--clr-surface-2);
    border: 1px solid var(--clr-border);
    border-radius: 10px;
    padding: 2rem 1.75rem;
    transition:
        border-color 0.25s,
        background 0.25s,
        transform 0.25s;
}
.service-item:hover {
    border-color: rgba(96, 165, 250, 0.3);
    background: rgba(96, 165, 250, 0.04);
    transform: translateY(-2px);
}
.service-item__icon {
    width: 2.2rem;
    height: 2.2rem;
    color: var(--clr-primary);
    margin-bottom: 1rem;
}
.service-item__icon svg {
    width: 100%;
    height: 100%;
}
.service-item h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--clr-text);
    margin-bottom: 0.5rem;
}
.service-item p {
    font-size: 0.9rem;
    color: var(--clr-muted);
    line-height: 1.7;
}

/* Contact block extras */
.contact-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    margin-top: 2rem;
}
.contact-phone {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--clr-muted);
    font-size: 1rem;
}
.contact-phone svg {
    width: 0.9rem;
    height: 0.9rem;
    color: var(--clr-primary);
    flex-shrink: 0;
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
    background: var(--clr-surface);
    border-top: 1px solid var(--clr-border);
    padding: 1.5rem var(--pad-x);
}
.site-footer__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.site-footer__copy {
    font-size: 0.8rem;
    color: var(--clr-muted);
}
.site-footer__links {
    display: flex;
    gap: 1.5rem;
}
.site-footer__links a {
    font-size: 0.8rem;
    color: var(--clr-muted);
    transition: color 0.2s;
}
.site-footer__links a:hover {
    color: var(--clr-text);
}
.site-footer-bak {
    position: relative;
    z-index: 1;
    background: var(--clr-bg);
    border-top: 1px solid var(--clr-border);
    padding: 2.5rem var(--pad-x);
    text-align: center;
}
.site-footer__copy-bak {
    font-size: 0.85rem;
    color: var(--clr-muted);
}

/* ── Animations ─────────────────────────────────────────────── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Scroll-reveal for blocks ───────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.6s var(--ease),
        transform 0.6s var(--ease);
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ── Card ────────────────────────────────────────────────── */
.card {
    width: 100%;
    max-width: 480px;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    backdrop-filter: blur(18px);
    padding: 2.8rem 2.6rem;
    animation: fadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.card-name {
    margin-bottom: 0.25rem;
    font-size: 2.1rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.card-name .last {
    color: var(--clr-accent);
    font-weight: 600;
}

.card-suffix {
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--clr-muted);
    /*text-transform: uppercase;*/
    margin-bottom: 0.6rem;
}

.card-title {
    font-size: 0.9rem;
    color: var(--clr-muted);
    margin-bottom: 0.1rem;
}
.card-company {
    font-size: 0.9rem;
    color: var(--clr-text);
    font-weight: 600;
    margin-bottom: 2rem;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .site-header__nav {
        display: none;
    }
    .site-header__burger {
        display: flex;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
    .stats-row {
        gap: 2rem;
    }
}

/* Variable fonts (all weights in one file), subset to Latin, WOFF2 */
@font-face {
    font-family: "Comfortaa";
    src: url("/fonts/Comfortaa-latin-var.woff2") format("woff2");
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Lora";
    src: url("/fonts/Lora-latin-var.woff2") format("woff2");
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}
