/* ==========================================================
   SmartWerk Hausservice
   Version 1.0
   ----------------------------------------------------------
   Teil 1
   Reset
   Variablen
   Basis
   Navigation
   Hero
   Buttons
========================================================== */


/* ===========================
   RESET
=========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{

    scroll-behavior:smooth;

}

body{

    font-family:'Poppins',sans-serif;

    color:#23272C;

    background:#F7F9FC;

    line-height:1.7;

    overflow-x:hidden;

}


/* ===========================
   VARIABLEN
=========================== */

:root{

    --primary:#1485F4;

    --secondary:#123E75;

    --accent:#A97742;

    --dark:#23272C;

    --light:#F7F9FC;

    --white:#ffffff;

    --radius:18px;

    --shadow:

        0 15px 40px rgba(0,0,0,.08);

    --transition:

        .35s ease;

}


/* ===========================
   STANDARD
=========================== */

img{

    display:block;

    max-width:100%;

}

a{

    text-decoration:none;

    color:inherit;

}

ul{

    list-style:none;

}

.container{

    width:min(1200px,92%);

    margin:auto;

}

section{

    padding:110px 0;

}

.section-title{

    text-align:center;

    margin-bottom:70px;

}

.section-title h2{

    font-size:46px;

    color:var(--secondary);

    margin-bottom:12px;

}

.section-title p{

    color:#666;

    font-size:18px;

}


/* ===========================
   NAVIGATION
=========================== */

.navbar{

    position:fixed;

    top:0;

    left:0;

    width:100%;

    z-index:999;

    transition:var(--transition);

    background:rgba(255,255,255,.82);

    backdrop-filter:blur(14px);

}

.navbar.scrolled{

    background:white;

    box-shadow:

        0 10px 35px rgba(0,0,0,.08);

}

.navbar .container{

    display:flex;

    justify-content:space-between;

    align-items:center;

    height:100px;

}

.logo img{

    height:180px;

    width:auto;

    display:block;

}

.menu{

    display:flex;

    gap:40px;

    font-weight:600;

}

.menu a{

    position:relative;

    transition:var(--transition);

}

.menu a:hover{

    color:var(--primary);

}

.menu a::after{

    content:"";

    position:absolute;

    left:0;

    bottom:-8px;

    width:0;

    height:3px;

    background:var(--primary);

    border-radius:50px;

    transition:var(--transition);

}

.menu a:hover::after,

.menu a.current::after{

    width:100%;

}

.menu a.current{

    color:var(--primary);

}

.mobile-btn{

    display:none;

    font-size:30px;

    cursor:pointer;

}


/* ===========================
   HERO
=========================== */

.hero{

    position:relative;

    min-height:100vh;

    display:flex;

    align-items:center;

    justify-content:center;

    overflow:hidden;

    background:

    linear-gradient(

        rgba(8,26,51,.55),

        rgba(8,26,51,.55)

    ),

    url("../images/hero.jpg")

    center center/cover no-repeat;

}

.overlay{

    position:absolute;

    inset:0;

    background:

    linear-gradient(

        rgba(18,62,117,.30),

        rgba(18,62,117,.30)

    );

}

.hero-container{

    position:relative;

    z-index:2;

}

.hero-content{

    max-width:760px;

    color:white;

    text-align:center;

}

.hero h1{

    font-size:clamp(52px,8vw,82px);

    line-height:1.05;

    margin-bottom:15px;

}

.hero h2{

    font-size:28px;

    color:#cfe4ff;

    font-weight:500;

    margin-bottom:30px;

}

.hero p{

    font-size:22px;

    margin-bottom:45px;

    color:#eef4ff;

}


/* ===========================
   BUTTONS
=========================== */

.hero-buttons{

    display:flex;

    gap:20px;

    flex-wrap:wrap;

}

.btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:18px 42px;

    border-radius:12px;

    transition:var(--transition);

    font-weight:600;

}

.btn-primary{

    background:var(--primary);

    color:white;

}

.btn-primary:hover{

    transform:translateY(-5px);

    background:#0f74d8;

}

