/* *========== Imports ========== */

@import url("./fonts.css");

/* *========== Schriften ========= */

body {
    margin: 0;
    font-family: "Source Sans 3", Arial, sans-serif;
}

h1,
h2 {
    font-family: "Playfair Display", Georgia, serif;
}


/* *========== Global ========= */
* {
    box-sizing: border-box;
}

/* *========= Farben ======== */
:root {
    --background: #F7F3EE;
    --foreground: #1C1208;
    --primary: #2C1A08;
    --accent: #A0611A;
    --secondary: #EDE4D8;
    --muted-foreground: #7A6347;
    --card: #FFFFFF;
    --border: rgba(44, 26, 8, 0.15);
}

/* *========= Generaeles ========= */

.blur {
    background-color: rgba(247, 243, 238, 0.134);
    backdrop-filter: blur(4px);
}

.span-color {
    color: var(--accent);
}

.span-heading {
    font-size: .9rem;
}


/* *========= Navigation ========= */

header {
    z-index: 100;
    position: sticky;
    top: 0;
}

.navigation {
    border-bottom: 1px solid var(--border);
    height: 60px;
    background-color: var(--background);
}

.nav-container {
    display: flex;
    width: 95%;
    margin: 0 auto;
    justify-content: space-around;

}

.nav-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-logo>a {
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--primary);
}

.nav-card-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    height: 60px;
    margin: 0;
}

.nav-card {
    display: flex;
    align-items: center;
    list-style: none;
}

.nav-card>a {
    color: var(--muted-foreground);
    text-decoration: none;
}

.nav-btn {
    background-color: var(--accent);
    height: 2.5rem;
    width: 8rem;
    justify-content: center;
    border-radius: 4px;
}

.nav-btn>a {
    color: #FFF;
    text-decoration: none;
}

@media(max-width: 718px) {
    .nav-logo>a {
        font-size: 1rem;
    }

    .nav-btn {
        display: none;

    }

    .nav-card>a {
        font-size: .8rem;
    }

    .nav-card-container {
        gap: .5rem;
        padding: 0;
    }

    .nav-card {
        min-width: 48px;
    }
}


/* *========= Hero-Bereich ========= */

#hero {
    position: relative;
    background-image: url(../img/hero.jpg);
    background-size: cover;
    background-position: center;
    min-height: 106vh;
}

#hero-bg {
    display: flex;
    align-items: center;
    position: absolute;
    inset: 0;
    background-color: rgba(44, 26, 8, 0.75);
}

#hero-container {
    display: flex;
    justify-content: center;
    width: 90%;
    margin: 0 auto;
    gap: 2rem;
}

#hero-card {
    width: 50%;
}

#hero-card>h1 {
    color: #FFF;
    font-size: 3.8rem;
    margin: 0;
    width: 60vh;
}

#hero-card>p {
    color: #ffffffcc;
    font-size: 1.1rem;
    width: 50vh;
}

#hero-btn-container {
    display: flex;
    gap: 1rem;
}

#hero-btn-primary {
    display: flex;
    width: 260px;
    height: 3rem;
    justify-content: center;
    align-items: center;
    background-color: var(--accent);
    border: 2px solid var(--border);
    border-radius: 4px;
}

#hero-btn-primary>a {
    text-decoration: none;
    color: #FFF;
}

#hero-btn-primary>a>span {
    margin: 0 1rem;
}

#hero-btn-secondary {
    display: flex;
    width: 260px;
    height: 3rem;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--secondary);
    border-radius: 4px;
}

#hero-btn-secondary>a {
    text-decoration: none;
    color: #FFF;
}

#hero-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: auto;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.hero-info-card {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;

    width: 230px;
    height: 200px;
    border: 3px double #00000070;
}

.hero-info-text {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    position: relative;
    bottom: 1rem;
    text-align: center;
}



.hero-info-text>p {
    color: #FFF;
    margin: 0;
    font-style: italic;
}

.hero-info-icon>img {
    width: 40px;
}

