/* ================================================================
   Yannik Bauer — main.css
   Lokal geladen, kein externer Ladevorgang (DSGVO-konform)
   ================================================================ */

/* ── Schriften ──────────────────────────────────────────────────── */

@font-face {
    font-family: 'AccentType';
    src: url('../fonts/accent-type/accent-type-regular.woff2') format('woff2'),
         url('../fonts/accent-type/accent-type-regular.woff') format('woff');
    font-weight: 400; font-style: normal; font-display: swap;
}

@font-face {
    font-family: 'BaseType';
    src: url('../fonts/base-type/base-type-light.woff2') format('woff2'),
         url('../fonts/base-type/base-type-light.woff') format('woff');
    font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'BaseType';
    src: url('../fonts/base-type/base-type-regular.woff2') format('woff2'),
         url('../fonts/base-type/base-type-regular.woff') format('woff');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'BaseType';
    src: url('../fonts/base-type/base-type-medium.woff2') format('woff2'),
         url('../fonts/base-type/base-type-medium.woff') format('woff');
    font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'BaseType';
    src: url('../fonts/base-type/base-type-bold.woff2') format('woff2'),
         url('../fonts/base-type/base-type-bold.woff') format('woff');
    font-weight: 600 700; font-style: normal; font-display: swap;
}

/* ── Custom Properties ──────────────────────────────────────────── */

:root {
    --bg:        #1d1811;
    --bg-light:  #ede2cc;
    --orange:    #d95f28;
    --text:      #ede2cc;
    --text-dark: #1a1510;
    --muted:     #7a6d5c;
    --muted-dark:#6b5b48;
    --max-w:     1100px;
    --px:        clamp(1.5rem, 4vw, 3rem);
    --py:        8rem;
}

/* ── Reset ──────────────────────────────────────────────────────── */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'BaseType', Arial, sans-serif;
    overflow-x: hidden;
    line-height: 1.65;
}

/* ── Barrierefreiheit ───────────────────────────────────────────── */

/* Skip-to-content Link — unsichtbar, erscheint bei Tastaturfokus */
.skip-link {
    position: absolute; left: -9999px; top: auto;
    width: 1px; height: 1px; overflow: hidden;
    font-family: 'BaseType', Arial, sans-serif;
}
.skip-link:focus {
    position: fixed; left: 50%; top: 1rem;
    transform: translateX(-50%);
    width: auto; height: auto;
    padding: 0.6rem 1.4rem;
    background: var(--orange); color: #fff;
    font-size: 0.88rem; font-weight: 600;
    text-decoration: none; border-radius: 50px;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

/* Sichtbarer Fokusring für Tastaturnavigation */
:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 3px;
    border-radius: 3px;
}

/* ── Navigation ─────────────────────────────────────────────────── */

nav {
    position: fixed; top: 1.5rem; left: 50%;
    transform: translateX(-50%); z-index: 500;
    display: flex; align-items: center; gap: 1.75rem;
    padding: 0.72rem 1.65rem;
    background: rgba(8,6,3,0.26);
    backdrop-filter: blur(52px) saturate(280%) brightness(1.08);
    -webkit-backdrop-filter: blur(52px) saturate(280%) brightness(1.08);
    border: 1px solid rgba(237,226,204,0.22);
    border-radius: 50px;
    box-shadow:
        0 4px 40px rgba(0,0,0,0.55),
        inset 0 1px 0 rgba(237,226,204,0.14),
        inset 0 -1px 0 rgba(0,0,0,0.18);
    white-space: nowrap;
}
.nav-logo {
    font-family: 'AccentType', Georgia, serif;
    font-size: 0.96rem; color: var(--text);
    text-decoration: none; display: flex; align-items: center;
    min-height: 44px;
}
.nav-logo em { color: var(--orange); font-style: normal; }
.nav-logo-img { height: 36px; width: auto; display: block; }
.nav-sep { width: 1px; height: 14px; background: rgba(237,226,204,0.22); flex-shrink: 0; }
.nav-links { display: flex; gap: 1.5rem; list-style: none; }
.nav-links a {
    font-size: 1rem; font-weight: 400;
    color: var(--text); text-decoration: none; transition: color 0.2s;
    /* Mindest-Tippziel 44 × 44 px (WCAG 2.5.5) */
    min-height: 44px; display: inline-flex; align-items: center;
}
.nav-links a:hover { color: rgba(237,226,204,0.55); }

