:root {
    --primary: #2563eb;
    --dark: #1f2933;
    --light: #f9fafb;

    --shadow:
        0 10px 25px rgba(0,0,0,0.08);

    --radius: 14px;
}

/* RESET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BODY */

body {
    font-family: "Segoe UI", sans-serif;

    background: var(--light);

    color: #333;

    line-height: 1.6;
}

/* HEADER */

header {
    background: var(--dark);

    color: white;

    padding: 24px 40px;

    box-shadow:
        0 2px 10px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 1.8rem;
}

/* NAVIGATION */

nav ul {
    list-style: none;

    display: flex;

    gap: 24px;

    margin-top: 16px;

    flex-wrap: wrap;
}

nav ul li a {
    color: white;

    text-decoration: none;

    font-weight: 500;

    padding-bottom: 4px;

    transition:
        color 0.2s ease,
        border-color 0.2s ease;
}

nav ul li a:hover {
    color: #dbeafe;
}

/* AKTIVER MENÜPUNKT */

body.home nav a.home,
body.gallery nav a.gallery,
body.contact nav a.contact,
body.impressum nav a.impressum,
body.datenschutz nav a.datenschutz {
    border-bottom: 3px solid var(--primary);
}

/* MAIN */

main {
    max-width: 1400px;

    margin: 40px auto;

    padding: 0 20px;
}

/* SEKTIONEN */

section {
    background: white;

    padding: 40px;

    border-radius: var(--radius);

    box-shadow: var(--shadow);

    margin-bottom: 40px;
}

/* HERO */

.hero-text {
    width: min(90%, 1200px);

    margin: 20px auto 10px auto;

    padding: clamp(10px, 2vw, 30px);

    text-align: center;
}

.hero-text-top h2 {
    font-size: clamp(2rem, 4vw, 4rem);

    margin-bottom: 10px;

    line-height: 1.1;
}

.hero-text p {
    font-size: clamp(1rem, 1.5vw, 1.3rem);

    color: #555;
}

.hero-image {
    height: 65vh;

    position: relative;

    overflow: hidden;

    border-radius: var(--radius);

    display: flex;

    align-items: center;

    justify-content: center;
}

.hero-image img {
    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;
}

/* GALERIE */

.gallery-item {
    display: grid;

    grid-template-columns: repeat(6, 1fr);

    gap: 24px;

    margin-top: 30px;
}

.gallery-item a {
    display: block;

    width: 100%;

    text-decoration: none;
}

/* BILDBOX */

