/* ============================================================
   TRAUMRAUMSCHMIEDE – Stylesheet
   Dark, elegant, image-first
   ============================================================ */

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

/* ---- Custom properties ---- */
:root {
    --bg:           #090907;
    --bg-2:         #101010;
    --bg-3:         #181817;
    --bg-4:         #222220;
    --border:       #272725;
    --border-light: #363634;

    --text:         #e4e0d8;
    --text-muted:   #8c8880;
    --text-dim:     #5a5852;

    --gold:         #c8a878;
    --gold-light:   #dbbf92;
    --gold-dim:     #9a7e54;

    --accent:       #b5006a;   /* magenta – used very sparingly */

    --font-serif:   'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-sans:    'Raleway', 'Helvetica Neue', Arial, sans-serif;

    --max-w:        1200px;
    --px:           48px;
    --section-py:   120px;

    --ease:         cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition:   0.4s var(--ease);
}

/* ---- Base ---- */
html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

ul { list-style: none; }

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.15;
}

/* ---- Layout ---- */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--px);
}

.section {
    padding: var(--section-py) 0;
}

/* ---- Section labels & headings ---- */
.section-label {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}

.section-header {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 4.5rem;
}

.section-title {
    font-size: clamp(1.9rem, 4vw, 3rem);
    color: var(--text);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.section-title em {
    font-style: italic;
    color: var(--gold);
}

.section-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ---- Buttons ---- */
.btn {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 14px 36px;
    border: 1px solid;
    cursor: pointer;
    transition: background var(--transition), color var(--transition),
                border-color var(--transition);
    white-space: nowrap;
    text-align: center;
}

.btn--outline {
    border-color: var(--border-light);
    color: var(--text);
    background: transparent;
}
.btn--outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn--solid {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}
.btn--solid:hover {
    background: #d4007c;
    border-color: #d4007c;
}

.btn--dark {
    border-color: var(--bg);
    background: var(--bg);
    color: var(--gold);
}
.btn--dark:hover {
    background: var(--bg-2);
    border-color: var(--bg-2);
}

.btn--full { width: 100%; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    padding: 26px 0;
    transition: padding 0.5s var(--ease),
                background 0.5s var(--ease),
                border-color 0.5s var(--ease);
    border-bottom: 1px solid transparent;
}

.nav.scrolled {
    background: rgba(9, 9, 7, 0.93);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 16px 0;
    border-color: var(--border);
}

.nav__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--px);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo img {
    height: 72px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: height 0.4s ease, opacity var(--transition);
}
.nav.scrolled .nav__logo img {
    height: 42px;
}
.nav__logo:hover img { opacity: 0.8; }

.nav__menu {
    display: flex;
    align-items: center;
    gap: 42px;
}

.nav__menu a {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(228, 224, 216, 0.7);
    transition: color var(--transition);
}
.nav__menu a:hover,
.nav__menu a.is-active {
    color: var(--text);
}

.nav__cta {
    border: 1px solid var(--border-light) !important;
    padding: 9px 22px !important;
    color: var(--text) !important;
}
.nav__cta:hover {
    border-color: var(--accent) !important;
    color: var(--accent) !important;
}

.nav__hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: rgba(9, 9, 7, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    cursor: pointer;
    padding: 10px 12px;
    z-index: 901;
    flex-shrink: 0;
}
.nav.scrolled .nav__hamburger {
    background: transparent;
    border-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.nav__hamburger span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: #fff;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
    transform-origin: center;
}
.nav__hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 898;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}
.nav__overlay.is-open {
    opacity: 1;
    pointer-events: all;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    height: 100svh;
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__slides {
    position: absolute;
    inset: 0;
}

@keyframes heroKenBurns {
    0%   { transform: scale(1.08); filter: blur(5px); }
    28%  { filter: blur(0px); }
    100% { transform: scale(1.0);  filter: blur(0px); }
}

.hero__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.8s ease;
    will-change: opacity, transform, filter;
}
.hero__slide.active {
    opacity: 1;
    animation: heroKenBurns 6.5s ease-out forwards;
}