/* ── Layout ─────────────────────────────────────────────────────── */

section { padding: var(--py) var(--px); position: relative; }
.wrap { max-width: var(--max-w); margin: 0 auto; }

.eyebrow {
    font-size: 0.72rem; font-weight: 500;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--orange); margin-bottom: 1rem;
}

/* ── Buttons ────────────────────────────────────────────────────── */

.btn-primary {
    display: inline-flex; align-items: center; gap: 0.65rem;
    padding: 0.9rem 1.8rem; border-radius: 50px;
    font-size: 0.88rem; font-weight: 600;
    font-family: 'BaseType', Arial, sans-serif;
    text-decoration: none; min-height: 44px;
    background: var(--orange); color: #fff;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-primary:hover {
    transform: translateY(-2px);
    background: #e36d38;
    box-shadow: 0 6px 24px rgba(217,95,40,0.4);
}
.btn-primary .arrow { transition: transform 0.18s; display: inline-block; }
.btn-primary:hover .arrow { transform: translateX(4px); }

.btn-secondary {
    display: inline-flex; align-items: center; gap: 0.6rem;
    padding: 0.88rem 1.65rem; border-radius: 50px;
    font-size: 0.88rem; font-weight: 400;
    font-family: 'BaseType', Arial, sans-serif;
    text-decoration: none; min-height: 44px;
    border: 1px solid rgba(237,226,204,0.24);
    color: rgba(237,226,204,0.72);
    background: rgba(237,226,204,0.05);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.btn-secondary:hover {
    border-color: rgba(237,226,204,0.44);
    color: var(--text); background: rgba(237,226,204,0.1);
}
.btn-secondary .arrow-d { transition: transform 0.2s; display: inline-block; }
.btn-secondary:hover .arrow-d { transform: translateY(3px); }

.btn-outline {
    display: inline-flex; align-items: center; gap: 0.55rem;
    font-size: 0.84rem; font-weight: 500; color: var(--text);
    font-family: 'BaseType', Arial, sans-serif;
    text-decoration: none; min-height: 44px;
    border: 1px solid rgba(237,226,204,0.2); border-radius: 50px;
    padding: 0.6rem 1.3rem;
    background: rgba(237,226,204,0.04);
    backdrop-filter: blur(14px);
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.btn-outline:hover {
    border-color: rgba(217,95,40,0.5);
    color: var(--orange); background: rgba(217,95,40,0.08);
}
.btn-outline .arrow { transition: transform 0.18s; display: inline-block; }
.btn-outline:hover .arrow { transform: translateX(3px); }

/* ── Hero ───────────────────────────────────────────────────────── */

#home {
    min-height: 100svh; /* svh: korrekte Höhe auf mobilen Browsern */
    display: flex; align-items: center;
    overflow: hidden; position: relative;
    background:
        radial-gradient(ellipse 90% 80% at 24% 58%, rgba(210,100,35,0.17) 0%, transparent 70%),
        var(--bg);
}

.hero-img {
    position: absolute; right: 0; top: 0; bottom: 0;
    width: 72%; z-index: 0; overflow: hidden;
}
.hero-img img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: 45% center;
    filter: saturate(1.15) brightness(0.87);
    -webkit-mask-image: linear-gradient(to right,
        transparent 0%, rgba(0,0,0,0.02) 12%, rgba(0,0,0,0.12) 24%,
        rgba(0,0,0,0.38) 38%, rgba(0,0,0,0.72) 52%, black 64%);
    mask-image: linear-gradient(to right,
        transparent 0%, rgba(0,0,0,0.02) 12%, rgba(0,0,0,0.12) 24%,
        rgba(0,0,0,0.38) 38%, rgba(0,0,0,0.72) 52%, black 64%);
}

