/* ===== CSS VARIABLEN ===== */
:root {
    --bg: #ffffff;
    --text: #575760;
    --primary: #2563eb;
    --card: #f1f5f9;
    --links: #324c6b;
    --links-actual: #000000;
}

/* ===== DARK MODE ===== */
.darkmode {
    /*--bg: #0f172a;*/
    --bg: #02122d;
    --text: #f7f8f9;
    --card: #1e293b;
    --links: #a4bbd6;
    --links-actual: #000000;
}

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: Exo, sans-serif;
    	font-weight: 400;
	background: var(--bg);
	color: var(--text);
	transition: background 0.3s, color 0.3s;
}

h1, h2, h3 {
	font-size: 1.5rem;
	font-weight: 300;
	margin-top: 3rem;
	margin-bottom: 1rem;
}

p.text {
	font-size: 1.05rem;
	line-height: 1.6;
	text-align: left;
	margin-bottom: 2rem;
}

a {
	color: var(--links);
	text-decoration: none;
	border-bottom: 1px dotted var(--links);
	padding-bottom: 1px;
}

a:hover,
a:active {
	color: var(--links-actual);
	border-bottom: 2px solid var(--links-actual);
	background-color: #fbf2cc;
}

/* ===== HEADER ===== */
.header {
    position: sticky;
    top: 0;
    background: var(--bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
}

.logo {
    height: 40px;
    width: auto;
    transition: opacity 0.25s ease;
}

.header nav a {
    margin: 0 15px;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
}

.header nav a:hover {
    color: var(--primary);
}

/* Toggle Button */
#darkToggle {
    border: none;
    background: var(--card);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}

/* ===== HERO ===== */
.hero {
    height: 90vh;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;   /* Inhalt nach unten */
    align-items: center;

    text-align: center;
    padding: 60px 20px;
    color: white;

    background:
        linear-gradient(
            rgba(15,23,42,0.15),
            rgba(15,23,42,0.15)
        ),
        url("../images/20200528-8105-2_HB.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/*
.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
}
.btn {
    margin-top: 25px;
    padding: 14px 28px;
    background: white;
    color: #2563eb;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
}
*/
/* ===== SERVICES ===== */
.services {
    height: 90vh;
    
    display: flex;
    flex-direction: column;
    justify-content: flex-end;   /* Inhalt nach unten */
    align-items: center;
    
    padding: 80px 20px;
    text-align: center;
}

/*
.services h2,
.services h3 {
    margin-bottom: 2rem;
}
*/
.description {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 30px;
}



.grid {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 30px;
}

.card {
    background: var(--card);
    padding: 30px;
    border-radius: 12px;
    transition: transform 0.3s;
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

/*
.card:hover {
    transform: translateY(-8px);
}
*/
/* ===== CONTACT ===== */
.contact {
    background: var(--card);
    text-align: center;
    padding: 70px 20px;
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 25px;
}

/* ===== MAILSCHUTZ ===== */
  .email>ins:before {content: "@"; text-decoration: none}
  .email ins, .email del {text-decoration: none}
  .email>del {display: none}
  *:first-child+html .email>del {display:inline}  /* Workaround fuer IE 7 */

/* ===== RESPONSIVE ===== */
@media(max-width:900px){
    .grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media(max-width:600px){

    .header {
        flex-direction: column;
        gap: 15px;
    }

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

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