/* ==========================================
   Scheiben-Doktor Duisburg
   style.css
========================================== */


/* ==========================================
   Reset
========================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f4f4;
    color: #333;
    line-height: 1.6;
}


/* ==========================================
   Header
========================================== */

.topbar {
    position: sticky;
    top: 0;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 15px 8%;

    background: #ffd400;

    box-shadow: 0 2px 10px rgba(0, 0, 0, .15);

    z-index: 999;
}

.logo img {
    height: 70px;
    width: auto;
    display: block;
}

nav a {
    color: #b30000;
    text-decoration: none;
    font-weight: bold;
    margin-left: 25px;
    transition: .3s;
}

nav a:hover {
    color: #000;
}


/* ==========================================
   Hero
========================================== */

.hero{
    min-height:85vh;

    background-image:
        linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.45)),
        url("https://www.duisburg-scheibendoktor.de/images/hero.jpg");

    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;

    display:flex;
    justify-content:center;
    align-items:center;

    text-align:center;
    color:white;
}


/* ==========================================
   Buttons
========================================== */

.btn {
    display: inline-block;

    padding: 16px 34px;
    margin: 10px;

    background: #ffd400;
    color: #000;

    font-weight: bold;
    text-decoration: none;

    border: none;
    border-radius: 8px;

    transition: .3s;
    cursor: pointer;
}

.btn:hover {
    background: #ffbf00;
    text-decoration: none;
}

.secondary {
    background: #b30000;
    color: white;
}

.secondary:hover {
    background: #880000;
}


/* ==========================================
   Sections
========================================== */

section {
    padding: 70px 10%;
}

section h1 {
    color: #b30000;
    margin-bottom: 30px;
}

.hero h1 {
    color: #ffffff;
}

section h2 {
    text-align: center;
    color: #b30000;
    font-size: 38px;
    margin-bottom: 40px;
}

section p {
    margin-bottom: 15px;
}

section a {
    color: #b30000;
    text-decoration: none;
}

section a:hover {
    text-decoration: underline;
}


/* ==========================================
   Grid
========================================== */

.grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(250px, 1fr));

    gap: 25px;
}

.grid article {
    background: white;

    padding: 30px;

    border-radius: 12px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, .08);

    transition: .3s;
}

.grid article:hover {
    transform: translateY(-8px);
}


/* ==========================================
   Bewertungen
========================================== */

#bewertungen {
    background: #ffffff;
}

.sterne {
    font-size: 28px;
    color: #FFD700;
    margin-bottom: 15px;
}

#bewertungen article {
    text-align: center;
}

#bewertungen strong {
    display: block;
    margin-top: 15px;
    color: #b30000;
}


/* ==========================================
   Terminformular
========================================== */

.kontaktformular {
    max-width: 800px;

    margin: 40px auto;

    background: #fff;

    padding: 40px;

    border-radius: 15px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, .12);
}

.kontaktformular label {
    display: block;

    margin-top: 20px;
    margin-bottom: 8px;

    font-weight: bold;

    color: #b30000;
}

.kontaktformular input,
.kontaktformular select,
.kontaktformular textarea {
    width: 100%;

    padding: 14px;

    border: 1px solid #ccc;
    border-radius: 8px;

    font-size: 16px;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    transition: .3s;
}

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

.kontaktformular input:focus,
.kontaktformular select:focus,
.kontaktformular textarea:focus {
    outline: none;

    border-color: #ffd400;

    box-shadow:
        0 0 8px rgba(255, 212, 0, .5);
}

.kontaktformular button {
    margin-top: 30px;

    width: 100%;

    font-size: 18px;

    cursor: pointer;
}


/* ==========================================
   Footer
========================================== */

footer {
    background: #222;
    color: white;

    padding: 35px;
}

.footer-container {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(250px, 1fr));

    gap: 40px;

    text-align: center;
}

footer h3 {
    margin-bottom: 15px;

    color: #ffd400;
}

footer p {
    margin-bottom: 10px;
}

footer a {
    color: white;

    text-decoration: none;
}

footer a:hover {
    color: #ffd400;
}

footer hr {
    margin: 35px 0;

    border: none;

    border-top:
        1px solid rgba(255, 255, 255, .2);
}


/* ==========================================
   WhatsApp Button
========================================== */

.whatsapp {
    position: fixed;

    right: 25px;
    bottom: 25px;

    width: 65px;
    height: 65px;

    border-radius: 50%;

    background: #25D366;
    color: white;

    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 34px;

    text-decoration: none;

    box-shadow:
        0 5px 15px rgba(0, 0, 0, .35);

    transition: .3s;

    z-index: 99999;
}

.whatsapp:hover {
    transform: scale(1.12);
}


/* ==========================================
   Animation
========================================== */

.fade {
    opacity: 0;

    transform: translateY(40px);

    transition: all .7s ease;
}

.visible {
    opacity: 1;

    transform: translateY(0);
}


/* ==========================================
   Responsive
   Smartphone und Tablet
========================================== */

@media(max-width:900px){

    .topbar{
        position:relative;
        flex-direction:column;
        padding:5px 10px;
    }

    .logo img{
        height:40px;
    }

    nav{
        display:flex;
        flex-direction:row;
        flex-wrap:wrap;
        justify-content:center;
        align-items:center;
        gap:2px 12px;
        margin-top:3px;
    }

    nav a{
        display:inline-block;
        margin:0;
        padding:2px 0;
        font-size:13px;
        line-height:1.3;
    }

    .hero h1{
        font-size:36px;
    }

    .hero p{
        font-size:18px;
    }

    .btn{
        display:block;
        width:280px;
        max-width:90%;
        margin:12px auto;
    }

    section{
        padding:50px 7%;
    }

}

/* ==========================================
   Kleine Smartphones
========================================== */

@media (max-width: 500px) {

    .logo img {
        height: 55px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero p {
        font-size: 17px;
    }

    section {
        padding: 40px 5%;
    }

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

    .whatsapp {
        width: 55px;
        height: 55px;

        right: 15px;
        bottom: 15px;

        font-size: 28px;
    }

}
/* Facebook Button */

.facebook {
    position: fixed;
    right: 95px;
    bottom: 25px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background-color: #1877F2;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    text-decoration: none !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.35);
    z-index: 99999;
}

.facebook:hover {
    transform: scale(1.1);
}

/* Facebook und WhatsApp auf Smartphones */

@media (max-width: 500px) {

    .whatsapp {
        width: 55px;
        height: 55px;
        right: 15px;
        bottom: 15px;
        font-size: 28px;
    }

    .facebook {
        width: 55px;
        height: 55px;
        right: 75px;
        bottom: 15px;
        font-size: 32px;
    }

}