/* Basislayout für Glanz & Schutz Service */
:root {
    --bg: #ffffff;
    --surface: #f1f1f1;
    --primary: #1f3d7a;
    --accent: #e09b33;
    --text: #000000;
    --muted: #302f2f;
    --radius: 16px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    min-height: 100%;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg);
    color: var(--text);
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    width: min(1100px, calc(100% - 2rem));
    margin: 0 auto;
}

.site-header {
    background: linear-gradient(135deg, #234c8d 0%, #1f3d7a 100%);
    color: white;
    padding: 2.5rem 0;
}

.site-header h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(2rem, 4vw, 3rem);
}

.site-header p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
}

.site-navigation {
    background: var(--surface);
    border-bottom: 2px solid #e0e0e0;
    margin-top: -8rem;
}

.site-navigation .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem 0;
    justify-content: center;
}

.site-navigation a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    padding: 0.85rem 1rem;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}

.site-navigation a:hover,
.site-navigation a:focus-visible {
    background: rgba(32, 61, 122, 0.1);
    outline: none;
}

.site-main {
    flex: 1;
    padding: 3rem 0;
}

.hero {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 4rem 2rem;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 0rem;
}

.hero h2 {
    margin-top: 0rem;
    font-size: clamp(1.75rem, 3vw, 2.5rem);    text-align: center;}

.hero p {
    margin: 1rem auto 0;
    color: var(--muted);
    max-width: 760px;
    text-align: center;
}

.main-nav {
    margin-top: -40rem;     
    padding: 0;
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.nav-card {
    display: block;
    background: #ffffff;
    padding: 2rem;
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
    transition: all 0.3s ease;
}

.nav-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);
    transform: translateY(-4px);
}

.nav-card h3 {
    margin: 0 0 0.75rem;
    color: var(--primary);
    font-size: 1.25rem;
}

.nav-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.site-footer {
    background: var(--primary);
    color: white;
    padding: 1.75rem 0;
    margin-top: 20rem;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    flex: 1;
}

.footer-right {
    flex-shrink: 0;
}

.google-reviews-widget {
    text-align: center;
    color: white;
}

.stars {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.rating-info {
    margin-bottom: 0.75rem;
}

.rating {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffd47f;
}

.reviews-count {
    font-size: 0.9rem;
    color: rgba(253, 253, 253, 0.8);
    margin-left: 0.5rem;
}

.review-link {
    color: #ffd47f;
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: 2px solid #ffd47f;
    border-radius: 50px;
    background: rgba(255, 212, 127, 0.1);
    transition: all 0.3s ease;
    display: inline-block;
}

.review-link:hover {
    background: #ffd47f;
    color: var(--primary);
    transform: translateY(-2px);
}
.site-footer p {
    margin: 0.35rem 0;
    color: rgba(255, 255, 255, 0.92);
}

.site-footer a {
    color: #ffd47f;
    text-decoration: none;
}

/* Inhaltsseiten Styles */
.content-section {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

.content-section h2 {
    color: var(--primary);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-top: 0;
    margin-bottom: 1rem;
    border-bottom: 3px solid var(--accent);
    padding-bottom: 0.75rem;
}

.content-section h3 {
    color: var(--primary);
    font-size: 1.25rem;
    margin-top: 1.5rem;
}

.content-section p {
    color: var(--muted);
    line-height: 1.8;
}

/* Dienstleistungen */
.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.service-item {
    background: #e6e6e6;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent);
    transition: all 0.3s ease;
}

.service-item:hover {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
    transform: translateY(-2px);
}

.service-item h3 {
    margin: 0 0 0.75rem;
    color: var(--primary);
    font-size: 1.1rem;
}

.service-item p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--muted);
}

/* Über uns */
.about-content ul {
    list-style: none;
    padding: 0;
}

.about-content li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--muted);
    line-height: 1.8;
}

.about-content li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Galerie */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);
}

.gallery-placeholder {
    background: linear-gradient(135deg, #234c8d 0%, #1f3d7a 100%);
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
}

.gallery-caption {
    padding: 1rem;
    background: var(--surface);
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    text-align: center;
}

/* Kontakt */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 2rem 0;
}

