/* Fliesen Ganchur Meisterbetrieb Stuttgart — Stylesheet */

/* Selbst gehostete Hausschrift: Source Sans Pro (DSGVO-konform, keine Google-Verbindung) */
@font-face {
    font-family: "Source Sans Pro";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/ssp-400.woff2") format("woff2");
}
@font-face {
    font-family: "Source Sans Pro";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/ssp-600.woff2") format("woff2");
}

:root {
    --offwhite: #f7f4f0;
    --anthracite: #2c2c2c;
    --dark: #1e1e1e;
    --darker: #1a1a1a;
    --sand: #c4b5a5;
    --text-muted: #6b6560;
    --text-faint: #9e9590;
    --line: #e8e3dc;
    --font: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--anthracite);
    background: var(--offwhite);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

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

a {
    color: inherit;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.eyebrow {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--sand);
    font-weight: 600;
    margin-bottom: 16px;
}

.section-heading {
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 400;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background: var(--darker);
    color: var(--offwhite);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hero__nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 48px;
    position: relative;
    z-index: 10;
}

.hero__logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
}

.hero__logo img {
    height: 50px;
    width: auto;
    display: block;
}

.hero__nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero__nav-links a {
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(247, 244, 240, 0.78);
    text-decoration: none;
    transition: color 0.2s;
}

.hero__nav-links a:hover {
    color: var(--offwhite);
}

.hero__nav-toggle {
    display: none;
}

.hero__inner {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 48px 80px;
}

.hero__eyebrow {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--sand);
    font-weight: 600;
    margin-bottom: 32px;
}

.hero__headline {
    font-size: clamp(40px, 5vw, 72px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 32px;
}

.hero__sub {
    font-size: 15px;
    color: rgba(247, 244, 240, 0.72);
    line-height: 1.7;
    font-weight: 400;
    margin-bottom: 48px;
    max-width: 400px;
    text-wrap: balance;
}

.hero__buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s, background 0.2s, color 0.2s;
}

.btn--primary {
    background: var(--offwhite);
    color: var(--darker);
}

.btn--primary:hover {
    opacity: 0.85;
}

.btn--outline {
    background: transparent;
    color: var(--offwhite);
    border: 1px solid rgba(247, 244, 240, 0.3);
}

.btn--outline:hover {
    background: rgba(247, 244, 240, 0.1);
}

.hero__media {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #2c2c2c;
}

.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.05);
}

/* ---------- Video (randvoll, ohne Rahmen) ---------- */
.video-section {
    width: 100%;
    height: clamp(360px, 56vw, 680px);
    overflow: hidden;
    background: #000;
}

.video-section .video-el {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%) contrast(1.05);
}

/* ---------- Generic section ---------- */
.section {
    padding: 100px 0;
}

.section--tight {
    padding: 80px 0;
}

/* ---------- Leistungen ---------- */
.services {
    background: #fff;
    text-align: center;
}

.services__intro {
    margin-bottom: 64px;
}

.services__intro p {
    color: var(--text-muted);
    margin-top: 12px;
    font-weight: 400;
}

.service {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    text-align: left;
    margin-bottom: 80px;
}

.service:last-child {
    margin-bottom: 0;
}

.service:nth-child(even) .service__media {
    order: -1;
}

.service__title {
    font-size: 26px;
    font-weight: 400;
    margin-bottom: 20px;
    line-height: 1.2;
}

.service__text {
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1.7;
    max-width: 360px;
}

.service__media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--line);
}

.service__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.05);
    transition: filter 0.5s;
}

.service__media:hover img {
    filter: grayscale(0%) contrast(1);
}

/* ---------- WhyUs ---------- */
.why {
    background: var(--offwhite);
}

.why__heading {
    margin-bottom: 56px;
}

.why__row {
    display: grid;
    grid-template-columns: 60px 1.2fr 2fr;
    gap: 32px;
    align-items: start;
    padding: 28px 0;
    border-top: 1px solid var(--line);
}

.why__row:last-child {
    border-bottom: 1px solid var(--line);
}

