/* ================================================================
   MR. LAGUIOLE — STYLESHEET
   mrlaguiole.de · © 2025 Justin Jernoiu
   ================================================================ */

/* ── RESET & CSS CUSTOM PROPERTIES ─────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --black:   #0d0d0d;
    --dark:    #181818;
    --card:    #1e1e1e;
    --border:  rgba(200, 160, 80, 0.2);
    --white:   #f0ece4;
    --cream:   #ccc8bc;
    --red:     #c41230;
    --red-h:   #9e0e26;
    --gold:    #c8a050;
    --gold-bg: rgba(200, 160, 80, 0.07);
    --muted:   #777;
    --max-w:   720px;
    --pad-x:   24px;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    background: var(--black);
    color: var(--white);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 16px;
    line-height: 1.78;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

/* ── ACCESSIBILITY: SKIP LINK ───────────────────────────────── */
.skip-link {
    position: absolute;
    top: -44px;
    left: 0;
    padding: 10px 18px;
    background: var(--gold);
    color: var(--black);
    font-size: 0.9rem;
    font-weight: bold;
    z-index: 9999;
    text-decoration: none;
    border-radius: 0 0 6px 0;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ── HEADER ─────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13, 13, 13, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 11px var(--pad-x);
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-header a { line-height: 0; }

.site-header img {
    height: 38px;
    width: auto;
}

/* ── HERO ───────────────────────────────────────────────────── */
.hero { background: var(--black); }

.hero-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-banner-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55%;
    background: linear-gradient(to bottom, transparent, var(--black));
    pointer-events: none;
}

.hero-content {
    padding: 28px var(--pad-x) 52px;
    max-width: var(--max-w);
    margin: 0 auto;
}

.hero-eyebrow {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--gold);
    margin-bottom: 14px;
}

.hero-content h1 {
    font-size: clamp(1.5rem, 5.5vw, 2.2rem);
    font-weight: normal;
    line-height: 1.35;
    margin-bottom: 10px;
}

.hero-content h1 em {
    color: var(--gold);
    font-style: normal;
}

.hero-role {
    font-size: clamp(1rem, 3.5vw, 1.15rem);
    color: var(--cream);
    font-style: italic;
    margin-bottom: 22px;
    line-height: 1.5;
}

.hero-text {
    font-size: 1rem;
    color: #a8a49c;
    max-width: 560px;
    line-height: 1.75;
}

/* ── STATS BAR ──────────────────────────────────────────────── */
.stats {
    background: var(--dark);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: center;
    gap: clamp(20px, 8vw, 64px);
    padding: 22px var(--pad-x);
}

.stat { text-align: center; }

.stat-num {
    display: block;
    font-size: clamp(1.25rem, 4vw, 1.6rem);
    font-weight: bold;
    color: var(--gold);
    letter-spacing: 0.04em;
}

.stat-lbl {
    font-size: 0.68rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.13em;
}

/* ── SHARED SECTION LAYOUT ──────────────────────────────────── */
.section {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 64px var(--pad-x);
}

.section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}

.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--border), transparent);
}

.section-title {
    font-size: clamp(1.3rem, 4vw, 1.65rem);
    font-weight: normal;
    line-height: 1.35;
    margin-bottom: 28px;
    color: var(--white);
}

/* ── STORY ──────────────────────────────────────────────────── */
.portrait-float {
    float: right;
    width: clamp(110px, 26vw, 155px);
    margin: 4px 0 20px 26px;
}

.portrait-float img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    border: 3px solid var(--gold);
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center top;
}

.story-text p {
    font-size: 1.04rem;
    color: var(--cream);
    margin-bottom: 18px;
}

.cf::after { content: ''; display: table; clear: both; }

/* ── QUOTE IMAGE ─────────────────────────────────────────────── */
.quote-wrap {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--pad-x) 52px;
}

.quote-wrap img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* ── PROJECTS ─────────────────────────────────────────────────── */
.section--dark { background: var(--dark); }

.section-intro {
    font-size: 1.04rem;
    color: var(--cream);
    margin-bottom: 28px;
}

.project-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pcard {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px 22px;
    position: relative;
    overflow: hidden;
}

.pcard::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gold);
    border-radius: 10px 0 0 10px;
}

.pcard-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.pcard-name {
    font-size: 1.05rem;
    color: var(--white);
    font-style: italic;
    font-weight: normal;
}

.pcard-year {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold);
    background: rgba(200, 160, 80, 0.1);
    border: 1px solid rgba(200, 160, 80, 0.25);
    padding: 2px 9px;
    border-radius: 100px;
}

.pcard p {
    font-size: 0.97rem;
    color: #a8a49c;
    line-height: 1.72;
}

/* ── KNIFE PARALLAX (iOS-kompatibel via JS + transform) ───────── */
.knife-parallax {
    height: 65vh;
    min-height: 320px;
    position: relative;
    overflow: hidden;   /* hält das größere Hintergrundbild im Rahmen */
}

