/* ==========================================================================
   Buchhaltungsservice Wälti AG – Website
   Farben: Blau #004a93 | Footer-Blau #003d7a | Grau-BG #efefef | Text #000
   Schrift: Open Sans (selbst gehostet, siehe assets/fonts/)
   ========================================================================== */

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/open-sans-400.woff2") format("woff2");
}

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/open-sans-700.woff2") format("woff2");
}

:root {
  --blue: #004a93;
  --footer-blue: #003d7a;
  --gray-bg: #efefef;
  --text: #000;
  --white: #fff;
  --max-width: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Logo-Balken (identisch auf allen drei Seiten) ---------- */

.logo-bar {
  background: var(--gray-bg);
}

.logo-bar__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 18px 24px;
}

.logo-bar__inner img {
  display: block;
  width: auto;
  height: auto;
  max-height: 90px;
  max-width: 220px;
}

/* ---------- Vollbreites Header-Foto (nur Startseite) ---------- */

.hero-photo {
  overflow: hidden;
  aspect-ratio: 3 / 2; /* passend zum Mobile-Bildausschnitt */
  min-height: 200px; /* Sicherheitsnetz für sehr alte Browser ohne aspect-ratio-Unterstützung */
}

.hero-photo picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 800px) {
  .logo-bar__inner {
    padding: 22px 24px;
  }

  .logo-bar__inner img {
    max-height: 110px;
    max-width: 260px;
  }

  .hero-photo {
    aspect-ratio: 21 / 9; /* ruhiges, breites Hero-Format auf grösseren Bildschirmen */
  }
}

/* ---------- Blue notice band ---------- */

.notice-band {
  background: var(--blue);
  color: var(--white);
  padding: 48px 0;
}

.notice-band h1 {
  margin: 0 0 20px;
  font-size: 1.7rem;
  font-weight: 700;
}

.notice-band p {
  margin: 0 0 16px;
  font-size: 1rem;
}

.notice-band p:last-child {
  margin-bottom: 0;
}

.notice-band strong {
  display: block;
  margin-bottom: 4px;
}

.notice-band address {
  font-style: normal;
}

/* ---------- Intro text section ---------- */

.intro-section {
  padding: 64px 0;
}

.intro-section h2 {
  font-size: 1.6rem;
  margin: 0 0 24px;
}

.intro-section .intro-text {
  max-width: 760px;
}

.intro-section p {
  margin: 0 0 20px;
}

.intro-section p:last-child {
  margin-bottom: 0;
}

/* ---------- Team section ---------- */

.team-section {
  background: var(--gray-bg);
  padding: 64px 0;
}

.team-section h2 {
  text-align: center;
  font-size: 1.6rem;
  margin: 0 0 40px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.team-card {
  background: var(--white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.team-card__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #d9d9d9;
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card__body {
  padding: 24px 28px 28px;
  flex: 1;
}

.team-card__body h3 {
  margin: 0 0 4px;
  font-size: 1.25rem;
}

.team-card__role {
  font-weight: 700;
  margin: 0 0 20px;
}

.team-card__body h4 {
  font-size: 0.95rem;
  margin: 0 0 8px;
  text-transform: none;
}

.team-card__body ul {
  margin: 0 0 20px;
  padding-left: 20px;
}

.team-card__body ul:last-of-type {
  margin-bottom: 0;
}

.team-card__body li {
  margin-bottom: 4px;
}

.team-card__contact {
  background: var(--blue);
  color: var(--white);
  padding: 24px 28px;
  display: grid;
  gap: 16px;
}

.contact-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-row svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.contact-row strong {
  display: block;
  margin-bottom: 2px;
}

.contact-row a {
  color: var(--white);
  text-decoration: none;
}

.contact-row a:hover {
  text-decoration: underline;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--footer-blue);
  color: var(--white);
  text-align: center;
  padding: 20px 0;
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--white);
  text-decoration: none;
}

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

.site-footer .divider {
  margin: 0 8px;
  opacity: 0.6;
}

/* ---------- Legal pages (Impressum / Datenschutz) ---------- */

.legal-page {
  padding: 56px 0 72px;
}

.legal-page h1 {
  font-size: 1.8rem;
  margin: 0 0 32px;
}

.legal-page h2 {
  font-size: 1.2rem;
  margin: 40px 0 12px;
}

.legal-page p,
.legal-page li {
  margin: 0 0 12px;
}

.legal-page ul {
  padding-left: 20px;
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 0.9rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 800px) {
  .team-grid {
    grid-template-columns: 1fr;
  }

  .notice-band {
    padding: 36px 0;
  }

  .notice-band h1 {
    font-size: 1.4rem;
  }

  .intro-section,
  .team-section {
    padding: 44px 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .team-card__body,
  .team-card__contact {
    padding: 20px;
  }
}