.why__num {
    font-size: 11px;
    color: var(--sand);
    font-weight: 600;
    letter-spacing: 1px;
    padding-top: 4px;
}

.why__title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.why__desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    font-weight: 400;
}

/* ---------- Referenzen ---------- */
.refs {
    background: #fff;
}

.refs__heading {
    margin-bottom: 16px;
}

.refs__note {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1.7;
    max-width: 560px;
    margin-bottom: 48px;
}

.refs__note-tag {
    display: inline-block;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--sand);
    border: 1px solid var(--sand);
    border-radius: 999px;
    padding: 3px 10px;
    margin-right: 10px;
    vertical-align: middle;
}

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

.ref figure {
    margin: 0;
}

.ref__img {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--line);
    margin-bottom: 12px;
}

.ref__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.05);
    transition: filter 0.5s, transform 0.5s;
}

.ref:hover .ref__img img {
    filter: grayscale(0%);
    transform: scale(1.03);
}

.ref figcaption {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* ---------- About ---------- */
.about {
    background: var(--offwhite);
}

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

.about__heading {
    margin-bottom: 32px;
}

.about__text {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.9;
    font-weight: 400;
    margin-bottom: 24px;
}

.about__text--small {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

.about__media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--line);
}

.about__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.05);
}

/* ---------- Kontakt ---------- */
.contact {
    background: var(--anthracite);
    color: var(--offwhite);
}

.contact__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    max-width: 900px;
    margin: 0 auto;
}

.contact__heading {
    color: var(--offwhite);
    margin-bottom: 40px;
}

.contact__sub {
    font-size: 16px;
    color: var(--text-faint);
    line-height: 1.7;
    font-weight: 400;
    margin-bottom: 40px;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact__detail-label {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact__detail a,
.contact__detail span {
    color: var(--offwhite);
    text-decoration: none;
    font-size: 15px;
}

.contact__detail a:hover {
    text-decoration: underline;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 24px;
}

.field label {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.field input,
.field textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid #4a4a4a;
    padding: 12px 0;
    color: var(--offwhite);
    font-size: 15px;
    font-family: var(--font);
    outline: none;
    width: 100%;
}

.field textarea {
    resize: vertical;
    min-height: 120px;
}

.field input:focus,
.field textarea:focus {
    border-bottom-color: var(--sand);
}

.field input::placeholder,
.field textarea::placeholder {
    color: #6b6560;
}

.form__btn {
    margin-top: 8px;
    padding: 14px 32px;
    background: var(--offwhite);
    color: var(--anthracite);
    border: none;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font);
    transition: opacity 0.2s;
}

.form__btn:hover {
    opacity: 0.85;
}

.form__btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.form__success {
    border: 1px solid #4a4a4a;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form__success h3 {
    font-size: 22px;
    font-weight: 400;
    color: var(--offwhite);
}

.form__success p {
    font-size: 15px;
    color: var(--text-faint);
    line-height: 1.7;
    font-weight: 400;
}

.form__error {
    font-size: 13px;
    color: #e0a0a0;
    margin-top: 12px;
}

.is-hidden {
    display: none !important;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--dark);
    color: var(--text-faint);
    padding: 48px 0;
}

.footer__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 32px;
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer__logo {
    height: 48px;
    width: auto;
    display: block;
    margin-bottom: 16px;
}

.footer__brand span,
.footer__brand a {
    font-size: 13px;
    color: var(--text-faint);
    text-decoration: none;
}

.footer__brand a:hover {
    color: var(--offwhite);
}

.footer__social {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-faint);
    text-decoration: none;
}

.footer__social:hover {
    color: var(--offwhite);
}

.footer__nav {
    display: flex;
    gap: 48px;
}

.footer__nav-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__nav-group a {
    font-size: 13px;
    color: var(--text-faint);
    text-decoration: none;
}

.footer__nav-group a:hover {
    color: var(--offwhite);
}

.footer__bottom {
    border-top: 1px solid var(--anthracite);
    margin-top: 40px;
    padding-top: 24px;
    font-size: 12px;
    color: var(--text-muted);
}