.img-box {
    position: relative;

    overflow: hidden;

    border-radius: var(--radius);

    aspect-ratio: 1 / 1;

    background: #eee;

    box-shadow: var(--shadow);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.img-box:hover {
    transform: translateY(-4px);

    box-shadow:
        0 16px 32px rgba(0,0,0,0.15);
}

.img-box img {
    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

    transition: transform 0.3s ease;
}

.img-box:hover img {
    transform: scale(1.05);
}

/* OVERLAY */

.img-box span {
    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    padding: 20px;

    background: rgba(0,0,0,0.45);

    color: white;

    font-size: 1.2rem;

    font-weight: 600;

    opacity: 0;

    transition: opacity 0.3s ease;

    z-index: 3;
}

.img-box:hover span {
    opacity: 1;
}

/* PREIS BADGE */

.price-badge {
    position: absolute;

    bottom: 18px;

    left: 50%;

    transform: translateX(-50%);

    background: rgba(255,255,255,0.16);

    backdrop-filter: blur(12px);

    border: 1px solid rgba(255,255,255,0.2);

    color: white;

    padding: 14px 24px;

    border-radius: 18px;

    font-size: 1.1rem;

    font-weight: 700;

    text-align: center;

    box-shadow:
        0 8px 22px rgba(0,0,0,0.35);

    z-index: 5;

    min-width: 140px;
}

/* BUTTON */

button,
.back-btn,
button[type="submit"] {
    background: var(--primary);

    color: white;

    border: none;

    padding: 12px 22px;

    border-radius: 8px;

    cursor: pointer;

    font-size: 1rem;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

button:hover,
.back-btn:hover,
button[type="submit"]:hover {
    background: #1d4ed8;

    transform: translateY(-1px);
}

/* KONTAKTFORMULAR */

.contact-section {
    max-width: 700px;

    margin: auto;
}

.contact-section h2 {
    text-align: center;

    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;

    margin-bottom: 8px;

    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;

    padding: 12px;

    border: 1px solid #ccc;

    border-radius: 8px;

    font-size: 1rem;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 4px rgba(37,99,235,0.15);

    outline: none;
}

/* FOOTER */

footer {
    margin-top: 60px;

    background: var(--dark);

    color: white;

    text-align: center;

    padding: 24px;
}

footer a {
    color: #93c5fd;

    text-decoration: none;
}

footer a:hover {
    color: white;
}

/* RESPONSIVE */

@media (max-width: 1100px) {

    .gallery-item {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 700px) {

    header {
        padding: 20px;
    }

    nav ul {
        gap: 14px;
    }

    section {
        padding: 24px;
    }

    .gallery-item {
        grid-template-columns: 1fr;
    }

    .hero-image {
        height: 45vh;
    }

}

/* =========================================
   AUSWAHL-KACHELN
========================================= */

.selection-section h1 {
    text-align: center;

    margin-bottom: 30px;

    font-size: 2.2rem;
}

.selection-cards {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 30px;

    max-width: 1000px;

    margin: auto;
}

/* EINZELNE KARTE */

.selection-card {
    position: relative;

    overflow: hidden;

    border-radius: 18px;

    aspect-ratio: 4 / 3;

    text-decoration: none;

    background: #eee;

    box-shadow:
        0 10px 25px rgba(0,0,0,0.08);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.selection-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 18px 40px rgba(0,0,0,0.18);
}

/* BILD */

.selection-card img {
    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

    transition: transform 0.35s ease;
}

.selection-card:hover img {
    transform: scale(1.05);
}

/* TITEL */

.selection-title {
    position: absolute;

    left: 50%;

    bottom: 20px;

    transform: translateX(-50%);

    background: rgba(0,0,0,0.65);

    color: white;

    padding: 14px 24px;

    border-radius: 14px;

    font-size: 1rem;

    font-weight: 600;

    backdrop-filter: blur(8px);

    text-align: center;

    z-index: 5;

    width: max-content;

    max-width: 90%;
}

/* RESPONSIVE */

@media (max-width: 800px) {

    .selection-cards {
        grid-template-columns: 1fr;
    }

}
/* =========================================
   HOMEPAGE HERO
========================================= */

/* OBERER TEXT */

.homepage-hero-top {
    width: min(90%, 1100px);

    margin: 30px auto 20px auto;

    text-align: center;
}

.homepage-hero-top h2 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);

    font-weight: 700;

    color: #1f2933;

    margin-bottom: 18px;

    line-height: 1.1;
}

.homepage-hero-top h3 {
    font-size: clamp(1.1rem, 2vw, 1.5rem);

    font-weight: 400;

    color: #555;

    line-height: 1.5;
}

/* HERO BILD */

.homepage-hero-image {
    width: 100%;

    display: flex;

    justify-content: center;

    align-items: center;

    margin: 20px auto 30px auto;
}

.homepage-hero-image img {
    width: min(85vw, 1000px);

    max-height: 70vh;

    object-fit: contain;

    display: block;

    border-radius: 20px;

    box-shadow:
        0 12px 30px rgba(0,0,0,0.12);
}

/* UNTERER TEXT */

.homepage-hero-bottom {
    width: min(90%, 1000px);

    margin: auto;

    text-align: center;
}

.homepage-hero-bottom p {
    font-size: 1.1rem;

    color: #666;

    line-height: 1.7;
}

/* RESPONSIVE */

@media (max-width: 800px) {

    .homepage-hero-top {
        margin-top: 20px;
    }

    .homepage-hero-image img {
        width: 95vw;

        max-height: 50vh;
    }

}