.btn-secondary{

    border:2px solid white;

    color:white;

}

.btn-secondary:hover{

    background:white;

    color:var(--secondary);

}

/* ==========================================================
   Teil 2
   Leistungen
   Warum SmartWerk
   Über mich
   Kontakt
========================================================== */


/* ===========================
   LEISTUNGEN
=========================== */

.cards{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(340px,1fr));

    gap:35px;

}

.card{

    background:var(--white);

    border-radius:var(--radius);

    overflow:hidden;

    box-shadow:var(--shadow);

    transition:var(--transition);

}

.card:hover{

    transform:translateY(-8px);

    box-shadow:

    0 25px 60px rgba(0,0,0,.12);

}

.card img{

    width:100%;

    height:260px;

    object-fit:cover;

    transition:.45s ease;

}

.card:hover img{

    transform:scale(1.03);

}

.card-content{

    padding:30px;

}

.card-content h3{

    color:var(--secondary);

    font-size:28px;

    margin-bottom:18px;

}

.card-content p{

    color:#666;

    margin-bottom:25px;

    line-height:1.8;

}

.card-content a{

    color:var(--primary);

    font-weight:600;

    display:inline-flex;

    align-items:center;

    gap:10px;

    transition:var(--transition);

}

.card-content a:hover{

    gap:16px;

}


/* ===========================
   WARUM SMARTWERK
=========================== */

#warum{

    background:white;

}

.features{

    display:grid;

    grid-template-columns:

    repeat(auto-fit,minmax(280px,1fr));

    gap:35px;

}

.feature{

    display:flex;

    align-items:flex-start;

    gap:20px;

}

.feature i{

    width:65px;

    height:65px;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    background:var(--primary);

    color:white;

    font-size:24px;

    flex-shrink:0;

}

.feature h3{

    color:var(--secondary);

    margin-bottom:8px;

    font-size:22px;

}

.feature p{

    color:#666;

}


/* ===========================
   ÜBER MICH
=========================== */

.about{

    display:grid;

    grid-template-columns:

    1fr 1fr;

    gap:70px;

    align-items:center;

}

.about img{

    border-radius:20px;

    box-shadow:var(--shadow);

    width:100%;

}

.about-content h2{

    color:var(--secondary);

    font-size:44px;

    margin-bottom:25px;

}

.about-content p{

    margin-bottom:20px;

    color:#555;

    font-size:18px;

}


/* ===========================
   KONTAKT
=========================== */

#kontakt{

    background:#eef4fb;

}

.contact{

    display:grid;

    grid-template-columns:

    repeat(auto-fit,minmax(320px,1fr));

    gap:35px;

}

.contact-card{

    background:white;

    border-radius:20px;

    padding:35px;

    box-shadow:var(--shadow);

    transition:var(--transition);

    border-top:5px solid var(--primary);

}

.contact-card:hover{

    transform:translateY(-8px);

}

.contact-card h3{

    color:var(--secondary);

    margin-bottom:25px;

    font-size:28px;

}

.contact-card p{

    margin-bottom:16px;

    color:#555;

}

.contact-card i{

    color:var(--primary);

    margin-right:12px;

    width:20px;

}

.contact-card .btn{

    margin-top:15px;

}

/* ==========================================================
   Teil 3
   Footer
   Scroll Animation
   Scroll Button
   Mobile
========================================================== */


/* ===========================
   FOOTER
=========================== */

footer{

    background:var(--secondary);

    color:white;

    padding:80px 0 25px;

}

.footer-grid{

    display:grid;

    grid-template-columns:

    repeat(auto-fit,minmax(250px,1fr));

    gap:45px;

    margin-bottom:50px;

}

.footer-logo{

    height:65px;

    margin-bottom:20px;

}

.footer-grid h3{

    margin-bottom:18px;

    color:white;

}

.footer-grid p{

    color:rgba(255,255,255,.85);

}

.footer-grid a{

    display:block;

    margin-bottom:12px;

    color:rgba(255,255,255,.85);

    transition:var(--transition);

}

.footer-grid a:hover{

    color:white;

    transform:translateX(6px);

}

