/* Marte Meo Zeit – gemeinsame Styles
   Farben aus dem Logo ausgelesen */

/* ---------- Schriften (lokal, Ordner /fonts) ----------
   Browser laden eine Datei nur, wenn der Schnitt tatsächlich verwendet wird. */
@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/eb-garamond-v33-latin-regular.woff2") format("woff2");
}
@font-face {
  font-family: "EB Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/eb-garamond-v33-latin-italic.woff2") format("woff2");
}
@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/eb-garamond-v33-latin-500.woff2") format("woff2");
}
@font-face {
  font-family: "Mulish";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/mulish-v18-latin-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Mulish";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/mulish-v18-latin-700.woff2") format("woff2");
}

:root {
  --bg: #fbf5ef;
  --gruen: #636e5e;       /* Serifenschrift im Logo */
  --text: #3c3a2e;        /* Claim im Logo */
  --terrakotta: #cc7856;  /* "Zeit" im Logo – nur als Akzent, zu wenig Kontrast für kleinen Text */

  --serif: "EB Garamond", Garamond, "Times New Roman", serif;
  --sans: "Mulish", "Segoe UI", Helvetica, Arial, sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Platzhalter-Startseite ---------- */

.platzhalter {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem 1rem;
  text-align: center;
}

.platzhalter h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--gruen);
}

.platzhalter img {
  display: block;
  /* Quadratisches Logo: begrenzt durch Breite UND Höhe,
     damit es auch auf Smartphones im Querformat ganz sichtbar bleibt */
  width: min(88vw, 34rem);                         /* Fallback */
  width: min(88vw, 34rem, calc(100svh - 11rem));
  min-width: 14rem;
  height: auto;
  margin-top: 0.25rem;
}

/* ---------- Rechtstexte ---------- */

.rechtstext {
  flex: 1;
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}

.zurueck {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.9375rem;
}

.rechtstext h1,
.rechtstext h2,
.rechtstext h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--gruen);
  line-height: 1.25;
}

.rechtstext h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
}

.rechtstext h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.5rem;
}

.rechtstext h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.25rem;
}

.rechtstext p,
.rechtstext ul,
.rechtstext ol {
  margin: 0 0 1rem;
}

.rechtstext ul,
.rechtstext ol {
  padding-left: 1.25rem;
}

/* ---------- Links ---------- */

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--terrakotta);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

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

a:focus-visible {
  outline: 2px solid var(--gruen);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.fusszeile {
  padding: 1.25rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 0.875rem;
}

.fusszeile ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fusszeile a {
  text-decoration-color: transparent;
}

.fusszeile a:hover,
.fusszeile a[aria-current="page"] {
  text-decoration-color: var(--terrakotta);
}