/* ---------- Rechtsseiten (Impressum / Datenschutz) ---------- */
.legal {
    padding: 80px 0 120px;
}

.legal__inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

.legal__back {
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-faint);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 48px;
}

.legal__back:hover {
    color: var(--anthracite);
}

.legal h1 {
    font-size: clamp(32px, 4vw, 42px);
    font-weight: 400;
    letter-spacing: -0.5px;
    margin-bottom: 48px;
}

.legal h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 44px 0 12px;
}

.legal .label {
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--sand);
    font-weight: 600;
    margin: 40px 0 12px;
}

.legal p {
    font-size: 15px;
    line-height: 1.8;
    color: #4a4644;
    font-weight: 400;
}

.legal a {
    color: #4a4644;
    text-decoration: underline;
}

.legal__date {
    font-size: 13px;
    color: var(--text-faint);
    margin-top: 56px;
}

/* ---------- Burger / Mobiles Menü ---------- */
.nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 9px 7px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-burger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--offwhite);
    border-radius: 2px;
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: var(--darker);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu__close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    color: var(--offwhite);
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
}

.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.mobile-menu__nav a {
    color: var(--offwhite);
    text-decoration: none;
    font-size: 24px;
    letter-spacing: 0.5px;
}

/* ---------- Vertrauens-Streifen ---------- */
.trust {
    background: var(--offwhite);
    padding: 26px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.trust__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    text-align: center;
}

.trust__item {
    font-size: 13px;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.trust__divider {
    width: 1px;
    height: 18px;
    background: var(--line);
}

.trust__rating {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--anthracite);
    font-weight: 600;
    text-decoration: none;
}

.trust__rating:hover {
    text-decoration: underline;
}

.trust__stars {
    color: var(--sand);
    letter-spacing: 2px;
    font-size: 14px;
}

@media (max-width: 520px) {
    .trust__divider {
        display: none;
    }
}

/* ---------- Schwebender Anruf-Button ---------- */
.call-fab {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 50;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    background: var(--anthracite);
    color: var(--offwhite);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 999px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28),
        0 0 0 1.5px rgba(247, 244, 240, 0.55);
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s;
}

.call-fab.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.call-fab:hover {
    background: #000;
}

.call-fab svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

@media (max-width: 380px) {
    .call-fab {
        padding: 15px;
    }
    .call-fab__label {
        display: none;
    }
}

/* ---------- Schwebender Menü-Button (mobil, erscheint beim Scrollen) ---------- */
.menu-fab {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 60;
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 48px;
    height: 48px;
    padding: 13px 11px;
    background: var(--anthracite);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28),
        0 0 0 1.5px rgba(247, 244, 240, 0.45);
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s;
}

.menu-fab span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--offwhite);
    border-radius: 2px;
}

.menu-fab.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.menu-fab:hover {
    background: #000;
}

@media (max-width: 860px) {
    .menu-fab {
        display: flex;
    }
}

/* ---------- Datenschutz-Hinweis am Formular ---------- */
.form__privacy {
    font-size: 12px;
    color: var(--text-faint);
    line-height: 1.6;
    margin-top: 16px;
}

.form__privacy a {
    color: var(--offwhite);
    text-decoration: underline;
}

/* ---------- Bewegung reduzieren (Barrierefreiheit) ---------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .hero__inner {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 24px 64px;
    }

    .hero__media {
        aspect-ratio: 3 / 2;
        order: -1;
    }

    .hero__nav {
        padding: 20px 24px;
    }

    .hero__nav-links {
        gap: 20px;
    }

    .hero__nav-links a {
        display: none;
    }

    .nav-burger {
        display: flex;
    }

    .service,
    .about__inner,
    .contact__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .service:nth-child(even) .service__media {
        order: 0;
    }

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

    .why__row {
        grid-template-columns: 40px 1fr;
        gap: 16px;
    }

    .why__desc {
        grid-column: 2;
    }

    .section {
        padding: 64px 0;
    }

    .footer__top {
        flex-direction: column;
    }
}

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

    .hero__headline {
        font-size: 38px;
    }

    .footer__nav {
        gap: 32px;
    }
}
