/* Self-hosted Open Sans (latin + latin-ext) */
@font-face {
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("fonts/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSGmu1aB.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("fonts/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS-muw.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Grundsetup */
:root {
    --color-bg: #f6f1ea;
    --color-bg-alt: #efe3d8;
    --color-primary: #4a413a;
    --color-primary-soft: #7b5a47;
    --color-accent: #c9a35a;
    --color-text: #2c231e;
    --color-text-muted: #75685f;
    --color-white: #ffffff;

    --radius-lg: 18px;
    --radius-xl: 30px;

    --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.08);
    --transition-fast: 180ms ease-out;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

/* Skip-Link für Screenreader / Tastatur */
.skip-link {
    position: absolute;
    left: -999px;
    top: 1rem;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0.75rem 1rem;
    border-radius: 999px;
    z-index: 999;
}

.skip-link:focus-visible {
    left: 1rem;
    outline: 3px solid var(--color-accent);
}

/* Layout-Helfer */
.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
    background: linear-gradient(to bottom, rgba(247, 243, 238, 0.92), rgba(247, 243, 238, 0.75));
    border-bottom: 1px solid rgba(201, 163, 90, 0.2);
}

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

/* Logo-Schriftzug */
.logo {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    font-size: 0.9rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--color-primary);
}

.logo-main {
    font-weight: 600;
}

.logo-sub {
    font-weight: 300;
    font-size: 0.7rem;
    color: var(--color-text-muted);
}

.site-header nav {
    display: flex;
    align-items: center;
}

.nav-link {
    margin-left: 1.25rem;
    font-size: 0.95rem;
    color: var(--color-text);
    text-decoration: none;
    padding: 0.4rem 0.55rem;
    border-radius: 999px;
    transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav-link:hover,
.nav-link:focus-visible {
    background-color: rgba(201, 163, 90, 0.15);
    color: var(--color-primary);
    outline: 2px solid transparent;
}

/* Hero-Bereich */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px; /* Platz für fixed Header */
    overflow: hidden;
    background-color: var(--color-bg-alt);
    color: var(--color-text);
}

/* Hintergrundbild-Overlay – Bildpfad nach Bedarf ersetzen */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.8), transparent 48%),
                radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.65), transparent 42%),
                linear-gradient(135deg, rgba(239, 227, 216, 0.75), rgba(246, 241, 234, 0.9));
    opacity: 0.85;
    z-index: 1;
}

/* Dezentes geometrisches Muster mit Animation */
.hero-pattern {
    position: absolute;
    inset: -40%;
    background-image: radial-gradient(circle at 10% 20%, rgba(201, 163, 90, 0.14), transparent 60%),
                      radial-gradient(circle at 80% 70%, rgba(201, 163, 90, 0.18), transparent 55%);
    opacity: 0.9;
    mix-blend-mode: soft-light;
    z-index: 2;
    animation: floatPattern 30s linear infinite alternate;
}

@keyframes floatPattern {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    100% {
        transform: translate3d(-2%, -3%, 0) scale(1.02);
    }
}

/* Hero-Content */
.hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.hero-text {
    max-width: 640px;
    padding: 2.5rem 2.5rem 2.75rem;
    border-radius: var(--radius-xl);
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.94), rgba(247, 243, 238, 0.98));
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
    transform: translateY(12px);
    opacity: 0;
    animation: heroFadeIn 700ms var(--transition-fast) forwards;
}

@keyframes heroFadeIn {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.hero-title {
    font-size: clamp(2.1rem, 2.7vw, 2.8rem);
    line-height: 1.18;
    margin: 0 0 1rem;
    color: var(--color-primary);
}

.hero-subtitle {
    margin: 0 0 1.5rem;
    font-size: 1.02rem;
    color: var(--color-text-muted);
}

.hero-note {
    margin-top: 0.9rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* Button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.9rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.98rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast),
        background-color var(--transition-fast),
        color var(--transition-fast),
        border-color var(--transition-fast);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: rgba(201, 163, 90, 0.9);
    box-shadow: 0 12px 24px rgba(91, 64, 51, 0.28);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background-color: var(--color-primary-soft);
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 16px 32px rgba(91, 64, 51, 0.35);
}

.btn:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

/* Footer / Impressum */
.footer {
    background-color: #1f1814;
    color: rgba(255, 255, 255, 0.88);
    padding-top: 3.5rem;
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem;
    padding-bottom: 2rem;
}

.footer-block h2,
.footer-block h3 {
    margin-top: 0;
    color: #f9f5ef;
}