.copyright{

    border-top:1px solid rgba(255,255,255,.15);

    padding-top:25px;

    text-align:center;

    font-size:15px;

    color:rgba(255,255,255,.75);

}


/* ===========================
   SCROLL BUTTON
=========================== */

.scroll-top{

    position:fixed;

    right:30px;

    bottom:30px;

    width:60px;

    height:60px;

    border:none;

    border-radius:50%;

    background:var(--primary);

    color:white;

    cursor:pointer;

    font-size:20px;

    box-shadow:0 12px 30px rgba(0,0,0,.18);

    transition:var(--transition);

    opacity:0;

    visibility:hidden;

    z-index:999;

}

.scroll-top.visible{

    opacity:1;

    visibility:visible;

}

.scroll-top:hover{

    transform:translateY(-6px);

    background:#0f74d8;

}


/* ===========================
   SCROLL ANIMATION
=========================== */

.hidden{

    opacity:0;

    transform:translateY(50px);

    transition:

    opacity .8s ease,

    transform .8s ease;

}

.show{

    opacity:1;

    transform:none;

}


/* ===========================
   MOBILE MENU
=========================== */

@media(max-width:991px){

.mobile-btn{

display:block;

}

.menu{

position:fixed;

top:88px;

right:-100%;

width:280px;

height:calc(100vh - 88px);

background:white;

display:flex;

flex-direction:column;

align-items:center;

justify-content:flex-start;

padding-top:50px;

gap:35px;

transition:.35s;

box-shadow:-10px 0 35px rgba(0,0,0,.08);

}

.menu.active{

right:0;

}

.about{

grid-template-columns:1fr;

}

.hero-content{

text-align:center;

margin:auto;

}

.hero-buttons{

justify-content:center;

}

}


/* ===========================
   TABLET
=========================== */

@media(max-width:768px){

.hero{

padding:120px 0;

}

.hero h1{

font-size:54px;

}

.hero h2{

font-size:24px;

}

.hero p{

font-size:19px;

}

.section-title h2{

font-size:38px;

}

.cards{

grid-template-columns:1fr;

}

.features{

grid-template-columns:1fr;

}

.contact{

grid-template-columns:1fr;

}

.hero-buttons{

flex-direction:column;

}

.btn{

width:100%;

}

section{

padding:80px 0;

}

}


/* ===========================
   SMARTPHONE
=========================== */

@media(max-width:500px){

.navbar .container{

height:75px;

}

.logo img{

height:60px;

}

.hero h1{

font-size:42px;

}

.hero h2{

font-size:22px;

}

.hero p{

font-size:17px;

}

.section-title h2{

font-size:34px;

}

.about-content h2{

font-size:34px;

}

.card-content{

padding:24px;

}

.contact-card{

padding:25px;

}

.footer-grid{

text-align:center;

}

.footer-logo{

margin:auto auto 20px;

}

}


/* ===========================
   NAVBAR SCROLLED
=========================== */

.navbar.scrolled{

background:white;

box-shadow:0 12px 35px rgba(0,0,0,.08);

}

.navbar.scrolled .container{

height:78px;

}


/* ===========================
   SELECTION
=========================== */

::selection{

background:var(--primary);

color:white;

}


/* ===========================
   SCROLLBAR
=========================== */

::-webkit-scrollbar{

width:10px;

}

::-webkit-scrollbar-track{

background:#eef2f8;

}

::-webkit-scrollbar-thumb{

background:var(--primary);

border-radius:20px;

}

::-webkit-scrollbar-thumb:hover{

background:#0f74d8;

}

/* ===========================
   404
=========================== */

.error-page{

    min-height:100vh;

    display:flex;

    align-items:center;

    justify-content:center;

    text-align:center;

    background:#F7F9FC;

}

.error-logo{

    width:180px;

    margin:auto auto 40px;

}

.error-page h1{

    font-size:140px;

    color:var(--primary);

    line-height:1;

}

.error-page h2{

    font-size:42px;

    color:var(--secondary);

    margin:20px 0;

}

.error-page p{

    max-width:550px;

    margin:0 auto 40px;

    color:#666;

}