/*
Theme Name: NAGL GP Child
Theme URI: https://nagl.biz/
Description: Child theme for GeneratePress, tailored for NAGL.biz
Author: Alexander Nagl
Author URI: https://nagl.biz/
Template: generatepress
Version: 1.0.0
*/
/* ============================================
   NAGL.biz — Design System
   ============================================ */

:root {
    /* Palette */
    --c-dark: #0D0D0D;
    --c-dark-soft: #1A1A1A;
    --c-dark-muted: #2A2A2A;
    --c-mid: #6B6B6B;
    --c-light-muted: #A0A0A0;
    --c-light: #F5F5F0;
    --c-white: #FAFAF8;
    --c-accent: #ffffff;

    /* Typography */
    --f-main: 'Outfit', system-ui, sans-serif;
    --f-mono: 'JetBrains Mono', 'Courier New', monospace;

    /* Spacing */
    --s-xs: 0.5rem;
    --s-sm: 1rem;
    --s-md: 2rem;
    --s-lg: 4rem;
    --s-xl: 6rem;
    --s-2xl: 10rem;

    /* Transitions */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --t-fast: 0.3s;
    --t-mid: 0.6s;
    --t-slow: 1s;
}

/* ============================================
   Reset & Base
   ============================================ */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--f-main);
    background: var(--c-dark);
    color: var(--c-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* ============================================
   Noise Overlay
   ============================================ */

.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ============================================
   Navigation
   ============================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 3rem;
    transition: background var(--t-fast) var(--ease),
        padding var(--t-fast) var(--ease);
}

.nav--scrolled {
    padding: 1rem 3rem;
}

.nav--scrolled::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 13, 13, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(245, 245, 240, 0.06);
    z-index: -1;
    pointer-events: none;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav__logo-img {
    width: 46px;
    height: auto;
    filter: invert(1);
}

.nav__wordmark {
    font-family: var(--f-main);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav__ul {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav__link,
.nav__ul a,
.current-menu-item>a,
.current-menu-ancestor>a {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-light-muted);
    transition: color var(--t-fast) var(--ease);
    position: relative;
}


.nav__link::after,
.nav__ul a::after,
.current-menu-item>a::after,
.current-menu-ancestor>a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--c-light);
    transition: width var(--t-fast) var(--ease);
}


.nav__link:hover,
.nav__ul a:hover,
.nav__link.active,
.current-menu-item>a,
.current-menu-ancestor>a {
    color: var(--c-light);
}

.nav__link:hover::after,
.nav__ul a:hover::after,
.nav__link.active::after,
.current-menu-item>a::after,
.current-menu-ancestor>a::after {
    width: 100%;
}



.nav__link--cta {
    color: var(--c-dark);
    background: var(--c-light);
    padding: 0.6rem 1.5rem;
    border-radius: 0;
    font-weight: 500;
    transition: background var(--t-fast) var(--ease),
        color var(--t-fast) var(--ease),
        transform var(--t-fast) var(--ease);
}

.nav__link--cta::after {
    display: none;
}

.nav__link--cta.active,
.current-menu-item>a.nav__link--cta,
.current-menu-ancestor>a.nav__link--cta {
    color: var(--c-dark);
}

.nav__link--cta:hover {
    background: var(--c-white);
    color: var(--c-dark);
    transform: translateY(-1px);
}

.nav__burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav__burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--c-light);
    transition: transform var(--t-fast) var(--ease),
        opacity var(--t-fast) var(--ease);
}

.nav__burger.active span:first-child {
    transform: translateY(4px) rotate(45deg);
}

.nav__burger.active span:last-child {
    transform: translateY(-4px) rotate(-45deg);
}

/* ============================================
   Components
   ============================================ */

.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 0.9rem;
    font-family: var(--f-main);
    font-weight: 500;
    color: var(--c-light);
    background: transparent;
    border: 1px solid rgba(245, 245, 240, 0.2);
    border-radius: 4px;
    /* subtle rounding */
    text-transform: uppercase;
    letter-spacing: 0.15em;
    position: relative;
    overflow: hidden;
    transition: all var(--t-fast) var(--ease);
    z-index: 1;
    cursor: pointer;
    margin-top: var(--s-md);
    width: fit-content;
}

.btn-cta::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: var(--c-light);
    transition: height var(--t-fast) var(--ease);
    z-index: -1;
}

.btn-cta:hover {
    color: var(--c-dark);
    border-color: var(--c-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px rgba(255, 255, 255, 0.1);
}

.btn-cta:hover::before {
    height: 100%;
}

/* ============================================
   Section Base
   ============================================ */

.section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.section__inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--s-xl) 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section__label {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: var(--s-lg);
}

