@charset "utf-8";

/* ============================================================
   Design-Tokens · Dorfschmie.de
   Warm & hell: Off-White, Holz, Eisen, dezentes Glut-Orange
   ============================================================ */
:root {
    --bg:            #f7f2ec;
    --bg-alt:        #efe6d7;
    --bg-strong:     #e7dcc9;
    --surface:       #ffffff;

    --ink:           #1c1815;
    --ink-soft:      #4a4038;
    --ink-mute:      #7a6f65;
    --line:          #d9cfc2;
    --line-strong:   #b9ac9a;

    --accent:        #b04a1f;   /* Glut / Rost */
    --accent-hover:  #8f3a17;
    --accent-soft:   #d97a3a;

    --iron:          #2b2621;

    --font-body:     'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-display:  'Fraunces', 'Georgia', 'Times New Roman', serif;

    --radius:        4px;
    --radius-lg:     10px;
    --shadow-sm:     0 1px 2px rgba(28, 24, 21, .06);
    --shadow-md:     0 8px 24px rgba(28, 24, 21, .10);
    --shadow-lg:     0 20px 48px rgba(28, 24, 21, .15);

    --wrap:          1200px;
    --wrap-narrow:   860px;
}

/* ============================================================
   Reset & Base
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1 0 auto; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--ink);
    line-height: 1.15;
    letter-spacing: -.01em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p  { color: var(--ink-soft); }

/* ============================================================
   Layout helpers
   ============================================================ */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(56px, 8vw, 96px) 0; }

.eyebrow {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: .78rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 12px;
}

.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 60ch; }

.section-head { text-align: center; max-width: 62ch; margin: 0 auto 48px; }
.section-lede { margin: 12px auto 0; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.skip-link {
    position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff;
    padding: 10px 16px; z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .98rem;
    letter-spacing: .01em;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform .1s ease, background .15s ease, color .15s ease, border-color .15s ease;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: rgba(28,24,21,.04); }

.btn-phone {
    background: var(--ink); color: #fff;
    padding: 10px 16px;
    font-size: .95rem;
}
.btn-phone:hover { background: var(--iron); color: #fff; }

/* ============================================================
   Header / Navigation
   ============================================================ */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(247, 242, 236, .92);
    backdrop-filter: saturate(1.2) blur(10px);
    -webkit-backdrop-filter: saturate(1.2) blur(10px);
    border-bottom: 1px solid var(--line);
}
.nav-inner {
    display: flex; align-items: center; gap: 24px;
    min-height: 72px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { color: var(--accent); display: inline-flex; }
.brand-text { display: inline-flex; flex-direction: column; line-height: 1.1; }
.brand-name {
    font-family: var(--font-display);
    font-weight: 700; font-size: 1.35rem;
    letter-spacing: -.01em;
}
.brand-dot { color: var(--accent); }
.brand-sub { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); }

.primary-nav { margin-left: auto; }
.primary-nav ul { list-style: none; display: flex; gap: 4px; }
.primary-nav a {
    display: inline-block;
    padding: 10px 14px;
    color: var(--ink-soft);
    font-weight: 500;
    border-radius: var(--radius);
    position: relative;
}
.primary-nav a:hover { color: var(--ink); background: rgba(28,24,21,.05); }
.primary-nav a[aria-current="page"] { color: var(--ink); }
.primary-nav a[aria-current="page"]::after {
    content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px;
    height: 2px; background: var(--accent); border-radius: 2px;
}

.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle .bar { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s ease; }

@media (max-width: 860px) {
    .primary-nav {
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        max-height: 0; overflow: hidden;
        transition: max-height .25s ease;
    }
    .primary-nav.is-open { max-height: 500px; }
    .primary-nav ul { flex-direction: column; padding: 12px 24px 20px; gap: 0; }
    .primary-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
    .primary-nav a[aria-current="page"]::after { display: none; }
    .nav-toggle { display: block; margin-left: auto; order: 3; }
    .nav-actions { order: 2; }
    .btn-phone .btn-label { display: none; }
    .btn-phone { padding: 10px 12px; font-size: 1rem; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
    padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 112px);
    position: relative;
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}
.hero-copy h1 { margin: 8px 0 20px; }
.hero-copy .lede { max-width: 52ch; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-trust {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    border-top: 1px solid var(--line);
    padding-top: 24px;
}
.hero-trust li { display: flex; flex-direction: column; gap: 2px; }
.hero-trust strong { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1rem; }
.hero-trust span { font-size: .85rem; color: var(--ink-mute); }

.hero-media {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--bg-strong);
    margin: 0;
}
.hero-slides {
    position: absolute; inset: 0;
    isolation: isolate;
}
.hero-slide {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.02);
    will-change: opacity, transform;
    animation: heroFade 28s cubic-bezier(.4,0,.2,1) infinite;
}
.hero-slide:nth-child(1) { animation-delay:  0s;   opacity: 1; }
.hero-slide:nth-child(2) { animation-delay:  7s; }
.hero-slide:nth-child(3) { animation-delay: 14s; }
.hero-slide:nth-child(4) { animation-delay: 21s; }