/* Dark, atmospheric gradient overlay – strong enough for bright images */
.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom,
            rgba(9,9,7,0.55) 0%,
            rgba(9,9,7,0.45) 40%,
            rgba(9,9,7,0.65) 75%,
            rgba(9,9,7,0.92) 100%),
        linear-gradient(to right,
            rgba(9,9,7,0.25) 0%,
            transparent 50%,
            rgba(9,9,7,0.25) 100%);
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 880px;
    padding: 0 var(--px);
}

.hero__label {
    display: inline-block;
    font-size: 0.67rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.8rem;
    text-shadow: 0 1px 10px rgba(0,0,0,0.7);
}

.hero__title {
    font-family: var(--font-serif);
    font-size: clamp(3.2rem, 9vw, 7.5rem);
    font-weight: 300;
    line-height: 1.0;
    color: #fff;
    margin-bottom: 0.25em;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 24px rgba(0,0,0,0.65), 0 0 60px rgba(0,0,0,0.35);
}
.hero__title em {
    font-style: italic;
    color: var(--gold-light);
}

.hero__subtitle {
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 2.5vw, 1.8rem);
    font-weight: 300;
    font-style: italic;
    color: rgba(255,255,255,0.82);
    letter-spacing: 0.04em;
    margin-bottom: 3.5rem;
    text-shadow: 0 1px 14px rgba(0,0,0,0.65);
}

/* Animated scroll indicator */
.hero__scroll {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.4);
    transition: color var(--transition);
}
.hero__scroll:hover { color: var(--gold); }

.hero__scroll-line {
    display: block;
    width: 1px;
    height: 44px;
    background: currentColor;
    transform-origin: top;
    animation: scroll-line 2.2s ease infinite;
}
@keyframes scroll-line {
    0%   { transform: scaleY(0); transform-origin: top; }
    48%  { transform: scaleY(1); transform-origin: top; }
    52%  { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

.hero__scroll-text {
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

/* Slide navigation dots */
.hero__nav {
    position: absolute;
    bottom: 36px;
    right: 44px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.hero__dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.25);
    cursor: pointer;
    padding: 0;
    transition: background var(--transition), transform var(--transition);
}
.hero__dot.active,
.hero__dot:hover {
    background: var(--gold);
    transform: scale(1.4);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--bg); }

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;
    align-items: center;
}

.about__text .section-title { margin-bottom: 2rem; }

.about__intro {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text);
    line-height: 1.55;
    margin-bottom: 1.8rem;
}

.about__text p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 1.3rem;
}

.about__quote {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--gold);
    border-left: 2px solid var(--gold-dim);
    padding-left: 20px;
    margin: 2.5rem 0;
    line-height: 1.55;
}

.about__images {
    position: relative;
    padding-bottom: 48px;
}
.about__image-main img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}
.about__image-accent {
    position: absolute;
    bottom: 0;
    left: -44px;
    width: 52%;
    border: 5px solid var(--bg);
}
.about__image-accent img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

/* ============================================================
   QUOTE BANNER
   ============================================================ */
.quote-banner {
    background: var(--bg-3);
    padding: 80px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.quote-banner__text {
    font-family: var(--font-serif);
    font-size: clamp(1.35rem, 3vw, 2.1rem);
    font-weight: 400;
    color: var(--text);
    text-align: center;
    line-height: 1.6;
    max-width: 780px;
    margin: 0 auto;
}
.quote-banner__text em {
    font-style: italic;
    color: var(--gold);
}

/* ============================================================
   LEISTUNGEN
   ============================================================ */
.leistungen { background: var(--bg-2); }

.leistungen__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.leistung-card {
    background: var(--bg-3);
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
    transition: background var(--transition);
}
.leistung-card:hover { background: var(--bg-4); }

/* Gold underline on hover */
.leistung-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease);
}
.leistung-card:hover::after { transform: scaleX(1); }