.section__number {
    font-family: var(--f-mono);
    font-size: 0.75rem;
    color: var(--c-mid);
    letter-spacing: 0.1em;
}

.section__tag {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--c-mid);
}

.section__heading {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

/* ============================================
   Reveal Animation Base
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity var(--t-slow) var(--ease),
        transform var(--t-slow) var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Hero
   ============================================ */

.section--hero {
    background: var(--c-dark);
    flex-direction: column;
    padding: 0 3rem;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.section--hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/images/alex_bg.png');
    background-size: cover;
    background-position: left center;
    opacity: 0.10;
    z-index: 0;
    pointer-events: none;
}

.hero__ambient-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80vw;
    height: 80vw;
    max-width: 1000px;
    max-height: 1000px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(13, 13, 13, 0) 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
    animation: pulseGlow 8s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }
}

.hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--s-lg);
    position: relative;
    z-index: 1;
}

.hero__logo-wrap {
    position: relative;
}

.hero__logo {
    width: clamp(192px, 29vw, 352px);
    height: auto;
    filter: invert(1);
}

.hero__title {
    font-size: clamp(1.8rem, 4.5vw, 3.8rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero__title-line {
    display: block;
}

.hero__title-line:last-child {
    font-weight: 600;
}

.hero__sub {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--c-mid);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: var(--s-xs);
}

.hero__desc {
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    font-weight: 400;
    color: var(--c-light-muted);
    margin-top: var(--s-sm);
    letter-spacing: 0.01em;
}

.hero__desc a {
    color: var(--c-light);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: rgba(255, 255, 255, 0.3);
    transition: all var(--t-fast) var(--ease);
}

.hero__desc a:hover {
    color: var(--c-white);
    text-decoration-color: var(--c-white);
}

.hero__scroll-hint {
    position: absolute;
    bottom: 3rem;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    z-index: 5;
    transition: opacity var(--t-fast) var(--ease);
}

.hero__scroll-hint:hover {
    opacity: 0.8;
}

.hero__scroll-text {
    font-family: var(--f-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--c-light);
    opacity: 0.8;
}

.hero__scroll-line {
    width: 2px;
    height: 50px;
    background: linear-gradient(to bottom, var(--c-light), transparent);
    animation: scrollSlide 2.5s cubic-bezier(0.76, 0, 0.24, 1) infinite;
    border-radius: 1px;
}

@keyframes scrollSlide {
    0% {
        transform: translateY(-10px) scaleY(0);
        opacity: 0;
        transform-origin: top;
    }

    40% {
        transform: translateY(0) scaleY(1);
        opacity: 1;
        transform-origin: top;
    }

    60% {
        transform: translateY(0) scaleY(1);
        opacity: 1;
        transform-origin: bottom;
    }

    100% {
        transform: translateY(10px) scaleY(0);
        opacity: 0;
        transform-origin: bottom;
    }
}

/* ============================================
   About
   ============================================ */

.section--about {
    background: var(--c-dark);
    border-top: 1px solid rgba(245, 245, 240, 0.06);
}

.about__grid {
    display: grid;
    grid-template-columns: 7fr 6fr;
    gap: var(--s-xxl);
    align-items: end;
}

.about__left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about__left .section__heading {
    margin-bottom: var(--s-md);
}

.about__text {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--c-light-muted);
    margin-bottom: var(--s-md);
}

.about__btns {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-sm);
    margin-top: var(--s-md);
}

.about__btns .btn-cta {
    margin-top: 0;
}

.about__text:last-child {
    margin-bottom: 0;
}

.about__right {
    height: 100%;
}

.about__photo-wrap {
    position: relative;
    overflow: hidden;
    height: 100%;
}

.about__photo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: bottom right;
    filter: grayscale(0.5) contrast(1.1);
    transition: filter 0.8s var(--ease), transform 0.8s var(--ease);
}

.about__photo-wrap:hover .about__photo {
    filter: grayscale(0) contrast(1.05);
    transform: scale(1.03);
}

/* ============================================
   Services
   ============================================ */

/* ============================================
   Services (Horizontal Scroll)
   ============================================ */
.section--services {
    background: var(--c-dark-soft);
    padding: 0;
}

/* ── Section 02: Services (Flip Cards) ── */
.section--services {
    background: var(--c-dark-soft);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: rgba(255, 255, 255, 0.05);
    /* grid lines */
}

.service-card {
    background: transparent;
    perspective: 1200px;
    height: 400px;
    position: relative;
    cursor: pointer;
}

