/* Beratungs-Zentrum Mäi Liewen - Landing-Page
   Farben, Rundungen und Schriftgroessen wie in v41, damit der spaetere
   Wechsel zur vollen Seite nicht wie ein Bruch wirkt. */

:root {
  --bg: #f4f3ee;
  --card-bg: #ffffff;
  --green: #63795c;
  --green-dark: #4c5e47;
  --text: #16211d;
  --text-muted: #4a544d;
  --shadow: 0 2px 10px rgba(22, 33, 29, 0.08);
  --radius: 14px;
  --breite: 640px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 118.75%;
}

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

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

a {
  color: inherit;
}

/* Kopf */

.kopf {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  max-width: var(--breite);
  margin: 0 auto;
  padding: 1.25rem;
}

.kopf__logo {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.kopf__name {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.3;
}

.kopf__name strong {
  font-size: 1.1rem;
}

/* Inhalt */

main {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
}

.foto {
  width: 100%;
  height: auto;
  /* height:auto ist noetig, sonst schlaegt das height-Attribut im HTML
     das Seitenverhaeltnis und das Bild wird verzerrt */
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(22, 33, 29, 0.25);
}

.einleitung {
  margin: 1.5rem 0 0;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
}

.einleitung--klein {
  margin-top: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

main h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.05rem;
  line-height: 1.3;
  text-align: center;
}

/* Telefon und E-Mail */

.wege {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.weg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 60px;
  padding: 0.6em 1.2em;
  background: var(--green);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  box-shadow: var(--shadow);
}

.weg:hover {
  background: var(--green-dark);
}

.weg::before {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.weg--telefon::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='1.6' stroke-linejoin='round' d='M5 4.5h2.8l1.3 3.6-1.7 1.4a11 11 0 0 0 5.1 5.1l1.4-1.7 3.6 1.3V17c0 1.4-1.1 2.5-2.5 2.5C9 19.5 4.5 15 4.5 9c0-1.4.6-2.7 1.5-4.5Z'/%3E%3C/svg%3E");
}

.weg--mail::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='white' stroke-width='1.6' stroke-linejoin='round'%3E%3Crect x='3.5' y='5.5' width='17' height='13' rx='1.5'/%3E%3Cpath d='M4 6.5 12 13l8-6.5'/%3E%3C/g%3E%3C/svg%3E");
}

/* Oeffnungs-Zeiten und Adresse */

.karten {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.karte {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  text-align: center;
}

.karte h2 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
}

.karte p {
  margin: 0;
}

.karte__hinweis {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Fuss */

.fuss {
  background: var(--green-dark);
  color: #fff;
  text-align: center;
  padding: 1.5rem 1.25rem;
  font-size: 0.85rem;
}

.fuss p {
  max-width: var(--breite);
  margin: 0 auto;
}

.fuss__foerderer {
  width: 100%;
  max-width: 240px;
  height: auto;
  margin: 0 auto 1rem;
  background: #fff;
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
}

.fuss__sozial {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin: 1rem 0 0;
  padding: 0;
}

.fuss__sozial a {
  display: flex;
  padding: 0.5rem;
}

.fuss__sozial li:nth-child(2) {
  margin-top: 0.1rem;
}

/* Barrierefreiheit */

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10;
  background: var(--green-dark);
  color: #fff;
  padding: 0.75em 1.25em;
  border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

:focus-visible {
  outline: 3px solid var(--green-dark);
  outline-offset: 3px;
}

/* Weiss nur dort, wo der Untergrund dunkel ist. Die gruenen Knoepfe stehen auf
   hellem Grund - dort bliebe ein weisser Rahmen unsichtbar. */

.fuss :focus-visible,
.skip-link:focus-visible {
  outline-color: #fff;
}

/* Breitere Bildschirme */

@media (min-width: 700px) {
  .wege {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .wege li {
    flex: 1 1 260px;
    display: flex;
  }

  .weg {
    flex: 1;
  }

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