/* Subtle background image per card */
.leistung-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--card-bg-url);
    background-size: cover;
    background-position: center;
    opacity: 0.07;
    transition: opacity 0.5s var(--ease);
    pointer-events: none;
    z-index: 0;
}
.leistung-card:hover::before { opacity: 0.12; }
.leistung-card > * { position: relative; z-index: 1; }

.leistung-card__num {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--border-light);
    line-height: 1;
    margin-bottom: 1.2rem;
    transition: color var(--transition);
}
.leistung-card:hover .leistung-card__num { color: var(--gold-dim); }

.leistung-card__icon {
    width: 36px;
    height: 36px;
    color: var(--text-muted);
    margin-bottom: 1.4rem;
    transition: color var(--transition);
}
.leistung-card:hover .leistung-card__icon { color: var(--gold); }
.leistung-card__icon svg { width: 100%; height: 100%; }

.leistung-card__title {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    color: var(--text);
    margin-bottom: 1rem;
}

.leistung-card__text {
    font-size: 0.87rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin: 0;
}

/* Accent card (6th tile) */
.leistung-card--accent {
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
}
.leistung-card--accent:hover { background: var(--gold-light); }
.leistung-card--accent::after { display: none; }
.leistung-card__accent-content { text-align: center; }
.leistung-card__accent-content p {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--bg);
    margin-bottom: 2rem;
    line-height: 1.55;
}

/* ============================================================
   STILWELTEN GALLERY
   ============================================================ */
.stilwelten {
    background: var(--bg);
    padding-bottom: 0;
}

.stilwelten__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* All rows explicit so height:100% resolves in every cell */
    grid-template-rows: 380px 380px 310px 260px auto;
    gap: 3px;
    margin-top: 4rem;
}

.stilwelten__item--large {
    grid-column: span 2;
    grid-row: span 2;
}
.stilwelten__item--wide {
    grid-column: span 2;
}

.stilwelten__image-wrap {
    position: relative;
    overflow: hidden;
    display: block;
    cursor: pointer;
    height: 100%; /* fills explicit grid cell – no gaps */
}
/* Full-width panorama item (last row): height from aspect-ratio */
.stilwelten__item--full {
    grid-column: 1 / -1;
}
.stilwelten__item--full .stilwelten__image-wrap {
    height: auto;
    aspect-ratio: 21 / 9;
}

.stilwelten__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.stilwelten__image-wrap:hover img { transform: scale(1.05); }

.stilwelten__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 55%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 26px;
    opacity: 0;
    transition: opacity var(--transition);
}
.stilwelten__image-wrap:hover .stilwelten__overlay { opacity: 1; }

.stilwelten__cat {
    font-size: 0.63rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 5px;
}
.stilwelten__title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 400;
    color: #fff;
}

/* ============================================================
   VORTEILE
   ============================================================ */
.vorteile { background: var(--bg-2); }

.vorteile__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;
    align-items: center;
}

.vorteile__image img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.vorteile__content .section-title { margin-bottom: 1.5rem; }

.vorteile__intro {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text);
    margin-bottom: 2rem;
    line-height: 1.55;
}

.vorteile__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.vorteile__list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
    color: var(--text-muted);
}
.vorteile__list li::before {
    content: '+';
    color: var(--gold);
    font-size: 1rem;
    font-weight: 300;
    flex-shrink: 0;
}

/* ============================================================
   PROJEKTE
   ============================================================ */
.projekte { background: var(--bg); }

.projekte__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    margin-bottom: 4rem;
}

.projekt-card__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}
.projekt-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}
.projekt-card:hover .projekt-card__image img { transform: scale(1.05); }

.projekt-card__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(9,9,7,0.72);
    padding: 4px 10px;
    backdrop-filter: blur(6px);
}

.projekt-card__info {
    padding: 20px 20px 22px;
    background: var(--bg-3);
    transition: background var(--transition);
}
.projekt-card:hover .projekt-card__info { background: var(--bg-4); }

