:root {
  --maxw: 1100px;
  --pad: 16px;
  --radius: 12px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
  line-height: 1.6;
}
header, footer { background: #f7f7f7; }
header .wrap, main .wrap, footer .wrap { max-width: var(--maxw); margin: 0 auto; padding: 16px; }
nav a { margin-right: 12px; text-decoration: none; color: #333; }
nav a.active { font-weight: 700; }
.hero {
/*  padding: 64px 16px;
  background: linear-gradient(135deg, #f3f3f3, #ffffff);*/
  background-image: url("../Pics/Eingang.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 400px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero h1 { font-size: 2.2rem; margin-bottom: 8px;}
.hero h2 { font-size: 1.8rem; margin-bottom: 8px;  color: rgb(183, 39, 39);}
.hero p { max-width: 700px; }
.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid #222;
  text-decoration: none;
  color: #222;
}
.btn.primary { background: #222; color: #fff; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px,1fr));
  gap: 8px;
}

.buttonu {
  display: inline-block;
  color: rgb(183, 39, 39);
  font-size: 120%;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}
.buttoni {
  display: inline-block;
  color: rgb(106, 61, 61);
  font-size: 100%;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

/* Varianten: nur Unterschiede (Hintergrund, Farbe, ggf. Textschatten) */
.card1 {
  background-image:
    linear-gradient(to bottom,
      rgba(0,0,0,.25) 0%,
      rgba(0,0,0,.20) 20%,
      rgba(0,0,0,.15) 50%,
      rgba(0,0,0,.20) 80%,
      rgba(0,0,0,.25) 100%),
    url("../Pics/GeistigesHeilen.jpg");
  color:#fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}
.card2 {
  /* Weicherer Verlauf ohne sichtbaren Mittelstreifen */
  background-image:
     linear-gradient(to bottom,
      rgba(0,0,0,.30) 0%,
      rgba(0,0,0,.25) 20%,
      rgba(0,0,0,.20) 50%,
      rgba(0,0,0,.25) 80%,
      rgba(0,0,0,.30) 100%),
    url("../Pics/ILifeSOMM.jpg");
  color:#fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}
.card3 {
  background-image:
     linear-gradient(to bottom,
      rgba(0,0,0,.25) 0%,
      rgba(0,0,0,.20) 20%,
      rgba(0,0,0,.15) 50%,
      rgba(0,0,0,.20) 80%,
      rgba(0,0,0,.25) 100%),
    url("../Pics/HandeWirbel.jpg");
  color:#fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}
.card4 {
  background-image:
     linear-gradient(to bottom,
      rgba(0,0,0,.25) 0%,
      rgba(0,0,0,.20) 20%,
      rgba(0,0,0,.15) 50%,
      rgba(0,0,0,.20) 80%,
      rgba(0,0,0,.25) 100%),
    url("../Pics/YingYang.jpg");
  color:#fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}

.card5 {
  background-image:
     linear-gradient(to bottom,
      rgba(0,0,0,.25) 0%,
      rgba(0,0,0,.20) 20%,
      rgba(0,0,0,.15) 50%,
      rgba(0,0,0,.20) 80%,
      rgba(0,0,0,.25) 100%),
   url("../Pics/Blume.jpg");
  color:#fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}
.card6 {
  background-image:
    linear-gradient(to bottom,
      rgba(0,0,0,.30) 0%,
      rgba(0,0,0,.25) 20%,
      rgba(0,0,0,.20) 50%,
      rgba(0,0,0,.25) 80%,
      rgba(0,0,0,.30) 100%),
    url("../Pics/Buch.jpg");
  color:#fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}

/* Gemeinsame Basisstile für alle Karten */
.card {
  display: flex;                 /* Inhalte zentrieren */
  align-items: center;
  justify-content: center;
  border: 1px solid #eee;
  border-radius: var(--radius);
  padding: 4px;
  text-decoration: none;
  background-size: cover;
  background-position: center;
  text-align: center;
  transition: transform 0.2s;
  aspect-ratio: 1 / 1;           /* quadratisch */
  width: min(100%, 200px);       /* sorgt für konsistente Quadrate, schrumpft auf kleinen Screens */
}
.small-card {
  width: 180px;
  height: 100px;
  aspect-ratio: unset;
  padding: 8px;
  border: 2px solid #ccc;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
form label { display:block; margin-top: 12px; font-weight: 600; }
input, select, textarea {
  width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 8px;
}
.muted { color: #666; font-size: .95rem; }
footer { margin-top: 48px; font-size: .95rem; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; }
.footer-admin { font-size: .85rem; color: #666; }
.footer-admin a { color: #666; text-decoration: none; }
.footer-admin a:hover { text-decoration: underline; }
.center { text-align: center; }
.arzthinweis {
    font-style: italic;
    font-size: 0.8em;  /* Oder 12px für fester Größe */
}

.text-mit-bild{
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: var(--maxw); margin: 0 auto; padding: 8px;
}
.text-mit-bild img {
  width: 120px;
  height: auto;
  border-radius: 10px;
}
.text-mit-bild p {
  margin: 4px;
}
.text-mit-bild figure {
  margin: 4px;
}
#BildMom {
  width: 200px;
}
.cards-container {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-start;   /* links ausrichten */
  align-items: flex-start;       /* verhindert Stretching -> Quadrate bleiben quadratisch */
}
.card:hover{
  transform: scale(1.02);
}

/* === Formulare === */
form {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  max-width: 500px;
}

form label {
  display: block;
  margin-bottom: 1rem;
}

form input, form textarea, form select {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-top: 0.3rem;
  font-size: 1rem;
}

form button {
  background: #f05f94;
  color: white;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  transition: background 0.3s;
}

form button:hover {
  background: #d94c7e;
}

/* === Admin Styles aus server.js ausgelagert === */
.admin-page { margin: 20px; font-family: system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Helvetica,Arial,sans-serif; }
.admin-page table { border-collapse: collapse; width: 100%; max-width: 900px; margin-bottom: 24px; }
.admin-page th, .admin-page td { border: 1px solid #ccc; padding: 8px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
input[type="time"] { width: 120px; }
.inline-form { display: inline; }
.mt-6 { margin-top: 6px; }
.admin-propose-form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.minw-200 { min-width: 200px; }
.honeypot { display: none; }