@media(max-width: 1000px) {
    #hero-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    #hero-card {
        width: auto;
    }

    #hero-card>h1 {
        width: auto;
        font-size: 3rem;
    }

    #hero-card>p {
        width: auto;
        font-size: 1rem;
    }

    #hero-btn-container {

        flex-direction: column;
    }

    #hero-btn-primary {
        width: auto;
    }

    #hero-btn-secondary {
        width: auto;
    }

    #hero-info {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .hero-info-card {
        flex-direction: row;
        justify-content: start;
        height: 65px;
        width: 148px;
        gap: .5rem;
        padding: 1px;
    }

    .hero-info-text {
        text-align: left;
        justify-content: center;
        position: static;
        gap: .1rem;
    }

    .hero-info-text>p>b {
        font-size: .94rem;
    }

    .hero-info-text>p {
        font-size: .94rem;
    }

    .hero-info-icon>img {
        width: 20px;
    }
}


/* *========= Leistungen ========= */

#leistungen {
    background-color: var(--secondary);
    padding: 5rem 0;
}

#leistungen-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 95%;
    margin: 0 auto;
}

#leistungen-heading>h2 {
    width: 65vh;
    font-size: 3rem;
    font-weight: 400;
    color: #2C1A08;
    margin: .6rem 0 2rem;
}

#leistungen-card-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10vh;
    margin: 0 auto;
}

.leistungen-card {
    max-width: 400px;
    min-height: 250px;
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 4px;
    background-color: var(--card);
    transition: border-color 0.12s ease-in;
}

.leistungen-card:hover {
    border-color: var(--accent);
}


.leistungen-card-icon>span {
    font-size: 2rem;
}

.leistungen-card-text>h3 {
    font-weight: 400;
    color: var(--primary);
    font-size: 1.3rem;
}

.leistungen-card-text>p {
    margin: 0;
    color: var(--muted-foreground);
}

@media(max-width: 1300px) {
    #leistungen-card-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }

    .leistungen-card {
        max-width: 800px;
        min-height: 250px;
    }
}

@media(max-width: 630px) {
    #leistungen-card-container {
        grid-template-columns: repeat(1, 1fr);
        gap: 3rem;
    }

    .leistungen-card {
        max-width: 800px;
        min-height: 250px;
    }

    #leistungen-heading>h2 {
        width: 36vh;
        font-size: 2.5rem;
    }
}

/* *========== Referenzen ========== */

#referenzen {
    background-color: var(--background);
    padding: 5rem 0;
}

#referenzen-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 95%;
    margin: 0 auto;
}

#referenzen-heading>h2 {
    font-size: 3rem;
    font-weight: 400;
    color: #2C1A08;
    margin: .6rem 0 2rem;
}

#referenzen-card-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.referenzen-card {
    position: relative;
    overflow: hidden;
}

.referenzen-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.referenzen-card:hover img {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(44, 26, 8, 0);
    transition: background-color 0.3s ease;
    display: flex;
    align-items: flex-end;
}

.referenzen-card:hover .overlay {
    background-color: rgba(44, 26, 8, 0.55);
}

.overlay p {
    color: white;
    padding: 1rem 1.25rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    opacity: 0;
    transform: translateY(1rem);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.referenzen-card:hover .overlay p {
    opacity: 1;
    transform: translateY(0);
}

@media(max-width: 1000px) {
    #referenzen-card-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 500px) {
    #referenzen-card-container {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* *========== Ueber-Uns ========= */

#ueber-uns {
    background-color: var(--primary);
    padding: 5rem 0;
    margin: 0 auto;
}

#ueber-uns-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    max-width: 72rem;
    margin: 0 auto;
    gap: 3rem;
    padding: 1.5rem;
}

#ueber-uns-heading {
    color: #FFF;
}

#ueber-uns-heading>h2 {
    font-size: 1.8rem;
}

#vorteile {
    display: grid;
}

.vorteil-card {
    display: flex;
}

.vorteil-card>span {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: .7rem;
    color: var(--accent);
    font-size: 1.5rem;
}

#ueber-uns-img {
    position: relative;
}

#ueber-uns-img>img {
    width: 100%;
    object-fit: cover;
    max-height: 520px;
}