.projekt-card__title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 4px;
}
.projekt-card__cat {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    margin: 0;
}

.projekte__cta { text-align: center; }

/* ============================================================
   PLANUNG
   ============================================================ */
.planung {
    background: var(--bg-3);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.planung__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;
    align-items: center;
}

.planung__content .section-title { margin-bottom: 1.5rem; }
.planung__content p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 1.3rem;
}
.planung__italic {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--gold);
    margin-bottom: 2.5rem;
}

.planung__image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* ============================================================
   KONTAKT
   ============================================================ */
.kontakt { background: var(--bg-2); }

.kontakt__grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 90px;
    align-items: start;
}

.kontakt__info-block {
    margin-bottom: 3rem;
}
.kontakt__info-block h3 {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    color: var(--text);
    margin-bottom: 0.6rem;
}
.kontakt__info-block p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
    line-height: 1.6;
}

.kontakt__link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.9rem;
    transition: color var(--transition);
}
.kontakt__link:hover { color: var(--gold); }
.kontakt__link svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

.kontakt__tagline {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.95rem;
    color: var(--gold-dim);
    line-height: 1.65;
    border-left: 1px solid var(--gold-dim);
    padding-left: 16px;
}

/* ---- Form ---- */
.kontakt__form { width: 100%; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.form-group { margin-bottom: 20px; }
.form-group:last-child { margin-bottom: 0; }

label {
    display: block;
    font-size: 0.67rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

input, textarea, select {
    width: 100%;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: 0;
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 300;
    padding: 13px 16px;
    outline: none;
    transition: border-color var(--transition), background var(--transition);
    -webkit-appearance: none;
    appearance: none;
}
input:focus, textarea:focus, select:focus {
    border-color: var(--gold-dim);
    background: var(--bg-4);
}
input::placeholder, textarea::placeholder { color: var(--text-dim); }

select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238c8880' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}
select option { background: var(--bg-3); color: var(--text); }

textarea { resize: vertical; min-height: 130px; }

.form-hint {
    font-size: 0.72rem;
    color: var(--text-dim);
    margin-top: 14px;
    line-height: 1.5;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #060605; border-top: 1px solid var(--border); }

.footer__top { padding: 80px 0 64px; }

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.6fr;
    gap: 60px;
}

.footer__logo {
    height: 50px;
    width: auto;
    margin-bottom: 1.6rem;
    filter: brightness(0) invert(1);
    opacity: 0.55;
}

.footer__tagline {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.65;
}
.footer__tagline em { color: var(--gold-dim); }

.footer__social {
    margin-top: 1.6rem;
}
.footer__social-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color var(--transition);
}
.footer__social-link:hover { color: var(--accent); }
.footer__social-link svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

.footer__nav h4,
.footer__services h4,
.footer__contact h4 {
    font-family: var(--font-sans);
    font-size: 0.63rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-dim);
    margin-bottom: 1.6rem;
}

.footer__nav ul li,
.footer__services ul li {
    margin-bottom: 0.65rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.footer__nav a:hover { color: var(--text); }

.footer__contact { font-style: normal; }
.footer__contact p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}
.footer__contact a {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    transition: color var(--transition);
}
.footer__contact a:hover { color: var(--gold); }

.footer__bottom {
    border-top: 1px solid var(--border);
    padding: 22px 0;
}
.footer__bottom p {
    font-size: 0.73rem;
    color: var(--text-dim);
    text-align: center;
    margin: 0;
}
.footer__bottom a {
    color: var(--text-dim);
    margin: 0 6px;
}
.footer__bottom a:hover { color: var(--gold); }

/* ============================================================
   SCROLL REVEAL ANIMATION
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* ============================================================
   RESPONSIVE – Tablet (≤ 1060px)
   ============================================================ */