#home::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 240px; z-index: 2; pointer-events: none;
    background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
}

.hero-body {
    position: relative; z-index: 3;
    width: 100%; max-width: var(--max-w);
    margin: 0 auto; padding: 8rem 0 6rem;
}
.hero-text { max-width: 540px; }

.hero-name {
    display: block; font-size: 1.05rem; font-weight: 400;
    color: rgba(237,226,204,0.5); margin-bottom: 1.75rem;
}

h1 {
    font-family: 'AccentType', Georgia, serif;
    font-size: clamp(4rem, 8vw, 7.5rem);
    font-weight: 400; line-height: 0.93;
    color: var(--text); letter-spacing: -0.01em;
    margin-bottom: 1.75rem;
}

.hero-sub {
    font-size: 1.05rem; line-height: 1.75;
    color: rgba(237,226,204,0.55);
    font-weight: 300; margin-bottom: 2.5rem; max-width: 360px;
}

.hero-btns { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* ── Fließtext-Links ────────────────────────────────────────────── */

.about-text a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(237,226,204,0.25);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition: text-decoration-color 0.25s, text-underline-offset 0.25s;
}
.about-text a:hover {
    text-decoration-color: var(--orange);
    text-underline-offset: 6px;
}

/* ── Seiteneingang & Hero-Animationen ───────────────────────────── */

/* Gesamte Seite blendet ein — kaschiert Ladezeit des Hero-Bildes */
@keyframes page-enter {
    from { opacity: 0; }
    to   { opacity: 1; }
}
body {
    animation: page-enter 0.4s ease-out forwards;
}

@keyframes hero-fade-up {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-name {
    opacity: 0;
    animation: hero-fade-up 0.65s cubic-bezier(0.22,1,0.36,1) forwards 0.2s;
}
#home h1 {
    opacity: 0;
    animation: hero-fade-up 0.85s cubic-bezier(0.22,1,0.36,1) forwards 0.35s;
}
.hero-sub {
    opacity: 0;
    animation: hero-fade-up 0.65s cubic-bezier(0.22,1,0.36,1) forwards 0.65s;
}
.hero-btns {
    opacity: 0;
    animation: hero-fade-up 0.65s cubic-bezier(0.22,1,0.36,1) forwards 0.9s;
}

/* ── Über mich ──────────────────────────────────────────────────── */

#about {
    background:
        radial-gradient(ellipse 42% 38% at 88% 18%, rgba(210,100,35,0.08), transparent 65%),
        radial-gradient(ellipse 35% 42% at 8% 72%, rgba(210,100,35,0.07), transparent 60%),
        radial-gradient(ellipse 30% 25% at 55% 55%, rgba(210,100,35,0.05), transparent 55%),
        var(--bg);
}

.about-section + .about-section {
    margin-top: 8rem; padding-top: 8rem;
    border-top: 2px solid rgba(237,226,204,0.1);
}

.about-section-title {
    font-family: 'AccentType', Georgia, serif;
    font-size: clamp(2.8rem, 5vw, 5rem);
    font-weight: 400; line-height: 1.05;
    margin-bottom: 1.2rem; color: var(--text);
}

.about-cols {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 4.5rem; align-items: start;
}

.about-text p {
    font-size: 1rem; line-height: 1.85;
    color: rgba(237,226,204,0.62); margin-bottom: 1.1rem;
}
.about-text p strong { color: var(--text); font-weight: 600; }
.about-text > *:last-child { margin-bottom: 0; }