.service-card__inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

/* Flip only on class, not hover */
.service-card.is-flipped .service-card__inner {
    transform: rotateY(180deg);
}

.service-card__front,
.service-card__back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    padding: var(--s-lg) var(--s-md);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* subtle frame */
}

.service-card__front {
    background: var(--c-dark);
}

.service-card__back {
    background: var(--c-dark-muted);
    transform: rotateY(180deg);
    padding-bottom: calc(var(--s-md) + 40px);
    overflow-y: auto;
}

/* Front Details */
.service-card__icon {
    width: 34px;
    height: 34px;
    color: var(--c-accent);
    /* Make icon itself more prominent */
    margin-bottom: var(--s-md);
    transition: transform 0.4s var(--ease);
}

.service-card:hover .service-card__icon {
    transform: scale(1.1);
}

.service-card__title {
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    margin-bottom: var(--s-sm);
    line-height: 1.3;
    color: var(--c-light);
}

.service-card__desc {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--c-light-muted);
}

/* More Icon (Auffälliger) */
.service-card__more {
    position: absolute;
    bottom: var(--s-md);
    right: var(--s-md);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--c-accent);
    opacity: 1;
    transition: all 0.4s var(--ease);
}

.service-card:hover .service-card__more {
    background: var(--c-accent);
    color: var(--c-dark);
    transform: rotate(90deg);
}

.service-card:hover .service-card__more--back {
    transform: scale(1.1);
    /* No rotation for the back arrow */
}

.service-card__more--back {
    color: var(--c-accent);
}

/* Back Content */

.service-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-card__list li {
    font-size: 1rem;
    color: var(--c-light);
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.service-card__list li:last-child {
    border-bottom: none;
}

.services__summary-title {
    margin-top: var(--s-xl);
    margin-bottom: var(--s-sm);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 500;
}

.services__summary {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--c-light-muted);
    column-count: 1;
    column-gap: var(--s-lg);
}

@media (max-width: 1024px) {
    .services__grid {
        grid-template-columns: 1fr;
    }

    .services__summary {
        column-count: 1;
    }
}

/* ============================================
   Philosophy
   ============================================ */

.section--philosophy {
    background: var(--c-light);
    color: var(--c-dark);
}

.section--philosophy .section__number,
.section--philosophy .section__tag {
    color: var(--c-mid);
}

.section--philosophy .section__heading {
    color: var(--c-dark);
}

.philosophy__content {
    display: flex;
    flex-direction: column;
    gap: var(--s-xl);
}

.philosophy__statement {
    text-align: center;
    padding: var(--s-lg) 0;
}

.philosophy__contrast {
    font-size: clamp(1.5rem, 3.5vw, 2.8rem);
    line-height: 1.4;
}

.philosophy__contrast--muted {
    color: var(--c-mid);
    font-weight: 300;
}

.philosophy__contrast--bold {
    font-weight: 600;
    color: var(--c-dark);
    margin-top: 0.5rem;
}

.philosophy__pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: rgba(13, 13, 13, 0.08);
}

.philosophy__pillar {
    background: var(--c-light);
    padding: var(--s-md) var(--s-md);
    transition: background var(--t-fast) var(--ease);
}

.philosophy__pillar:hover {
    background: var(--c-white);
}

.philosophy__pillar-num {
    font-family: var(--f-mono);
    font-size: 0.7rem;
    color: var(--c-mid);
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: var(--s-sm);
}

.philosophy__pillar-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.philosophy__pillar-desc {
    font-size: 0.88rem;
    color: var(--c-mid);
    line-height: 1.55;
}

/* ============================================
   Contact
   ============================================ */

.section--contact {
    background: var(--c-dark);
    padding: 0;
    flex-direction: column;
    justify-content: flex-start;
}

.section--contact .section__inner {
    border-top: 1px solid rgba(245, 245, 240, 0.06);
    padding-bottom: var(--s-xl);
}

.contact__info {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1100px;
}

.contact__heading {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: var(--s-md);
    color: var(--c-light);
}

.contact__details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-md) var(--s-lg);
}

.contact__block--full {
    grid-column: span 3;
    padding-top: var(--s-md);
    margin-top: var(--s-md);
    border-top: 1px solid rgba(245, 245, 240, 0.06);
}

