/* Schrödter Malermeister – mobile-first static site */

:root {
  --brand-red: #d2000e;
  --near-black: #1a1a1a;
  --off-white: #f7f5f2;
  --concrete: #e8e6e3;
  --text: #2c2c2c;
  --text-muted: #5a5a5a;
  --max-width: 72rem;
  --header-height: 3.75rem;
  --tap-min: 2.75rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--off-white);
}

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

a {
  color: var(--brand-red);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover,
a:focus-visible {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--brand-red);
  outline-offset: 2px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 3px solid var(--brand-red);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.5rem 1rem;
  min-height: var(--header-height);
}

.wordmark-link {
  text-decoration: none;
  color: var(--near-black);
  line-height: 1.2;
}

.wordmark {
  display: block;
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: 0.04em;
}

.brand-o {
  color: var(--brand-red);
}

.wordmark-sub {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.header-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  min-width: var(--tap-min);
  padding: 0.5rem 0.875rem;
  background: var(--brand-red);
  color: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: 4px;
  white-space: nowrap;
}

.header-phone:hover,
.header-phone:focus-visible {
  background: #b0000c;
  color: #fff;
  text-decoration: none;
}

/* Nav */
.site-nav {
  background: var(--near-black);
}

.nav-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-inner a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  padding: 0.625rem 1rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
}

.nav-inner a:hover,
.nav-inner a:focus-visible,
.nav-inner a[aria-current="page"] {
  background: var(--brand-red);
  color: #fff;
  text-decoration: none;
}

/* Stellen banner */
.stellen-banner {
  background: var(--near-black);
  color: #fff;
  text-align: center;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
}

.stellen-banner a {
  color: #fff;
  font-weight: 700;
}

/* Main layout */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

/* Hero */
.hero {
  margin: -1.5rem -1rem 1.5rem;
  position: relative;
}

.hero img {
  width: 100%;
  max-height: 28rem;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: #fff;
}

.hero-overlay h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.3;
}

.hero-overlay p {
  margin: 0.5rem 0 0;
  font-size: 1rem;
}

/* Typography */
h1, h2, h3 {
  color: var(--near-black);
  line-height: 1.3;
}

h1 {
  font-size: 1.75rem;
  margin: 0 0 1rem;
}

h2 {
  font-size: 1.375rem;
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.375rem;
  border-bottom: 2px solid var(--brand-red);
}

h3 {
  font-size: 1.125rem;
  margin: 1.25rem 0 0.5rem;
}

.lead {
  font-size: 1.125rem;
  color: var(--text-muted);
}

.brand-highlight {
  color: var(--brand-red);
  font-weight: 700;
}

/* Service cards */
.service-grid {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

.service-card {
  background: #fff;
  border: 1px solid var(--concrete);
  border-left: 4px solid var(--brand-red);
  padding: 1.25rem;
  border-radius: 4px;
}

.service-card h3 {
  margin-top: 0;
}

.service-card a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  font-weight: 600;
}

/* CTA block */
.cta-block {
  background: #fff;
  border: 2px solid var(--brand-red);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 4px;
  text-align: center;
}

.cta-block .phone-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  padding: 0.75rem 1.5rem;
  margin: 0.5rem;
  background: var(--brand-red);
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
  border-radius: 4px;
}

.cta-block .phone-cta:hover,
.cta-block .phone-cta:focus-visible {
  background: #b0000c;
  color: #fff;
  text-decoration: none;
}

.cta-block .mail-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  padding: 0.75rem 1.5rem;
  margin: 0.5rem;
  border: 2px solid var(--brand-red);
  color: var(--brand-red);
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
}

.cta-block .mail-cta:hover,
.cta-block .mail-cta:focus-visible {
  background: var(--brand-red);
  color: #fff;
  text-decoration: none;
}

/* Gallery */
.gallery-grid {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

.gallery-item {
  background: #fff;
  border: 1px solid var(--concrete);
  border-radius: 4px;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-item figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}

.gallery-section-title {
  margin-top: 2.5rem;
}

/* Leistungen detail */
.leistung-block {
  background: #fff;
  border: 1px solid var(--concrete);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 4px;
}

.leistung-block img {
  margin: 1rem 0;
  border-radius: 4px;
}

/* Contact */
.contact-info {
  background: #fff;
  border: 1px solid var(--concrete);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 4px;
}

.contact-info p {
  margin: 0.5rem 0;
}

.contact-form {
  background: #fff;
  border: 1px solid var(--concrete);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 4px;
}

.contact-form label {
  display: block;
  margin: 0.75rem 0 0.25rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--concrete);
  border-radius: 4px;
  min-height: var(--tap-min);
}

.contact-form textarea {
  min-height: 8rem;
  resize: vertical;
}

.contact-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--brand-red);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.contact-form button:hover,
.contact-form button:focus-visible {
  background: #b0000c;
}

.map-container {
  margin: 1.5rem 0;
  border: 1px solid var(--concrete);
  border-radius: 4px;
  overflow: hidden;
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 18rem;
  border: 0;
}

/* Legal pages */
.legal-content h2 {
  font-size: 1.25rem;
}

.legal-content h3 {
  font-size: 1.0625rem;
}

/* Footer */
.site-footer {
  background: var(--near-black);
  color: #ccc;
  padding: 2rem 1rem;
  font-size: 0.9375rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-inner a {
  color: #fff;
}

.footer-nap {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #444;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  text-decoration: underline;
}

.sign-off {
  margin-top: 2rem;
  font-style: italic;
}

/* Responsive */
@media (min-width: 640px) {
  .wordmark {
    font-size: 1.375rem;
  }

  .hero-overlay h1 {
    font-size: 2rem;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .map-container iframe {
    height: 22rem;
  }
}

@media (min-width: 900px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid--wide {
    grid-template-columns: repeat(3, 1fr);
  }

  .header-phone {
    font-size: 1rem;
    padding: 0.5rem 1.25rem;
  }
}
