/* ==================================================
   Wolfgang Molzahn – Fahrzeuge & Tüfteleien
   Hauptstylesheet
   Version 1.0
   ================================================== */

/* Grundeinstellungen */

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

:root {
    --farbe-dunkel: #252b30;
    --farbe-akzent: #b65b32;
    --farbe-hell: #f5f5f2;
    --farbe-text: #333333;
    --farbe-weiss: #ffffff;

    --max-breite: 1200px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--farbe-text);
    background: var(--farbe-weiss);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--farbe-akzent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Allgemeiner Seitencontainer */

.container {
    width: 92%;
    max-width: var(--max-breite);
    margin: 0 auto;
}

/* ==================================================
   Kopfbereich
   ================================================== */

.site-header {
    background: #f5f5f2;
    padding: 30px 0;
}

.site-brand {
    display: inline-flex;
    flex-direction: column;
    color: #252b30;
    text-decoration: none;
}

.site-title {
    font-size: 30px;
    font-weight: bold;
}

.site-subtitle {
    font-size: 16px;
    color: #555555;
}


/* ==================================================
   Hauptnavigation
   ================================================== */

.main-nav {
    background: #ffffff;
    border-top: 1px solid #dddddd;
    border-bottom: 1px solid #dddddd;
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    padding: 15px 0;
}

.main-nav a {
    color: #333333;
    font-weight: bold;
}

.main-nav a:hover {
    color: #b65b32;
}


/* ==================================================
   Fußbereich
   ================================================== */

.site-footer {
    margin-top: 60px;
    padding: 22px 0;
    background: #f5f5f2;
    color: #555555;
    font-size: 14px;
    text-align: center;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: #555555;
    text-decoration: none;
}

.site-footer a:hover {
    color: #b65b32;
    text-decoration: underline;
}


/* ==================================================
   Responsive Design
   ================================================== */

/* Tablets */

@media (max-width: 900px) {

    .main-nav ul {
        gap: 8px 18px;
    }

    .main-nav a {
        font-size: 15px;
    }

    .site-title {
        font-size: 28px;
    }

}


/* Smartphones */

@media (max-width: 600px) {

    body {
        font-size: 15px;
    }

    .container {
        width: 92%;
    }

    .site-header {
        padding: 22px 0;
    }

    .site-title {
        font-size: 25px;
    }

    .site-subtitle {
        font-size: 15px;
    }

    .main-nav ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
        padding: 5px 0;
    }

    .main-nav li {
        width: auto;
    }

    .main-nav a {
        display: block;
        padding: 10px 5px;
        font-size: 14px;
    }

    .main-nav a.active {
        border-bottom: none;
        background: #f5f5f2;
    }

    .site-footer {
        margin-top: 40px;
        padding: 20px 0;
    }

}

@media (max-width: 600px) {
    .site-footer {
        margin-top: 40px;
        padding: 18px 0;
        font-size: 13px;
    }
}


/* ==================================================
   Aktiven Menüpunkt kennzeichnen
   ================================================== */

body.page-home .main-nav a[href="index.shtml"],
body.page-sidebyside .main-nav a[href="sidebyside-trike.shtml"],
body.page-scooter .main-nav a[href="cruiser-scooter.shtml"],
body.page-daddycar .main-nav a[href="daddy-car.shtml"],
body.page-tuefteleien .main-nav a[href="tuefteleien.shtml"],
body.page-about .main-nav a[href="ueber-mich.shtml"],
body.page-contact .main-nav a[href="kontakt.shtml"] {

    color: #b65b32;
    border-bottom: 3px solid #b65b32;
    padding-bottom: 5px;

}

/* ==================================================
   Baustellenseite
   ================================================== */

.coming-soon {
    padding-top: 65px;
    padding-bottom: 65px;
    max-width: 850px;
}

.coming-soon h1 {
    font-size: 34px;
    color: #252b30;
    margin-bottom: 25px;
}

.coming-soon p {
    margin-bottom: 18px;
    font-size: 17px;
    line-height: 1.8;
}