.contact__block {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact__label {
    font-family: var(--f-mono);
    font-size: 0.65rem;
    color: var(--c-mid);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.contact__link,
.contact__text {
    font-size: 1.05rem;
    color: var(--c-light);
    line-height: 1.6;
}

.contact__link {
    transition: color var(--t-fast) var(--ease);
}

.contact__link:hover {
    color: var(--c-mid);
}



.contact__map {
    position: relative;
    width: 100%;
    height: 35vh;
    min-height: 300px;
    background: var(--c-dark-soft);
    border-top: 1px solid rgba(245, 245, 240, 0.06);
    overflow: hidden;
}

.contact__map iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dezent: starke Sättigungsverringerung, Dark Mode, tiefer Kontrast */
    filter: invert(100%) hue-rotate(180deg) grayscale(80%) contrast(1.1) brightness(0.8);
    opacity: 0.7;
    transition: opacity var(--t-mid) var(--ease), filter var(--t-mid) var(--ease);
}

.contact__map:hover iframe {
    /* Leicht aufhellen und mehr Farbe bei Mouseover */
    opacity: 0.9;
    filter: invert(100%) hue-rotate(180deg) grayscale(40%) contrast(1.2) brightness(0.9);
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: var(--c-dark);
    border-top: 1px solid rgba(245, 245, 240, 0.06);
    padding: var(--s-md) 3rem;
}

.footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer__left {
    display: flex;
    align-items: center;
    gap: var(--s-md);
}

.footer__logo {
    width: 16px;
    height: auto;
    filter: invert(1);
    opacity: 0.5;
}

.footer__copy {
    font-size: 0.75rem;
    color: var(--c-mid);
    letter-spacing: 0.05em;
}

.footer__top-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--c-mid);
    transition: color var(--t-fast) var(--ease);
}

.footer__top-link:hover {
    color: var(--c-light);
}

.footer__top-text {
    font-family: var(--f-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer__top-icon {
    width: 14px;
    height: 14px;
    transition: transform var(--t-fast) var(--ease);
}

.footer__top-link:hover .footer__top-icon {
    transform: translateY(-2px);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 900px) {
    .nav__links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100dvh;
        background: rgba(13, 13, 13, 0.97);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--t-fast) var(--ease);
    }

    .nav__links.active {
        opacity: 1;
        pointer-events: auto;
    }

    .nav__links .nav__link {
        font-size: 1.2rem;
        color: var(--c-light);
    }

    .nav__links .nav__link--cta {
        color: var(--c-dark);
        padding: 0.8rem 2rem;
        font-size: 1.1rem;
    }

    .nav__ul {
        flex-direction: column;
        gap: 2rem;
    }

    .nav__burger {
        display: flex;
        z-index: 1001;
    }

    .about__grid {
        grid-template-columns: 1fr;
        gap: var(--s-md);
    }

    .contact__details {
        grid-template-columns: 1fr;
        gap: var(--s-md);
    }

    .contact__block--full {
        grid-column: span 1;
    }

    .contact__heading {
        margin-bottom: var(--s-md);
    }

    .contact__map {
        height: 250px;
        min-height: 250px;
    }

    .services__grid {
        grid-template-columns: 1fr;
    }

    .philosophy__pillars {
        grid-template-columns: 1fr;
    }

    .section__inner {
        padding: var(--s-lg) 1.5rem;
    }

    .nav {
        padding: 1rem 1.5rem;
    }

    .section--hero {
        padding: 0 1.5rem;
    }

    .section--hero::before {
        background-position: 80% 60%;

    }

    .footer {
        padding: var(--s-md) 1.5rem;
    }

    .footer__inner {
        flex-direction: column;
        gap: var(--s-sm);
        text-align: center;
    }
}

@media (max-width: 600px) {
    .hero__logo {
        width: 100px;
    }

    .btn-cta {
        padding: 0.8rem 2rem;
        font-size: 0.8rem;
    }

    .service-card {
        height: 430px;
    }

    .service-card__front,
    .service-card__back {
        padding: var(--s-md) 1.5rem;
    }

    .service-card__more {
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

/* ============================================
   Blog & Journal
   ============================================ */

.blog-main {
    padding-top: 90px;
}

.blog-header {
    min-height: auto; /* überschreibt die 100vh der normalen .section */
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
}

.blog-header .section__inner {
    padding-top: var(--s-lg);
    padding-bottom: var(--s-xs);
}

.blog-content {
    min-height: auto;
}

.blog-content .section__inner {
    padding-top: var(--s-xs);
    padding-bottom: var(--s-md); /* Verringerter Abstand nach unten */
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem; /* Deutlichere visuelle Trennung */
    margin-top: 0;
}

.blog-card {
    background: linear-gradient(145deg, var(--c-dark-soft), #121212); /* Leichter Farbverlauf für Tiefe */
    border: 1px solid rgba(255, 255, 255, 0.08); /* Sichtbarerer Rahmen */
    border-radius: 12px; /* Sichtbarer abgerundete Ecken */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); /* Permanenter, weicher Grundschatten */
    transition: all var(--t-mid) var(--ease);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Ensure image and content stay within radius */
}

.blog-card:hover {
    border-color: rgba(255, 255, 255, 0.25); /* Hellerer Rahmen bei Hover */
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7); /* Intensivierter Schatten bei Hover */
}

.blog-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card__image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* More cinematic aspect ratio */
    overflow: hidden;
    background: var(--c-dark-muted);
}

