/* ==========================================================================
   Cars & Classics – Stylesheet
   Eigenständig, ohne Framework. Schriften werden lokal vom eigenen Server
   geladen (keine Verbindung zu Google Fonts o. ä.).
   ========================================================================== */

/* ---------- Schriften (lokal, SIL Open Font License) ---------- */
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/open-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Open Sans';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/open-sans-latin-400-italic.woff2') format('woff2');
}
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/open-sans-latin-600-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/open-sans-latin-700-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/roboto-latin-400-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/roboto-latin-500-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/roboto-latin-700-normal.woff2') format('woff2');
}

/* ---------- Variablen ---------- */
:root {
    --navy: #181e36;
    --orange: #ff8400;
    --gold: #e6a756;
    --text: #212529;
    --heading: #424242;
    --card: rgba(255, 255, 255, 0.85);
    --radius: 0.25rem;
    --font-text: 'Open Sans', Arial, Helvetica, sans-serif;
    --font-head: 'Roboto', Arial, Helvetica, sans-serif;
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-text);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text);
    background: linear-gradient(rgba(24, 30, 54, 0.45), rgba(24, 30, 54, 0.99)), url('../img/backgnd.jpg');
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.5rem;
}

h3 { font-size: 1.5rem; }
h4 { font-size: 1.15rem; margin-top: 1.5rem; }

p {
    margin: 0 0 1rem;
    line-height: 1.75;
}

ul {
    margin: 0 0 1rem;
    padding-left: 2rem;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

a {
    color: var(--orange);
    text-decoration-line: none;
}

a:hover,
a:focus {
    color: #c96800;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Layout ---------- */
.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

@media (min-width: 576px)  { .container { max-width: 540px; } }
@media (min-width: 768px)  { .container { max-width: 720px; } }
@media (min-width: 992px)  { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }

.narrow {
    margin: 0 auto;
}

@media (min-width: 992px)  { .narrow { width: 83.333%; } }
@media (min-width: 1200px) { .narrow { width: 75%; } }

.page-section {
    margin: 5rem 0;
}

.cta {
    padding: 5rem 0;
    background-color: var(--navy);
}

.card {
    background-color: var(--card);
    border-radius: var(--radius);
    padding: 3rem;
}

@media (max-width: 575px) {
    .card { padding: 1.5rem; }
}

/* Karte mit Doppelrahmen (Startseite „Unser Angebot") */
.card-framed {
    position: relative;
    margin: 0.5rem;
}

.card-framed::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    bottom: -0.5rem;
    left: -0.5rem;
    right: -0.5rem;
    border: 0.25rem solid var(--card);
    border-radius: 0.5rem;
    pointer-events: none;
}

.rounded {
    border-radius: var(--radius);
}

/* ---------- Kopfbereich ---------- */
.site-heading {
    display: none;
    margin: 5rem 0;
    font-family: var(--font-head);
    text-align: center;
    text-transform: uppercase;
    line-height: 1;
    color: #fff;
}

@media (min-width: 992px) {
    .site-heading { display: block; }
}

.site-heading-lower {
    font-size: 5rem;
    font-weight: 500;
    line-height: 4rem;
    color: #eee;
}

.site-heading-upper {
    display: block;
    padding-top: 1rem;
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 500;
    color: var(--orange);
}

/* ---------- Navigation ---------- */
.main-nav {
    font-family: var(--font-head);
    background-color: var(--navy);
    padding: 0.5rem 0;
}

.main-nav .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    padding: 0.3rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--gold);
}

.nav-toggle {
    padding: 0.25rem 0.75rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    cursor: pointer;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
    display: block;
    width: 1.5rem;
    height: 2px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 1px;
}

.nav-toggle-icon {
    position: relative;
    margin: 0.7rem 0;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
    content: '';
    position: absolute;
    left: 0;
}

.nav-toggle-icon::before { top: -0.5rem; }
.nav-toggle-icon::after  { top: 0.5rem; }

.nav-list {
    display: none;
    flex-basis: 100%;
    margin: 0;
    padding: 0.5rem 0;
    list-style: none;
}

.main-nav.is-open .nav-list {
    display: block;
}

.nav-list a {
    display: block;
    padding: 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
}

.nav-list a[aria-current="page"] {
    color: var(--orange);
}

@media (min-width: 992px) {
    .main-nav {
        padding: 1.5rem 0;
    }

    .nav-brand,
    .nav-toggle {
        display: none;
    }

    .nav-list,
    .main-nav.is-open .nav-list {
        display: flex;
        justify-content: center;
        padding: 0;
    }

    .nav-list li {
        padding: 0 1.5rem;
    }

    .nav-list a:hover {
        color: rgba(255, 255, 255, 0.4);
    }

    .nav-list a[aria-current="page"]:hover {
        color: var(--orange);
    }
}