@media (max-width: 600px) {

    .coming-soon {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .coming-soon h1 {
        font-size: 27px;
    }

    .coming-soon p {
        font-size: 16px;
    }

}

/* SideBySide-Trike-Seite */
.sidebyside-page {
    padding-top: 48px;
    padding-bottom: 40px;
}

.sidebyside-page h1 {
    color: var(--farbe-dunkel);
    font-size: 36px;
    line-height: 1.2;
    margin-bottom: 8px;
}

.sidebyside-claim {
    color: var(--farbe-akzent);
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 12px;
}

.sidebyside-lead {
    font-size: 19px;
    margin-bottom: 28px;
}

.sidebyside-page h2 {
    color: var(--farbe-dunkel);
    font-size: 25px;
    line-height: 1.3;
    margin-bottom: 16px;
}

.sidebyside-page p {
    margin-bottom: 16px;
    line-height: 1.8;
}

.sidebyside-hero,
.sidebyside-image,
.sidebyside-image-grid figure {
    margin: 24px 0;
}

.sidebyside-hero,
.sidebyside-image,
.sidebyside-image-grid figure {
    display: block;
    text-align: center;
}

.sidebyside-hero img,
.sidebyside-image img,
.sidebyside-image-grid img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #cccccc;
    padding: 4px;
    border-radius: 3px;
    background: #ffffff;
}

.sidebyside-hero img {
    max-width: 750px;
    margin: 0 auto;
}

.sidebyside-page figcaption {
    display: block;
    clear: both;
    width: 100%;
    color: #666666;
    font-size: 14px;
    font-style: italic;
    text-align: center;
    margin: 8px auto 0;
}


.sidebyside-hero img {
    max-width: 750px;
    margin: 0 auto;
}

.sidebyside-page figcaption {
    color: #666;
    font-size: 14px;
    margin-top: 7px;
    font-style: italic;
}

.sidebyside-section {
    max-width: 900px;
    margin: 56px auto;
    overflow: auto;
}

.sidebyside-image-right {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.sidebyside-image-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin-top: 22px;
}

.sidebyside-image-grid figure {
    min-width: 0;
}

.sidebyside-image-wide {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.sidebyside-book {
    max-width: 900px;
    margin: 64px auto 36px;
    padding: 30px;
    background: var(--farbe-hell);
    border-left: 4px solid var(--farbe-akzent);
}

.sidebyside-goodbye {
    text-align: center;
    font-size: 19px;
    font-weight: bold;
    margin: 48px 0 20px;
}

@media (max-width: 600px) {
    .sidebyside-page {
        padding-top: 30px;
    }

    .sidebyside-page h1 {
        font-size: 29px;
    }

    .sidebyside-claim {
        font-size: 19px;
    }

    .sidebyside-lead {
        font-size: 17px;
    }

    .sidebyside-page h2 {
        font-size: 22px;
    }

    .sidebyside-section {
        margin: 38px auto;
    }

    .sidebyside-image-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .sidebyside-book {
        margin: 42px auto 28px;
        padding: 22px;
    }
}

/* Neue übersichtliche Hauptnavigation */

.main-nav .container {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 30px;
    padding-top: 18px;
    padding-bottom: 18px;
}

.nav-start,
.nav-about {
    display: flex;
    align-items: center;
}

.nav-groups {
    display: flex;
    flex: 1;
    justify-content: space-evenly;
    gap: 30px;
}

.nav-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.nav-heading {
    color: var(--farbe-dunkel);
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}

.nav-group a,
.nav-group span:not(.nav-heading),
.nav-start a,
.nav-about a {
    color: #444;
    font-size: 14px;
}

.nav-group a:hover,
.nav-start a:hover,
.nav-about a:hover {
    color: var(--farbe-akzent);
}

.nav-group a {
    font-weight: bold;
}

.nav-start a,
.nav-about a {
    font-weight: bold;
}

/* Smartphone-Darstellung */

@media (max-width: 700px) {
    .main-nav .container {
        display: block;
    }

    .nav-groups {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 15px;
        margin: 18px 0;
    }

    .nav-start,
    .nav-about {
        padding: 5px 0;
    }
}

/* Startseite: Aufmacherbild */
.home-hero {
    max-width: 850px;
    margin: 28px auto 32px;
    text-align: center;
}

.home-hero img {
    display: block;
    width: 100%;
    max-width: 850px;
    height: auto;
    margin: 0 auto;
    border: 1px solid #cccccc;
    padding: 4px;
    border-radius: 3px;
    background: #ffffff;
}

.home-hero figcaption {
    display: block;
    margin: 8px auto 0;
    color: #666666;
    font-size: 14px;
    font-style: italic;
    text-align: center;
}