/* Subtle overlay on the image */
.blog-card__image-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(13, 13, 13, 0.4));
    opacity: 0.6;
    transition: opacity var(--t-mid) var(--ease);
}

.blog-card:hover .blog-card__image-wrap::after {
    opacity: 0.2;
}

.blog-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.2) contrast(1.1); /* Match the site's photo aesthetic */
    transition: transform var(--t-mid) var(--ease), filter var(--t-mid) var(--ease);
}

.blog-card:hover .blog-card__image {
    transform: scale(1.08); /* Stronger zoom */
    filter: grayscale(0) contrast(1);
}

.blog-card__content {
    padding: var(--s-lg) var(--s-md);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: var(--s-sm);
}

.blog-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* Erlaubt das Setzen auf mehrere Zeilen für die gesamte Liste */
    gap: 1rem;
    font-family: var(--f-mono);
    font-size: 0.65rem;
    color: var(--c-mid);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.blog-card__date,
.blog-card__author {
    white-space: nowrap; /* Verhindert Zeilenumbrüche innerhalb eines Text-Elements */
}

.blog-card__sep {
    width: 20px;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.blog-card__title {
    font-size: 1.65rem;
    font-weight: 500;
    line-height: 1.25;
    color: var(--c-light);
    letter-spacing: -0.01em;
    margin-top: 0.5rem;
    transition: color var(--t-fast) var(--ease);
}

.blog-card:hover .blog-card__title {
    color: var(--c-white);
}

.blog-card__excerpt {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--c-light-muted);
    margin-bottom: var(--s-md);
    opacity: 0.8;
}

.blog-card__more {
    margin-top: auto;
    padding-top: var(--s-md);
    border-top: 1px solid rgba(255, 255, 255, 0.05); /* Dezente Abtrennung */
    display: flex;
    align-items: center;
    justify-content: space-between; /* Text links, Icon rechts */
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--c-light);
    opacity: 0.7;
    transition: opacity var(--t-fast) var(--ease);
}

.blog-card:hover .blog-card__more {
    opacity: 1;
}

.blog-card__more-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15); /* Zarter Button-Rand */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t-fast) var(--ease);
}

.blog-card__more-icon svg {
    width: 16px;
    height: 16px;
    transition: transform var(--t-fast) var(--ease);
}

.blog-card:hover .blog-card__more-icon {
    background: var(--c-light);
    color: var(--c-dark);
    border-color: var(--c-light);
}

/* Staggered Grid (Treppen-Effekt für das 3er-Layout) */
@media (min-width: 1025px) {
    .blog-card:nth-child(3n+2) {
        transform: translateY(40px); /* Die mittlere Spalte nach unten verschieben */
    }
    
    .blog-card:hover:nth-child(3n+2) {
        transform: translateY(32px); /* Beibehaltung des Hover-Lifts (40px - 8px Hover-Abstand) */
    }
    
    .blog-grid {
        padding-bottom: 40px; /* Platz machen für die versetzten Cards */
    }
}

/* Category Pill */
.blog-card__cat {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: rgba(13, 13, 13, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-family: var(--f-mono);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--c-light);
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background var(--t-fast) var(--ease);
}

.blog-card:hover .blog-card__cat {
    background: rgba(13, 13, 13, 0.8);
}



/* Pagination */
.blog-pagination {
    margin-top: var(--s-lg);
    padding: var(--s-sm) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    border: 1px solid transparent;
    font-family: var(--f-mono);
    font-size: 0.85rem;
    color: var(--c-mid);
    position: relative;
    transition: all var(--t-fast) var(--ease);
}

.page-numbers.current {
    color: var(--c-light);
}

.page-numbers.current::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: var(--c-light);
}

.page-numbers:hover:not(.current) {
    color: var(--c-light);
    transform: translateY(-2px);
}

.page-numbers.prev,
.page-numbers.next {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.page-numbers.prev:hover,
.page-numbers.next:hover {
    border-color: var(--c-light);
    background: transparent;
    color: var(--c-light);
}

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}