.about-sub-head {
    font-family: 'AccentType', Georgia, serif;
    font-size: clamp(1.35rem, 1.9vw, 1.9rem);
    font-weight: 400; color: var(--text);
    line-height: 1.2; margin-top: 2.4rem; margin-bottom: 0.65rem;
}

.about-photo img {
    width: 100%; display: block;
    border-radius: 18px 18px 0 0;
    filter: saturate(1.1) brightness(0.88);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 62%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 62%, transparent 100%);
}

.about-photo-wide img {
    width: 100%; display: block;
    border-radius: 18px 18px 0 0;
    filter: saturate(1.1) brightness(0.88);
    aspect-ratio: 16 / 10; object-fit: cover;
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 62%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 62%, transparent 100%);
}

.photo-placeholder {
    width: 100%; aspect-ratio: 16/10;
    border-radius: 18px 18px 0 0;
    background: rgba(237,226,204,0.04);
    border: 1.5px dashed rgba(237,226,204,0.15);
    display: flex; align-items: center; justify-content: center;
}
.photo-placeholder span {
    font-size: 0.72rem; color: var(--muted);
    letter-spacing: 0.1em; text-transform: uppercase;
}

.company-card {
    border-radius: 0 0 18px 18px;
    border: 1.5px solid rgba(237,226,204,0.14); border-top: none;
    background: rgba(15,11,7,0.32);
    backdrop-filter: blur(36px) saturate(220%);
    -webkit-backdrop-filter: blur(36px) saturate(220%);
    padding: 1.75rem 2rem 2rem;
    position: relative; overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(237,226,204,0.08);
}
.company-card::before {
    content: ''; position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: var(--orange); opacity: 0.5;
}
.co-label {
    font-size: 0.65rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.16em;
    color: var(--muted); margin-bottom: 0.85rem;
}
.co-name {
    font-family: 'AccentType', Georgia, serif;
    font-size: 2.4rem; font-weight: 400; line-height: 1;
    color: var(--text); margin-bottom: 0.2rem;
}
.co-sub { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.04em; margin-bottom: 1rem; }
.co-desc { font-size: 0.92rem; color: rgba(237,226,204,0.46); line-height: 1.75; margin-bottom: 1.5rem; }

/* ── Kontakt ────────────────────────────────────────────────────── */

#contact {
    background: var(--bg-light);
    color: var(--text-dark);
    position: relative;
}
#contact .eyebrow { color: var(--orange); }
#contact .contact-heading {
    font-family: 'AccentType', Georgia, serif;
    font-size: clamp(2.8rem, 5vw, 5rem);
    font-weight: 400; line-height: 1.05;
    margin-bottom: 3rem; color: var(--text-dark);
}
.contact-list { border-top: 2px solid rgba(26,21,16,0.2); }
.contact-row {
    display: flex; align-items: center; gap: 2rem;
    padding: 1.4rem 0; min-height: 44px;
    border-bottom: 1px solid rgba(26,21,16,0.1);
    text-decoration: none; color: var(--text-dark); transition: color 0.2s;
}
.contact-row:hover { color: var(--orange); }
.c-label {
    flex: 0 0 130px;
    font-size: 0.66rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--muted-dark); transition: color 0.2s;
}
.contact-row:hover .c-label { color: rgba(217,95,40,0.7); }
.c-val { flex: 1; font-size: 0.97rem; }
.c-arrow { font-size: 0.88rem; color: var(--muted-dark); transition: transform 0.2s, color 0.2s; }
.contact-row:hover .c-arrow { transform: translateX(5px); color: var(--orange); }

/* ── Footer ─────────────────────────────────────────────────────── */

