/*
Theme Name: Reifen Service Garage
Description: Mobiles Werkstatt-Theme im Stil der 1950er und 1960er Jahre für die Reifen Service Garage in Waren (Müritz).
Version: 1.4.19
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: reifen-service-garage
*/
:root {
    --cream: #f5edda;
    --ivory: #fff;
    --black: #111;
    --ink: #111;
    --red: #a52b24;
    --chrome: #c8d0cc;
    --line: #bdad8f;
    --display: Rockwell, "Roboto Slab", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--cream); font: 1.05rem/1.57 system-ui, sans-serif; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; text-underline-offset: .19em; overflow-wrap: anywhere; }
a:focus-visible { outline: 3px solid currentColor; outline-offset: 5px; }
h1, h2, h3 { margin: 0; font-family: var(--display); line-height: 1.05; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); color: var(--black); }
h3 { font-size: 1.36rem; }
p { margin: .75rem 0 0; }
address { font-style: normal; }
.wrap { width: min(1180px, 90%); margin-inline: auto; }
.topline {
    height: 10px;
    background: conic-gradient(var(--cream) 25%, var(--black) 0 50%, var(--cream) 0 75%, var(--black) 0) 0 / 10px 10px;
}
.site-header { background: var(--ivory); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; padding-block: 1.05rem; }
.brand { font: 800 1.22rem/1 var(--display); color: var(--black); text-decoration: none; }
.brand span { display: block; margin-top: .45em; font: 700 .68rem/1 system-ui, sans-serif; text-transform: uppercase; letter-spacing: .14em; }
nav { display: flex; flex-wrap: wrap; gap: .55rem 1.6rem; font-weight: 700; font-size: .9rem; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; }
.button { display: inline-block; padding: .68rem 1rem; border-radius: 3px; background: var(--black); color: var(--ivory); font-weight: 750; text-decoration: none; }
.button:hover { box-shadow: 0 3px 0 var(--chrome); }
.hero {
    background: radial-gradient(#153d3919 .75px, transparent 1px) 0 0 / 6px 6px, var(--cream);
    border-bottom: 6px double var(--black);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr); align-items: center; gap: clamp(2rem, 5vw, 5.5rem); padding-block: clamp(3rem, 7vw, 6rem); }