#erfahrung-badge {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    position: absolute;
    bottom: -15px;
    left: -20px;
    width: 140px;
    height: 140px;
    background-color: #A0611A;
    color: #FFF;
    padding: 1rem;
}

#erfahrung-badge>span {
    font-size: 1.7rem;
}

@media(max-width: 992px) {
    #ueber-uns-container {
        grid-template-columns: repeat(1, 1fr);
        text-align: center;
    }

    #ueber-uns-img {
        display: flex;
        justify-content: center;
    }

    #ueber-uns-img>img {
        object-fit: contain;
    }

    #erfahrung-badge {
        display: none;
    }

    #vorteile {
        grid-template-columns: repeat(2, 1fr);
        margin: 0 auto;
    }

    #ueber-uns-heading {
        text-align: center;
    }

    #ueber-uns-heading>h2 {
        width: 60%;
        margin: 0 auto;
    }

    #ueber-uns-heading>p {
        width: 80%;
        margin: 0 auto;
        margin-top: 1rem;
    }

    .vorteil-card {
        display: flex;
        justify-content: center;
        margin-top: 1rem;
    }
}

@media(max-width: 544px) {
    #vorteile {
        grid-template-columns: repeat(1, 1fr);
    }

    #ueber-uns-heading>h2 {
        width: 80%;
    }
}

/* *========= Kunden ========= */

#kunden {
    background-color: var(--secondary);
    padding: 5rem 0;
}

#kunden-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 95%;
    margin: 0 auto;
}

#kunden-heading {
    text-align: center;
}

#kunden-heading>h2 {
    width: 65vh;
    font-size: 3rem;
    font-weight: 400;
    color: #2C1A08;
    margin: .6rem auto 2rem;
}

#kunden-bewertungen-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 0 auto;
}

.kunden-bewertungen-card {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    background-color: var(--card);
    border: 1px solid var(--border);
    min-height: 250px;
    max-width: 340px;
    padding: 1rem;
}

.stars {
    color: var(--accent);
}

.kunden-bewertungen-text {
    font-style: italic;
}

.kunden-bewertungen-name {
    display: flex;
    flex-direction: column;
}

.kunden-bewertungen-name>p {
    font-family: "Playfair Display", Georgia, serif;
    margin: 0;
}

.kunden-bewertungen-name>span {
    font-size: .8rem;
}

@media(max-width: 694px) {
    #kunden-bewertungen-container {
        grid-template-columns: repeat(1, 1fr);
        gap: 1.5rem;
    }

    #kunden-heading>h2 {
        width: 30vh;
        font-size: 3rem;
        font-weight: 400;
        color: #2C1A08;
        margin: .6rem auto 2rem;
    }
}

/* *========= Kontakt ========== */

#kontakt {
    padding: 5rem 0;
    background-color: var(--background);
}

#kontakt-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: 4rem;
    width: min(95%, 72rem);
    margin: 0 auto;
    align-items: start;
}

#kontakt-heading h2 {
    margin: 0.6rem 0 1rem;
    color: var(--primary);
    font-size: 2.5rem;
    font-weight: 400;
}

#kontakt-heading>p {
    margin: 0;
    color: var(--muted-foreground);
    line-height: 1.6;
}

#kontakt-info-list {
    display: grid;
    gap: 0.9rem;
    margin-top: 2rem;
}

.kontakt-info-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    background-color: var(--card);
}

.kontakt-icons {
    display: grid;
    width: 2.8rem;
    height: 2.8rem;
    place-items: center;
    border-radius: 0.5rem;
    background-color: var(--secondary);
}

.kontakt-icons img {
    width: 1.35rem;
    height: 1.35rem;
}

.kontakt-info-badge {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.kontakt-info-badge span {
    color: var(--muted-foreground);
    font-size: 0.85rem;
}

.kontakt-info-badge a,
.kontakt-info-badge address {
    color: var(--primary);
    font-style: normal;
    font-weight: 600;
    text-decoration: none;
}

.kontakt-info-badge a:hover {
    color: var(--accent);
}


/* ========== Formular ========== */

.kontakt-formular-card {
    border: 1px solid var(--border);
    border-top: 4px solid var(--accent);
    border-radius: 0.9rem;
    background-color: var(--card);
    box-shadow: 0 1rem 2.5rem rgba(44, 26, 8, 0.08);
}

#kontakt-formular {
    padding: 2rem;
}