.contact-info, .contact-form {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item h4 {
    margin: 0 0 0.75rem;
    color: var(--primary);
}

.contact-item p {
    margin: 0;
    color: var(--muted);
}

.contact-item a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Formular */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(224, 159, 62, 0.1);
}

.submit-btn {
    background: linear-gradient(135deg, #234c8d 0%, #1f3d7a 100%);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
}

/* Zurück Button */
.back-button {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.back-button a {
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--accent);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.back-button a:hover {
    background: var(--accent);
    color: white;
}

@media (max-width: 720px) {
    .site-navigation .nav-links {
        justify-content: center;
    }

    .hero {
        padding: 1.5rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
}

/* ================= HEADER FIX ================= */

/* HEADER */
.site-header {
    background: linear-gradient(135deg, #234c8d 0%, #1f3d7a 100%);
    color: white;
    padding: 40px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* TEXT LINKS */
.site-header .container {
    margin: 0;
}

/* BUTTONS RECHTS */
.header-buttons {
    display: flex;
    gap: 15px;
    margin-left: auto;
}

/* BUTTON STYLE */
.top-button {
    padding: 10px 18px;
    border: 2px solid #e09b33;
    color: #e09b33;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
}

.top-button:hover {
    background-color: #e09b33;
    color: white;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* sorgt dafür, dass Buttons oben sind */
}

/* verhindert, dass Text zu breit wird */
.header-text {
    max-width: 70%;
}

/* Buttons rechts */
.header-buttons {
    display: flex;
    gap: 10px;
}
/* ===== SAUBERER MOBILE FIX ===== */
@media (max-width: 768px) {

    /* HEADER */
    .site-header {
        padding: 20px;
    }

    .site-header h1 {
        font-size: 1.8rem;
        line-height: 1.2;
        word-break: normal;   /* verhindert dieses kaputte Umbrechen */
    }

    .site-header p {
        font-size: 0.9rem;
    }

    /* WICHTIG: Container sauber */
    .site-header .container {
        display: block;
    }

    /* BUTTONS */
    .header-buttons {
        display: flex;
        gap: 10px;
        margin-top: 15px;
        flex-wrap: wrap; /* verhindert rauslaufen */
    }

    .top-button {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    /* HERO */
    .hero {
        padding: 2rem 1rem;
    }

    /* KARTEN */
    .nav-grid {
        grid-template-columns: 1fr; /* erstmal sauber untereinander */
    }
}
/* ================= MOBILE FIX FINAL ================= */
@media (max-width: 768px) {

    .site-header {
        padding: 20px;
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .header-text {
        max-width: 100%;
    }

    .site-header h1 {
        font-size: 1.8rem;
        line-height: 1.2;
        word-break: break-word;
    }

    .header-buttons {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .top-button {
        width: 100%;
        text-align: center;
    }

    .hero {
        padding: 2rem 1rem;
        min-height: auto;
    }

    .nav-grid {
        grid-template-columns: 1fr;
    }

    .nav-card {
        padding: 1.5rem;
    }
}
/* ================= FINAL FIX (ÜBERSCHREIBT ALLES PROBLEM) ================= */

.hero {
    min-height: auto !important;
    padding-top: 2rem !important;
}

.main-nav {
    margin-top: 0 !important;
}

.site-navigation {
    margin-top: 0 !important;
}

.site-footer {
    margin-top: 2rem !important;
}

/* verhindert Überlappungen */
.nav-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* MOBILE */
@media (max-width: 768px) {

    .nav-grid {
        grid-template-columns: 1fr;
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .header-buttons {
        width: 100%;
        flex-direction: column;
    }

    .top-button {
        width: 100%;
        text-align: center;
    }

    .site-header h1 {
        font-size: 1.8rem;
        line-height: 1.2;
        word-break: break-word;
    }
}
/* ================= FORMULAR FIX ================= */

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    font-family: inherit;
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #e09b33;
    box-shadow: 0 0 0 2px rgba(224,155,51,0.2);
}

.submit-btn {
    margin-top: 10px;
}