@media (max-width: 1060px) {
    :root {
        --px: 32px;
        --section-py: 90px;
    }

    .leistungen__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 44px;
    }

    .about__grid,
    .vorteile__grid,
    .planung__grid {
        gap: 56px;
    }
}

/* ============================================================
   RESPONSIVE – Mobile Menu (≤ 860px)
   ============================================================ */
@media (max-width: 860px) {
    .nav__hamburger { display: flex; }

    .nav__menu {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(300px, 80vw);
        background: var(--bg-2);
        border-left: 1px solid var(--border);
        flex-direction: column;
        justify-content: center;
        gap: 36px;
        transform: translateX(100%);
        transition: transform 0.4s var(--ease);
        z-index: 899;
        padding: 80px 48px;
    }
    .nav__menu.is-open { transform: translateX(0); }

    .nav__menu a {
        font-size: 0.88rem;
        color: var(--text-muted);
    }
    .nav__cta {
        align-self: flex-start;
    }
}

/* ============================================================
   RESPONSIVE – Tablet grid (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {
    :root { --px: 24px; }

    .about__grid,
    .vorteile__grid,
    .planung__grid,
    .kontakt__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about__images { padding-bottom: 0; }
    .about__image-accent { display: none; }
    .about__image-main img { aspect-ratio: 16 / 9; }

    .vorteile__image img { aspect-ratio: 16 / 9; }

    .stilwelten__grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto; /* reset explicit heights */
    }
    .stilwelten__item--large,
    .stilwelten__item--wide {
        grid-column: span 2;
        grid-row: span 1; /* no more row-spanning on tablet */
    }
    .stilwelten__item--full {
        grid-column: 1 / -1;
    }
    /* Revert to aspect-ratio since rows are auto at this width */
    .stilwelten__image-wrap {
        height: auto;
        aspect-ratio: 4 / 3;
    }
    .stilwelten__item--large .stilwelten__image-wrap {
        aspect-ratio: 16 / 9;
    }
    .stilwelten__item--full .stilwelten__image-wrap {
        aspect-ratio: 21 / 9;
    }

    .projekte__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .leistungen__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   RESPONSIVE – Mobile (≤ 640px)
   ============================================================ */
@media (max-width: 640px) {
    :root {
        --section-py: 64px;
        --px: 20px;
    }

    .hero__nav {
        bottom: 20px;
        right: 20px;
        flex-direction: row;
    }

    .stilwelten__grid,
    .projekte__grid,
    .leistungen__grid {
        grid-template-columns: 1fr;
    }

    .stilwelten__item--large,
    .stilwelten__item--wide,
    .stilwelten__item--full {
        grid-column: span 1;
    }
    .stilwelten__image-wrap,
    .stilwelten__item--large .stilwelten__image-wrap,
    .stilwelten__item--wide .stilwelten__image-wrap,
    .stilwelten__item--full .stilwelten__image-wrap {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .form-row { grid-template-columns: 1fr; gap: 0; }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

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

    .nav__logo img { height: 48px; }
    .nav.scrolled .nav__logo img { height: 34px; }
}

/* ============================================================
   INTRO SPLASH – Logo puzzle dissolve
   ============================================================ */
#intro {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 10s ease-in;
}
#intro.is-gone {
    opacity: 0;
    pointer-events: none;
}

.intro__logo {
    position: relative;
    /* width / height set by JS based on viewport */
}

.intro__piece {
    position: absolute;
    background-image: url('../images/440903_traumraumschmiede.png');
    background-repeat: no-repeat;
    filter: brightness(0) invert(1);
    opacity: 0.92;
    transition: transform 2.8s cubic-bezier(0.25, 0, 0.7, 0.4),
                opacity 2.4s ease;
}
.intro__piece.fly {
    transform: translate(var(--tx), var(--ty)) rotate(var(--r)) scale(0.1);
    opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
    .intro__piece { transition: opacity 0.3s ease !important; }
    .intro__piece.fly { transform: none !important; }
}

    .quote-banner { padding: 52px 0; }
}