footer {
    padding: 2.8rem var(--px);
    border-top: 2px solid rgba(26,21,16,0.12);
    display: flex; justify-content: space-between; align-items: center;
    background: var(--bg-light);
    position: relative;
}
.f-sig { display: flex; align-items: center; }
.f-sig-text {
    font-family: 'AccentType', Georgia, serif;
    font-size: 1.1rem; color: rgba(26,21,16,0.35);
}
.footer-logo-img { height: 46px; width: auto; display: block; opacity: 0.5; }
.f-right { display: flex; align-items: center; gap: 2.5rem; }
.f-copy { font-size: 0.8rem; color: var(--muted-dark); }
.f-links { display: flex; gap: 1.8rem; }
.f-links a {
    font-size: 0.8rem; color: var(--muted-dark);
    text-decoration: none; transition: color 0.2s;
    min-height: 44px; display: inline-flex; align-items: center;
}
.f-links a:hover { color: var(--orange); }

/* ── Legal-Seiten ───────────────────────────────────────────────── */

.page-header {
    padding: 12rem var(--px) 5rem;
    background:
        radial-gradient(ellipse 60% 70% at 75% 35%, rgba(210,100,35,0.09) 0%, transparent 65%),
        var(--bg);
    position: relative;
}
.page-header::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 120px; pointer-events: none;
    background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
}
.page-header .wrap { max-width: var(--max-w); margin: 0 auto; }

.page-title {
    font-family: 'AccentType', Georgia, serif;
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 400; line-height: 0.95;
    color: var(--text); letter-spacing: -0.01em;
}

.page-content {
    padding: 4rem var(--px) 8rem;
    background: var(--bg);
}
.page-content .wrap { max-width: var(--max-w); margin: 0 auto; }

.legal-section { margin-bottom: 3rem; max-width: 680px; }

.legal-section h2 {
    font-family: 'AccentType', Georgia, serif;
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    font-weight: 400; color: var(--text);
    margin-bottom: 1rem;
}

.legal-section h3 {
    font-size: 0.72rem; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 0.5rem; margin-top: 1.5rem;
}

.legal-section p,
.legal-section address {
    font-size: 0.97rem; line-height: 1.85;
    color: rgba(237,226,204,0.62);
    font-style: normal;
}

.legal-section a { color: var(--orange); text-decoration: none; }
.legal-section a:hover { text-decoration: underline; }

.placeholder {
    display: inline-block;
    background: rgba(217,95,40,0.12);
    border: 1px dashed rgba(217,95,40,0.4);
    border-radius: 4px; padding: 0 0.4em;
    color: rgba(217,95,40,0.8); font-size: 0.88em;
}

.divider {
    border: none;
    border-top: 1px solid rgba(237,226,204,0.1);
    margin: 3rem 0; max-width: 680px;
}

/* ── Scrollbar ──────────────────────────────────────────────────── */

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(217,95,40,0.35); border-radius: 2px; }

/* ── Reduzierte Bewegung ────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
    /* Seite und Hero-Elemente sofort sichtbar */
    body,
    .hero-name, #home h1, .hero-sub, .hero-btns {
        opacity: 1 !important;
        animation: none !important;
        transform: none !important;
        filter: none !important;
        letter-spacing: inherit !important;
    }
}

/* ── Responsiv ──────────────────────────────────────────────────── */

@media (max-width: 860px) {
    :root { --py: 5rem; }

    nav { top: 1rem; padding: 0.62rem 1.2rem; gap: 1.2rem; }
    .nav-links { gap: 1rem; }
    .nav-links a { font-size: 0.9rem; }

    .hero-img { width: 100%; opacity: 0.28; }
    .hero-img img { -webkit-mask-image: none; mask-image: none; object-position: 45% 20%; }
    .hero-text { max-width: 100%; }
    h1 { font-size: clamp(3rem, 13vw, 5.5rem); }

    .about-cols { grid-template-columns: 1fr; gap: 2.5rem; }
    .about-photo-col { order: -1; }

    .c-label { flex: 0 0 90px; }

    footer { flex-direction: column; gap: 1.5rem; text-align: center; }
    .f-right { flex-direction: column; gap: 0.8rem; }

    .page-header { padding-top: 9rem; }
}