.formular-heading {
    margin-bottom: 1.5rem;
}

.formular-heading h3 {
    margin: 0 0 0.4rem;
    color: var(--primary);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.7rem;
    font-weight: 400;
}

.formular-heading p {
    margin: 0;
    color: var(--muted-foreground);
}

.formular-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.formular-gruppe {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.formular-gruppe label {
    color: var(--primary);
    font-weight: 600;
}

.formular-gruppe label span {
    color: var(--muted-foreground);
    font-weight: 400;
}

.formular-gruppe input,
.formular-gruppe textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.4rem;
    outline: none;
    background-color: #fffdfa;
    color: var(--foreground);
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.formular-gruppe input::placeholder,
.formular-gruppe textarea::placeholder {
    color: var(--muted-foreground);
    opacity: 0.75;
}

.formular-gruppe input:focus,
.formular-gruppe textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(160, 97, 26, 0.16);
}

.formular-gruppe textarea {
    min-height: 8rem;
    resize: vertical;
}

.datenschutz-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 1.25rem 0;
    color: var(--muted-foreground);
    font-size: 0.9rem;
    line-height: 1.5;
}

.datenschutz-checkbox input {
    margin-top: 0.25rem;
    accent-color: var(--accent);
}

.datenschutz-checkbox a {
    color: var(--accent);
    font-weight: 600;
}

#kontakt-formular button {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--accent);
    border-radius: 0.4rem;
    background-color: var(--accent);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

#kontakt-formular button:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

#kontakt-formular button:focus-visible {
    outline: 3px solid rgba(160, 97, 26, 0.35);
    outline-offset: 3px;
}

@media (max-width: 850px) {
    #kontakt-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 600px) {
    #kontakt {
        padding: 3.5rem 0;
    }

    #kontakt-heading h2 {
        font-size: 2.15rem;
    }

    #kontakt-formular {
        padding: 1.4rem;
    }

    .formular-row {
        grid-template-columns: 1fr;
    }
}

/* *========= Footer ========= */

.site-footer {
    padding: 4rem 0 0;
    background-color: var(--primary);
    color: rgba(255, 255, 255, 0.75);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.4fr 0.7fr 0.9fr;
    gap: 3rem;
    width: min(95%, 72rem);
    margin: 0 auto;
    padding-bottom: 3rem;
}

.footer-logo {
    color: #fff;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.7rem;
    text-decoration: none;
}

.footer-logo span {
    color: var(--accent);
}

.footer-brand p {
    max-width: 25rem;
    margin: 1rem 0 0;
    line-height: 1.6;
}

.footer-nav h3,
.footer-contact h3 {
    margin: 0 0 1rem;
    color: #fff;
    font-size: 1rem;
}

.footer-links {
    display: grid;
    gap: 0.65rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--accent);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
}

.footer-contact address {
    color: rgba(255, 255, 255, 0.75);
    font-style: normal;
    line-height: 1.6;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    width: min(95%, 72rem);
    margin: 0 auto;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.85rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-hinweis {
    margin-top: 0.3rem !important;
    color: rgba(255, 255, 255, 0.5);
}

.footer-rechtliches {
    display: flex;
    gap: 1.25rem;
}

.footer-rechtliches a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.footer-rechtliches a:hover {
    color: var(--accent);
}

.site-footer a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

@media (max-width: 700px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

 /* *========= Back ========= */
.zur-hauptseite {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 200;

    padding: 0.8rem 1rem;
    border: 1px solid var(--accent);
    border-radius: 0.5rem;

    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 0.6rem 1.5rem rgba(44, 26, 8, 0.22);

    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;

    transition: background-color 0.2s ease, transform 0.2s ease;
}

.zur-hauptseite:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
}

.zur-hauptseite:focus-visible {
    outline: 3px solid rgba(160, 97, 26, 0.4);
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .zur-hauptseite {
        right: 0.8rem;
        bottom: 0.8rem;
        padding: 0.7rem 0.85rem;
        font-size: 0.8rem;
    }
}