h1 { color: var(--black); font-size: clamp(2.25rem, 6.7vw, 6.1rem); letter-spacing: -.048em; }
.hero h1 { line-height: .87; text-shadow: 2px 2px 0 var(--ivory), 4px 4px 0 #c7b89c; }
.hero h1 em { color: var(--ink); font-style: normal; }
.hero-copy > p { margin-top: 1.5rem; max-width: 38ch; font-size: clamp(1.12rem, 2vw, 1.3rem); }
.header-contacts { display: flex; flex-wrap: wrap; gap: .65rem; margin-inline-start: auto; }
.header-contacts .button { padding: .5rem .6rem; font-size: .82rem; }
.workshop-photo { min-width: 0; padding: .65rem; background: var(--ivory); border: 1px solid var(--line); box-shadow: 7px 8px 0 #153d3929; }
.workshop-photo img { width: 100%; }
.services { padding-block: clamp(2.8rem, 6vw, 5rem); background: var(--black); color: var(--ivory); }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; margin-top: 1.6rem; }
.cards article { padding: 1.35rem; border: 1px solid #f7edda6b; border-top: 4px solid var(--chrome); }

.visit { padding-block: clamp(2.8rem, 6vw, 5rem); }
.visit-inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: clamp(1.4rem, 4vw, 3.5rem); }
.visit address { margin-top: .9rem; }
.visit h3 { margin-top: 1.2rem; }
.visit .button { margin-top: 1.15rem; }
.site-footer { color: var(--ink); background: var(--ivory); border-top: 5px double var(--black); padding-block: 2.1rem; }
.site-footer h2 { color: var(--ink); font-size: 1.55rem; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; align-items: start; }
.page-content { padding-block: 2.5rem; min-height: 45vh; }
.skip-link { position: absolute; top: .5rem; left: .5rem; z-index: 50; padding: .6rem; background: var(--ivory); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
@media (max-width: 850px) {
    .visit-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .hero-inner { gap: 2rem; }
}
@media (max-width: 650px) {
    .header-inner { flex-wrap: wrap; gap: .85rem; }
    .header-inner nav { order: 3; width: 100%; }
    .header-contacts { margin-inline-start: 0; }
    .hero-inner, .visit-inner, .cards, .footer-inner { grid-template-columns: minmax(0, 1fr); }
    .hero h1 { font-size: clamp(3.1rem, 12vw, 5rem); }
    .workshop-gallery { grid-row: 2; }
}

.welcome-greeting {
    display: block;
    margin-bottom: .55em;
    font-size: .45em;
    line-height: 1.1;
    letter-spacing: -.02em;
    text-shadow: none;
}
.hero h1 { font-size: clamp(2.8rem, 6.8vw, 6.15rem); line-height: .98; }
.welcome-logo { justify-self: end; width: min(100%, 30rem); }
.welcome-logo > img { width: 100%; mix-blend-mode: multiply; }
.workshop-gallery { display: grid; gap: 1.1rem; }
@media (max-width: 650px) {
    .welcome-logo { justify-self: center; width: min(82%, 23rem); }
    .hero h1 { font-size: clamp(2.65rem, 11vw, 4.5rem); }
}

.service-inquiry { max-width: 70ch; margin-top: 1.5rem; }
.service-contacts { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1rem; }

nav a[aria-current="page"] { text-decoration: underline; }
.services h1, .visit h1, .imprint h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
.services h1 { color: #fff; }
.visit-inner > div:last-child { grid-row: 1; grid-column: 2; }
@media (max-width: 650px) {
    .visit-inner > div:last-child { grid-column: 1; }
}

/* Enamel signs, checkerboard trim and painted shop lettering. */
.topline {
    height: 16px;
    background: conic-gradient(#fff 25%, #111 0 50%, #fff 0 75%, #111 0) 0 0 / 16px 16px;
}
.site-header { border-bottom: 5px double #111; }
.brand { font-weight: 900; }
.header-inner nav a { font-weight: 800; }
nav a[aria-current="page"] { text-decoration-color: currentColor; text-decoration-thickness: 3px; }
.hero {
    background: radial-gradient(#1112 .75px, transparent 1px) 0 0 / 6px 6px, var(--cream);
    border-bottom: 8px double #111;
}
.hero h1 {
    font-weight: 900;
    text-shadow: 2px 2px #fff, 4px 4px #111;
}
.hero h1 em { text-shadow: inherit; }
.welcome-greeting { font-style: italic; }
.button {
    border: 1px solid #111;
    border-radius: 4px;
    box-shadow: 3px 3px 0 #1113;
}
.services .button { background: #fff; color: #111; }
.cards article {
    background: #fff;
    color: #111;
    border: 4px double #111;
    border-top: 5px solid var(--red);
    box-shadow: 4px 4px 0 var(--chrome);
}
.workshop-photo { border: 4px double #111; box-shadow: 6px 6px 0 #1113; }
.visit-inner > div:last-child {
    padding: clamp(1rem, 3vw, 2rem);
    background: #fff;
    border: 4px double #111;
    border-top: 5px solid var(--red);
}
.imprint h1 { padding-bottom: .25em; border-bottom: 5px double #111; }

@media (min-width: 651px) and (max-width: 1150px) {
    .header-inner > nav { order: 3; width: 100%; }
}

.footer-navigation { flex-direction: column; align-items: flex-start; margin-top: .75rem; }

/* Keep the footer at the bottom of short views without overlaying content. */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body > main { flex: 1 0 auto; }
body.admin-bar { min-height: calc(100vh - 32px); min-height: calc(100dvh - 32px); }
@media (max-width: 782px) {
    body.admin-bar { min-height: calc(100vh - 46px); min-height: calc(100dvh - 46px); }
}

.opening-hours-photo { max-width: 48rem; margin-top: 1.5rem; }