@keyframes heroFade {
    0%   { opacity: 0; transform: scale(1.02); }
    5%   { opacity: 1; }
    25%  { opacity: 1; transform: scale(1.09); }
    30%  { opacity: 0; transform: scale(1.09); }
    100% { opacity: 0; transform: scale(1.02); }
}

.hero-media::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(28,24,21,.28) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Fortschritts-Balken unten: eine Runde pro Bild */
.hero-media::before {
    content: '';
    position: absolute; left: 0; bottom: 0;
    height: 2px; width: 100%;
    background: rgba(255,255,255,.15);
    z-index: 2;
    transform-origin: left center;
    animation: heroProgress 7s linear infinite;
}
@keyframes heroProgress {
    0%   { transform: scaleX(0); background: rgba(255,255,255,.35); }
    95%  { transform: scaleX(1); background: rgba(255,255,255,.6); }
    100% { transform: scaleX(1); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide { animation: none; opacity: 0; transform: none; }
    .hero-slide:first-child { opacity: 1; }
    .hero-media::before { animation: none; display: none; }
}

@media (max-width: 860px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-media { aspect-ratio: 4 / 3; order: -1; }
    .hero-trust { grid-template-columns: 1fr; gap: 12px; }
}

/* ============================================================
   Split / About
   ============================================================ */
.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}
.split-media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 4 / 3;
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-copy h2 { margin: 8px 0 20px; }
.split-copy p { margin-bottom: 16px; }
.split-copy .btn { margin-top: 12px; }

@media (max-width: 860px) {
    .split-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Contact strip
   ============================================================ */
.contact-strip {
    background: var(--iron);
    color: #f0e6d5;
}
.contact-strip h2 { color: #fff; margin: 8px 0 8px; }
.contact-strip .eyebrow { color: var(--accent-soft); }
.contact-strip .lede { color: #cdbfa9; }
.contact-strip .btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.contact-strip .btn-ghost:hover { background: rgba(255,255,255,.08); border-color: #fff; color: #fff; }

.contact-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   Page-Head (Portfolio, Kontakt, Impressum …)
   ============================================================ */
.page-head {
    background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
    padding: clamp(56px, 8vw, 96px) 0 clamp(32px, 5vw, 56px);
    text-align: center;
    border-bottom: 1px solid var(--line);
}
.page-head h1 { margin: 8px 0 16px; }
.page-head .lede { margin: 0 auto; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    background: var(--iron);
    color: #cdbfa9;
    padding: 56px 0 24px;
    margin-top: 0;
    flex-shrink: 0;
}
.site-footer h3 {
    color: #fff;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 12px;
    letter-spacing: .01em;
}
.site-footer p, .site-footer a { color: #cdbfa9; }
.site-footer a:hover { color: var(--accent-soft); }
.site-footer p { margin-bottom: 12px; }
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    padding-bottom: 32px;
}
.foot-links { list-style: none; }
.foot-links li { margin-bottom: 6px; }

.foot-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 20px;
    color: #8a7f70;
    font-size: .85rem;
}
.foot-bottom small { color: #8a7f70; }

@media (max-width: 720px) {
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================================================
   Sticky-Header: Schatten beim Scrollen
   ============================================================ */
.site-header { transition: box-shadow .25s ease, background .25s ease, border-color .25s ease; }
.site-header.is-scrolled {
    background: rgba(247, 242, 236, .96);
    box-shadow: 0 6px 24px rgba(28, 24, 21, .08);
    border-bottom-color: transparent;
}

/* ============================================================
   Button-Hover: warmer Glut-Schein am Primary
   ============================================================ */
.btn-primary { transition: transform .1s ease, background .18s ease, box-shadow .25s ease; }
.btn-primary:hover {
    box-shadow: 0 10px 24px -8px rgba(176, 74, 31, .55),
                0 2px 6px rgba(176, 74, 31, .25);
}

/* ============================================================
   Scroll-Reveal
   ============================================================ */
.reveal { opacity: 1; }

/* Moderne Browser: über Scroll-Timeline, kein JS nötig */
@supports (animation-timeline: view()) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        animation: revealIn 1s cubic-bezier(.22,.61,.36,1) both;
        animation-timeline: view();
        animation-range: entry 5% cover 30%;
        animation-delay: var(--reveal-delay, 0s);
    }
    @keyframes revealIn {
        from { opacity: 0; transform: translateY(24px); }
        to   { opacity: 1; transform: translateY(0); }
    }
}

/* Fallback via IntersectionObserver: JS setzt .is-in */
html.js .reveal:not(.is-in) {
    opacity: 0;
    transform: translateY(24px);
}
html.js .reveal.is-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .8s ease var(--reveal-delay, 0s),
                transform .8s cubic-bezier(.22,.61,.36,1) var(--reveal-delay, 0s);
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    html.js .reveal:not(.is-in),
    html.js .reveal.is-in {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }
}

