/* Malerbetrieb Thomas Ehehalt – Grundlayout */
:root {
  --navy: #102b46;  /* #264b9b; MALER EHEHALT LOGO: DUNKEL-BLAU */
  --navy-light: #1c4568;
  --ink: #172330;
  --muted: #667585;
  --paper: #ffffff;
  --soft: #f3f6f9;
  --line: #dce4eb;
  --accent: #7da6c8;
  --content-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: var(--navy-light);
}

a:hover {
  color: var(--navy);
}

.container {
  width: min(var(--content-width), calc(100% - 48px));
  margin-inline: auto;
}

/* Kopfbereich */
.site-header {
  position: relative;
  z-index: 1;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 3px;
  background: var(--navy);
  color: white;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}

nav a {
  color: var(--muted);
  font-size: 0.94rem;
  text-decoration: none;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--navy);
}

/* Großzügiger, reduzierter Titelbereich */
.hero {
  display: flex;
  min-height: 350px;
  align-items: center;
  background: var(--navy);
  color: white;
}

.hero-inner {
  padding-block: 76px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 4.7rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.accent-line {
  width: 62px;
  height: 3px;
  margin: 28px 0 18px;
  background: var(--accent);
}

.intro {
  margin: 0;
  color: #dce7f0;
  font-size: 1.1rem;
}

/* Mitarbeiter-Banner */
.team-banner {
    width: 100%;
    height: 360px;
    overflow: hidden;
    background: #dce4eb;
}

.team-banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
}

/* Anpassung für Smartphones */
@media (max-width: 720px) {
    .team-banner {
        height: 220px;
    }
}

/* Kontakt */
.contact-section {
  padding: 72px 0 84px;
  background: var(--soft);
}

.section-heading {
  margin-bottom: 26px;
}

.section-heading h2,
.legal-card h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.2;
}

.contact-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 34px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy-light);
  background: var(--paper);
}

.contact-item {
  min-width: 0;
}

.contact-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-item address {
  font-style: normal;
}

.contact-item a {
  overflow-wrap: anywhere;
  text-decoration: none;
}

.placeholder {
  color: #85672e;
}

/* Impressum */
.page-main {
  min-height: calc(100vh - 150px);
  padding: 58px 0 76px;
  background: var(--soft);
}

.legal-card {
  max-width: 820px;
  padding: clamp(26px, 5vw, 48px);
  border: 1px solid var(--line);
  background: var(--paper);
}

.legal-card h1 {
  margin-bottom: 34px;
}

.legal-card h2 {
  margin: 28px 0 8px;
  color: var(--navy);
  font-size: 1.08rem;
}

.legal-card p {
  margin: 0;
}

.legal-card a {
  text-decoration: none;
}

.notice {
  margin-top: 38px !important;
  padding: 16px 18px;
  border-left: 3px solid #b48a45;
  background: #faf7f0;
  color: #5d503c;
  font-size: 0.9rem;
}

/* Fußbereich */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer-inner {
  min-height: 68px;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-inner a {
  color: var(--navy-light);
  text-decoration: none;
}

/* Smartphone und kleinere Tablets */
@media (max-width: 720px) {
  .container {
    width: min(100% - 32px, var(--content-width));
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding-block: 15px;
  }

  nav {
    gap: 20px;
  }

  .hero {
    min-height: 300px;
  }

  .hero-inner {
    padding-block: 62px;
  }

  .contact-section {
    padding: 52px 0 60px;
  }

  .contact-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 26px;
  }

  .page-main {
    padding: 36px 0 52px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding-block: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
