/* WEBORA – gemeinsames Design
   Farben: Werkstatt-Blau und frisches Grün
   Hintergrundbild liegt im Ordner /img/
*/
:root {
    --blue: #00517f;
    --blue-dark: #003c5e;
    --green: hwb(165 5% 17%);
    --green-dark: lab(52.51% -47.42 24.56 / 0.548);
    --ink: #173d59;
    --paper: rgba(255, 255, 255, 0.15);
    --line: rgba(0, 81, 127, 0.14);
    --shadow: 0 12px 34px rgba(0, 35, 58, 0.14);
}

* { box-sizing: border-box; }

html { min-height: 100%; scroll-behavior: smooth; }

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: "Open Sans", Arial, sans-serif;
    color: var(--ink);
    background-color: #eaf0ed;
    /* All.css liegt im Ordner css; daher ../img/ */
    background-image:
        linear-gradient(rgba(244, 247, 243, 0.12), rgba(244, 247, 243, 0.103)),
        url("../img/werkstatt-d.jpg");
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

a { color: var(--blue); }
a:focus-visible, button:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1000;
    width: 240px;
    min-height: 100vh;
    padding: 28px 16px 20px;
    display: flex;
    flex-direction: column;
    color: #fff;
    background: rgba(0, 65, 101, 0.72);
    box-shadow: 4px 0 18px rgba(0, 0, 0, 0.12);
}

.sidebar h2 {
    margin: 0 0 28px;
    color: #fff;
    font-size: 1.35rem;
    line-height: 1.35;
    text-align: center;
    letter-spacing: 0.03em;
}

.sidebar nav { display: grid; gap: 7px; }

.sidebar nav a {
    display: block;
    padding: 12px 14px;
    color: #fff;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 1rem;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.sidebar nav a:hover,
.sidebar nav a:focus-visible,
.sidebar nav a[aria-current="page"] {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.24);
}

.sidebar i { width: 27px; text-align: center; }

.sidebar-logo {
    margin-top: auto;
    padding: 26px 8px 6px;
    text-align: center;
}

.sidebar-logo img {
    display: block;
    width: 100%;
    max-width: 180px;
    height: auto;
    margin: 0 auto;
    border-radius: 6px;
}

.page {
    min-height: 100vh;
    margin-left: 240px;
    display: flex;
    flex: 1;
    flex-direction: column;
}

main {
    width: 100%;
    flex: 1;
    padding: 38px 28px;
}

.content {
    width: 100%;
    max-width: 1020px;
    margin: 0 auto;
    padding: clamp(22px, 4vw, 38px);
    background: var(--paper);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 16px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

h1, h2, h3 { color: var(--blue); }

h1 {
    margin: 0 0 20px;
    font-size: clamp(1.9rem, 4vw, 2.65rem);
    line-height: 1.18;
    text-align: center;
}

h2 {
    margin: 30px 0 14px;
    font-size: clamp(1.35rem, 2.6vw, 1.8rem);
    line-height: 1.3;
}

h3 { margin: 0 0 8px; }

p {
    margin: 0 0 16px;
    font-size: 1.04rem;
    line-height: 1.7;
}

.intro {
    max-width: 760px;
    margin: 0 auto;
    font-size: clamp(1.15rem, 2.2vw, 1.35rem);
    text-align: center;
}

.lead {
    max-width: 780px;
    margin: 0 auto 24px;
    text-align: center;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    margin: 8px 8px 8px 0;
    padding: 12px 19px;
    color: var(--blue-dark);
    background: var(--green-dark);
    border: 1px solid rgba(0, 60, 94, 0.08);
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.button:hover {
    color: var(--blue-dark);
    background: var(--green);
    transform: translateY(-1px);
}

.button-row { margin-top: 22px; text-align: center; }

.service, .contact-info {
    margin: 18px 0;
    padding: 22px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid var(--line);
    border-left: 5px solid var(--blue);
    border-radius: 10px;
}

.contact-info {
    background: rgba(238, 247, 228, 0.78);
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.contact-info h2 { margin-top: 0; }

.map-section { margin-top: 30px; }
.map {
    display: block;
    width: 100%;
    height: 340px;
    margin: 12px 0 18px;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 5px 18px rgba(0, 35, 58, 0.10);
}

.site-footer {
    width: 100%;
    margin-top: auto;
    padding: 22px 24px;
    color: #fff;
    background: rgba(0, 65, 101, 0.97);
    text-align: center;
    line-height: 1.8;
}

.site-footer strong { font-size: 1.12rem; }
.site-footer p { margin: 5px 0; font-size: 0.95rem; }
.site-footer a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.site-footer a:hover { color: #c8f18e; }
.footer-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 28px;
    row-gap: 4px;
}

@media (max-width: 760px) {
    body { background-attachment: scroll; }
    .sidebar {
        position: relative;
        width: 100%;
        min-height: 0;
        padding: 15px 12px 12px;
    }
    .sidebar h2 { margin: 2px 0 12px; font-size: 1.2rem; }
    .sidebar nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }
    .sidebar nav a { padding: 9px 11px; font-size: 0.92rem; }
    .sidebar i { width: auto; margin-right: 5px; }
    .sidebar-logo { padding: 13px 8px 2px; }
    .sidebar-logo img { max-width: 115px; }
    .page { min-height: calc(100vh - 150px); margin-left: 0; }
    main { padding: 18px 12px; }
    .content { padding: 22px 17px; }
    .footer-contact { flex-direction: column; gap: 3px; }
    .site-footer { padding: 19px 13px; font-size: 0.9rem; }
    .map { height: 290px; }
}

/* Nur die Startseite: keine Glasscheibe um den Inhalt */
.startseite main {
    position: relative;
}

.startseite .content {
    position: static;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Schwarzer Titel direkt auf dem Hintergrundbild */
.startseite .werkstatt-titel {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    width: max-content;
    max-width: 90%;
    margin: 0;
    padding: 0;
    color: #000;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
}

@media (max-width: 760px) {
    .startseite .werkstatt-titel {
        bottom: 18px;
        font-size: 18px;
    }
}