.footer-block p {
    margin: 0 0 0.85rem;
    font-size: 0.95rem;
}

.footer a {
    color: var(--color-accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition-fast);
}

.footer a:hover,
.footer a:focus-visible {
    border-color: var(--color-accent);
}

.footer-note {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 0 1.4rem;
    background: #19130f;
}

.footer-bottom-inner {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
}

.noscript-warning {
    background: #b33f3f;
    color: #fff7f0;
    padding: 0.85rem 1rem;
    text-align: center;
    font-size: 0.95rem;
}

/* Fokuszustände in Footer */
.footer a:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
}

/* Responsives Design */
@media (max-width: 880px) {
    .hero {
        padding: 100px 0 60px;
    }

    .hero-text {
        padding: 2rem 1.75rem 2.2rem;
    }

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

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

@media (max-width: 600px) {
    .header-inner {
        height: 60px;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .site-header nav {
        gap: 0.35rem;
    }

    .nav-link {
        margin-left: 0;
        padding: 0.35rem 0.5rem;
        font-size: 0.9rem;
    }

    .hero-title {
        font-size: 1.9rem;
    }

    .hero-subtitle {
        font-size: 0.98rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-text {
        padding: 1.7rem 1.4rem 2rem;
        border-radius: 22px;
    }
}

/* Bewegungen für Nutzer mit reduzierter Bewegung */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero-logo-small,
    .hero-logo-line,
    .hero-logo-bottom {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Logo im Hero – typografische Variante mit Animation */
.hero-logo {
    text-align: center;
    margin-bottom: 2.2rem;
    color: var(--color-accent);
    font-family: "Georgia", "Times New Roman", serif;
    letter-spacing: 0.12em;
}

.hero-logo-main {
    position: relative;
    display: inline-block;
    padding: 0.35rem 3.4rem; /* etwas kompakter */
}

.hero-logo-big {
    font-size: clamp(3.2rem, 5vw, 4.6rem);
    font-weight: 500;
    line-height: 1;
}

/* PHILIP / KUHL näher am PK */
.hero-logo-small {
    position: absolute;
    font-size: 0.9rem;
    text-transform: uppercase;
    opacity: 0;
}

/* PHILIP – oben links am PK */
.hero-logo-small-left {
    top: 0.7rem;
    left: -0.2rem;
    animation: logoSlideLeft 900ms ease-out 300ms forwards;
}

/* KUHL – unten rechts am PK */
.hero-logo-small-right {
    bottom: 0.6rem;
    right: 1rem;
    animation: logoSlideRight 900ms ease-out 300ms forwards;
}

/* Linie und "STEUERBERATER" bleiben wie gehabt */
.hero-logo-line {
    width: min(420px, 80vw);
    height: 3px;
    margin: 0.6rem auto 0.8rem;
    background-color: var(--color-accent);
    opacity: 0;
    transform: scaleX(0.6);
    transform-origin: center;
    animation: logoLineReveal 650ms ease-out 550ms forwards;
}

.hero-logo-bottom {
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    opacity: 0;
    transform: translateY(6px);
    animation: logoBottomFade 650ms ease-out 650ms forwards;
}

/* Keyframes – leichter „Herausfahr“-Effekt */
@keyframes logoSlideLeft {
    0% {
        opacity: 0;
        transform: translate(14px, 10px); /* näher am PK, Bewegung nach oben/links */
    }
    100% {
        opacity: 1;
        transform: translate(0, 0);
    }
}

@keyframes logoSlideRight {
    0% {
        opacity: 0;
        transform: translate(-14px, -10px); /* näher am PK, Bewegung nach unten/rechts */
    }
    100% {
        opacity: 1;
        transform: translate(0, 0);
    }
}

@keyframes logoLineReveal {
    0% {
        transform: scaleX(0.6);
        opacity: 0;
    }
    100% {
        transform: scaleX(1);
        opacity: 1;
    }
}

@keyframes logoBottomFade {
    0% {
        opacity: 0;
        transform: translateY(6px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Anpassung */
@media (max-width: 600px) {
    .hero-logo-main {
        padding: 0.25rem 2.5rem;
    }

    .hero-logo-small {
        font-size: 0.8rem;
    }

    .hero-logo-small-left {
        top: -0.25rem;
        left: 0.05rem;
    }

    .hero-logo-small-right {
        bottom: -0.35rem;
        right: 0.05rem;
    }

    .hero-logo-line {
        width: 70vw;
    }

    .hero-logo-bottom {
        font-size: 0.95rem;
    }
}