/* Das eigentliche Bild – 160 % hoch damit Parallax-Bewegung Platz hat */
.knife-parallax-bg {
    position: absolute;
    top: -30%;       /* 30 % oben überstehend  */
    left: 0;
    width: 100%;
    height: 160%;    /* 100 % + 30 % oben + 30 % unten */
    background: url('parallax.webp') center / cover no-repeat;
    /* Kein will-change: Safari hat damit Probleme bei overflow:hidden */
}

/* Subtiler Gradient oben/unten für weichen Übergang */
.knife-parallax::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(13,13,13,0.3)  0%,
        rgba(13,13,13,0.0)  30%,
        rgba(13,13,13,0.0)  70%,
        rgba(13,13,13,0.35) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* ── CONTACT FORM ─────────────────────────────────────────────── */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

@media (max-width: 520px) {
    .form-row { grid-template-columns: 1fr; }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-group label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--gold);
}

.form-group input,
.form-group textarea {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 13px 16px;
    color: var(--white);
    font-family: Georgia, serif;
    font-size: 1rem;
    line-height: 1.5;
    width: 100%;
    transition: border-color 0.2s;
    -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #555;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: #222;
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

/* Honeypot – unsichtbar für Menschen */
.form-honeypot {
    display: none !important;
}

/* Status-Nachricht nach dem Abschicken */
.form-status {
    display: none;
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 0.97rem;
    text-align: center;
}

.form-status.success {
    display: block;
    background: rgba(50,160,80,0.12);
    border: 1px solid rgba(50,160,80,0.35);
    color: #7ed89a;
}

.form-status.error {
    display: block;
    background: rgba(196,18,48,0.1);
    border: 1px solid rgba(196,18,48,0.3);
    color: #e8748a;
}

/* ── VIDEOS ───────────────────────────────────────────────────── */
.videos-intro {
    font-size: 1.04rem;
    color: var(--cream);
    margin-bottom: 28px;
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* YouTube Facade */
.video-box {
    position: relative;
    padding-bottom: 56.25%;
    border-radius: 8px;
    overflow: hidden;
    background: #111;
    border: 1px solid var(--border);
    cursor: pointer;
}

.video-box > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-box:hover > img,
.video-box:focus-within > img {
    transform: scale(1.04);
}

.video-box iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.yt-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.2s;
}

.yt-play:hover,
.yt-play:focus-visible { opacity: 0.8; }

.yt-play:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: -3px;
}

.yt-play svg {
    width: 58px;
    height: 42px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
}

/* ── CTA ──────────────────────────────────────────────────────── */
.section--cta {
    background: linear-gradient(180deg, var(--dark) 0%, var(--black) 100%);
}

.cta-wrap {
    text-align: center;
    padding: 72px var(--pad-x);
    max-width: 600px;
    margin: 0 auto;
}

.cta-eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: var(--gold);
    margin-bottom: 14px;
}

.cta-headline {
    font-size: clamp(1.3rem, 4.5vw, 1.8rem);
    line-height: 1.4;
    margin-bottom: 12px;
    font-weight: normal;
}

.cta-sub {
    font-size: 0.97rem;
    color: var(--muted);
    font-style: italic;
    margin-bottom: 36px;
}

.btn {
    display: inline-block;
    text-decoration: none;
    font-family: Georgia, serif;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    padding: 18px 32px;
    width: 100%;
    max-width: 440px;
    text-align: center;
}

.btn-red {
    background: var(--red);
    color: #fff;
    border: none;
}

.btn-red:hover {
    background: var(--red-h);
    transform: translateY(-2px);
}

.btn-red:focus-visible {
    background: var(--red-h);
    outline: 3px solid rgba(196, 18, 48, 0.5);
    outline-offset: 3px;
}

.btn-red:active { transform: translateY(0); }

/* ── SOCIAL LINKS ─────────────────────────────────────────────── */
.social-section {
    text-align: center;
    padding: 0 var(--pad-x) 64px;
    max-width: 600px;
    margin: 0 auto;
}

.social-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.slink {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 100px;
    text-decoration: none;
    color: var(--white);
    font-size: 0.88rem;
    border: 1px solid rgba(200, 160, 80, 0.28);
    transition: border-color 0.2s, background 0.2s;
}

.slink:hover {
    border-color: var(--gold);
    background: var(--gold-bg);
}

.slink:focus-visible {
    border-color: var(--gold);
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.slink svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex-shrink: 0;
}

/* ── DIVIDER ──────────────────────────────────────────────────── */
hr {
    border: none;
    border-top: 1px solid var(--border);
}

/* ── FOOTER ───────────────────────────────────────────────────── */
.site-footer {
    background: var(--dark);
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 28px var(--pad-x);
    color: var(--muted);
    font-size: 0.8rem;
}

.site-footer a {
    color: var(--gold);
    text-decoration: none;
}

.site-footer a:hover { text-decoration: underline; }

.ornament {
    color: var(--gold);
    opacity: 0.4;
    font-size: 1rem;
    margin-bottom: 10px;
}

/* ── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 460px) {
    :root { --pad-x: 16px; }
    .video-grid { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
    .stats { gap: 14px; }
    .stat-num { font-size: 1.1rem; }
}

/* ── REDUCED MOTION ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn,
    .slink,
    .yt-play,
    .video-box > img,
    .skip-link { transition: none; }
}
