/* ================================
   GRUNDSTIL / FARBEN
================================ */

:root {
    --orange: #F29F05;
    --orange-dark: #d58903;
    --blue: #0A2540;
    --blue-light: #132c50;
    --border-light: #e0e0e0;
    --bg-light: #f7f8fa;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--blue);
    background: white;
    line-height: 1.6;
}

/* ================================
   LAYOUT
================================ */

.wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ================================
   HEADER
================================ */

header {
    background-color: #fff;
    border-bottom: 1px solid var(--border-light);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 0;
}

.logo {
    display: flex;
    align-items: center;
}

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

/* NAVIGATION */

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.2rem;
}

nav a {
    text-decoration: none;
    color: var(--blue);
    font-weight: 600;
    font-size: 0.95rem;
}

nav a:hover {
    color: var(--orange);
}

/* ================================
   HERO
================================ */

.hero {
    position: relative;
    min-height: 420px;
    color: #ffffff;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../img/t5-header.jpg") center/cover no-repeat;
    z-index: -2;
}

/* leicht wärmeres dunkles Overlay */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(10, 37, 64, 0.60); /* blau-angehaucht */
    z-index: -1;
}

.hero-inner {
    width: 100%;
    padding: 3rem 1rem;
}

.hero h1 {
    font-size: 2.4rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.1rem;
}

/* ================================
   BUTTONS
================================ */

.btn {
    display: inline-block;
    padding: 0.75rem 1.6rem;
    border-radius: 999px;
    background-color: var(--orange);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn:hover {
    background-color: var(--orange-dark);
}

.btn-secondary {
    background-color: var(--blue-light);
}

.btn-secondary:hover {
    background-color: var(--blue);
}

/* ================================
   SECTIONS
================================ */

section {
    padding: 3rem 0;
}

section h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--blue);
}

.text-center {
    text-align: center;
}

/* ================================
   SERVICE-KACHELN
================================ */

.services {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.card {
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-light);
    background-color: #fff;
    text-align: center;
    transition: transform 0.15s ease;
}

.card:hover {
    transform: translateY(-4px);
}

.card h3 {
    color: var(--blue-light);
}

/* ================================
   KONTAKTBLOCK
================================ */

.contact-block {
    background-color: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
}

.contact-block a {
    color: var(--blue);
}

/* ================================
   FORMULARE
================================ */

form {
    max-width: 700px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

label {
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: var(--blue);
}

input[type="text"],
input[type="email"],
textarea {
    padding: 0.6rem;
    border-radius: 0.4rem;
    border: 1px solid #cfd2dc;
    font: inherit;
}

textarea {
    min-height: 130px;
    resize: vertical;
}

.error {
    color: #b00020;
    font-size: 0.85rem;
}

.success {
    color: #0a7a18;
    font-size: 0.95rem;
}

/* ================================
   FOOTER
================================ */

footer {
    margin-top: 2rem;
    border-top: 1px solid var(--border-light);
    padding: 1.5rem 0;
    text-align: center;
    color: var(--blue);
    background: #fff;
}

footer a {
    color: var(--blue);
    text-decoration: none;
}

footer a:hover {
    color: var(--orange);
}

/* ================================
   MAPS CONSENT
================================ */

.map-container {
    max-width: 800px;
    margin: 0 auto;
}

.map-placeholder {
    border: 1px solid var(--border-light);
    border-radius: 0.75rem;
    background-color: var(--bg-light);
    padding: 1.5rem;
    text-align: center;
}

.map-frame {
    width: 100%;
    min-height: 320px;
    border: 0;
    border-radius: 0.75rem;
    overflow: hidden;
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 800px) {

    .header-inner {
        flex-direction: column;
        gap: 0.5rem;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

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

    .hero {
        min-height: 320px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }
}