/* ---------- Überschriften in Inhaltsboxen ---------- */
.section-heading {
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.section-heading .upper {
    display: block;
    font-size: 1rem;
    font-weight: 700;
}

.section-heading .lower {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading);
}

.section-heading .accent {
    display: block;
    margin-top: 0.5rem;
    font-size: 2rem;
    font-weight: 500;
    color: var(--orange);
}

.label {
    display: block;
    padding: 1rem 0 0.5rem;
    font-family: var(--font-head);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--heading);
}

/* ---------- Buttons ---------- */
.btn {
    display: block;
    font-family: inherit;
    padding: 1.5rem 2rem;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    background-color: var(--navy);
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    box-shadow: 0 3px 3px 0 rgba(33, 37, 41, 0.1);
    cursor: pointer;
}

.btn:hover,
.btn:focus {
    color: #fff;
    background-color: #232b4d;
}

.btn-small {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* ---------- Startseite ---------- */
.intro-img {
    display: block;
    width: 100%;
    margin: 0 auto 1rem;
}

@media (min-width: 992px) {
    .intro-img { margin-bottom: 0; }
}

/* ---------- Über uns ---------- */
.about-img {
    display: block;
    margin: 0 auto 1rem;
    border-radius: var(--radius);
}

@media (min-width: 992px) {
    .about-img {
        position: relative;
        z-index: 0;
        margin-bottom: 0;
    }

    .about-content {
        position: relative;
        z-index: 1;
        margin-top: -5rem;
    }
}

/* ---------- Leistungen / Jobs (überlappende Boxen) ---------- */
.feature-title,
.feature-text {
    display: flex;
}

.feature-title.right,
.feature-text.right {
    justify-content: flex-end;
}

.feature-title .card {
    padding: 3rem;
}

.feature-title .section-heading {
    margin: 0;
}

.feature-img {
    display: block;
    margin: 0 auto 1rem;
    border-radius: var(--radius);
}

@media (min-width: 992px) {
    .feature-title {
        position: relative;
        z-index: 1;
        margin-bottom: -3rem;
    }

    .feature-img {
        position: relative;
        z-index: 0;
        max-width: 60vw;
        margin-bottom: 0;
    }

    .feature-text {
        position: relative;
        z-index: 1;
        margin-top: -3rem;
    }

    .feature-text .card {
        max-width: 50vw;
    }
}

.job + .job {
    margin-top: 5rem;
}

/* ---------- Kontakt ---------- */
.hours {
    margin: 0 0 3rem;
    padding: 0;
    list-style: none;
    font-size: 0.9rem;
}

.hours li {
    display: flex;
    justify-content: space-between;
    padding-bottom: 0.25rem;
    margin-bottom: 1rem;
    font-style: italic;
    border-bottom: 1px solid rgba(230, 167, 86, 0.5);
}

.hours li.today {
    font-weight: 700;
    color: #c98a33;
}

@media (min-width: 992px) {
    .hours {
        width: 50%;
        font-size: 1.1rem;
    }
}

/* Zwei-Klick-Lösung für Google Maps */
.map-box {
    position: relative;
    padding-bottom: 56%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: #dfe1e7;
}

.map-box iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.map-consent {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

.map-consent p {
    max-width: 34rem;
}

@media (max-width: 575px) {
    .map-box {
        padding-bottom: 0;
        height: auto;
    }

    .map-box.is-loaded {
        padding-bottom: 100%;
        height: 0;
    }

    .map-consent {
        position: static;
    }
}

.address {
    margin-top: 1.5rem;
    font-style: normal;
}

/* ---------- Rechtstexte (Impressum, Datenschutz) ---------- */
.legal h3 {
    margin-top: 2.5rem;
    font-size: 1.25rem;
    color: var(--heading);
    text-transform: uppercase;
}

.legal h3:first-of-type {
    margin-top: 0;
}

.legal p,
.legal li {
    overflow-wrap: break-word;
}

.legal .highlight {
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--orange);
    background: rgba(255, 255, 255, 0.6);
}

.legal .stand {
    margin-top: 2.5rem;
    font-size: 0.9rem;
    color: #555;
}

/* Platzhalter – vor Veröffentlichung ausfüllen */
.todo {
    padding: 0 0.25rem;
    background: #ffe28a;
    color: #000;
    font-weight: 600;
}

/* ---------- Footer ---------- */
.footer {
    padding: 3rem 0;
    color: rgba(255, 255, 255, 0.3);
    background-color: var(--navy);
}

.footer p {
    margin-bottom: 1rem;
}

.footer a {
    font-weight: 700;
    text-decoration: none;
    color: var(--orange);
}

.footer a:hover {
    text-decoration: underline;
}

.footer .sep {
    padding: 0 0.5rem;
}
