/* Weltladen Langenau – Stylesheet der veröffentlichten Seite.
   Mobil zuerst; ab 700 px Spalten. Regeln hängen an den Blockarten, nicht an einzelnen Seiten. */

:root {
  --gruen: #E9FE94;
  --rot: #DE2D4A;
  --grau: #EEEEEE;
  --dunkel: #333333;
  --text: #1d1d1b;
  --text-leise: #555555;
  --link: #1f4fa3;
  --abstand: 1.25rem;
  --breite: 1300px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--grau);
  color: var(--text);
  font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

/* Bilder nie größer als ihre echte Größe anzeigen, sonst werden sie unscharf */
img { max-width: 100%; height: auto; display: block; }

a { color: var(--link); }
a:hover, a:focus { color: var(--rot); }

h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 .8em; }
ul, ol { margin: 0 0 .8em; padding-left: 1.4em; }

/* Seite und Rahmen */

.seite {
  max-width: var(--breite);
  margin: 0 auto;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.5rem;
  padding: .75rem var(--abstand) 0;
  border-bottom: 5px solid #ccc;
}

.navigation { flex: 1 1 auto; align-self: stretch; display: flex; align-items: flex-end; }
.navigation ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; width: 100%; }
.navigation li { flex: 1 1 auto; }
.navigation a {
  display: block;
  text-align: center;
  padding: .7rem 1rem;
  background: var(--dunkel);
  color: #fff;
  text-decoration: none;
  font-size: 1.05rem;
  border-radius: 6px 6px 0 0;
}
.navigation a:hover, .navigation a:focus, .navigation a.aktiv { background: var(--rot); color: #fff; }

.inhalt { flex: 1; padding: var(--abstand) 0; }
.inhalt > * { margin: 0 var(--abstand) var(--abstand); }

.fuss {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.5rem;
  padding: 1rem var(--abstand);
  background: #000;
  color: #fff;
  font-size: .9rem;
}
.fuss a { color: #fff; }
.fuss a:hover { color: var(--gruen); }

/* Banner der Startseite: Logo | Öffnungszeiten | Kirche */

.banner { display: grid; grid-template-columns: 1fr 1fr; gap: var(--abstand); align-items: center; }
.banner__logo img { width: 100%; max-width: 200px; }
.banner__kirche { justify-self: end; }
.banner__kirche img { width: auto; max-height: 140px; }
.banner .oeffnungszeiten { grid-column: 1 / -1; grid-row: 2; }

/* Jeder Block steht in einem Kasten: grau, außer ausdrücklich grün oder weiß */

.panel, .produkt, .kacheln, .neu-bereich, .karte { padding: var(--abstand); border-radius: 4px; background: var(--grau); }
.panel--grau { background: var(--grau); }
.panel--gruen { background: var(--gruen); }
.panel--weiss { background: #fff; border: 1px solid #e2e2e2; }
.panel > h2 { padding-bottom: .35rem; border-bottom: 2px solid #808080; }
.panel--gruen > h2 { border-bottom-color: var(--rot); }
.panel .text > :last-child { margin-bottom: 0; }
.panel__bild img { border-radius: 4px; }
.panel--mit-bild { display: grid; gap: var(--abstand); }

.galerie {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .6rem;
  margin-top: 1rem;
}
.galerie img, .galerie a { width: 100%; }
.galerie img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }

.pdfs { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .4rem; }
.pdf-link { display: inline-flex; align-items: center; gap: .5rem; }
.pdf-link::before {
  content: "PDF";
  font-size: .7rem;
  font-weight: 700;
  color: #fff;
  background: var(--rot);
  padding: .1rem .35rem;
  border-radius: 3px;
}

/* Öffnungszeiten */

.oeffnungszeiten { border-left: 4px solid var(--rot); padding: .25rem 0 .25rem 1rem; }
.oeffnungszeiten h2 { font-size: 1.6rem; }
.oeffnungszeiten dl { margin: 0; display: grid; gap: .35rem; font-size: 1.1rem; }
.oeffnungszeiten dl div { display: grid; grid-template-columns: 7.5rem 1fr; gap: .5rem; }
.oeffnungszeiten dt { font-weight: 700; }
.oeffnungszeiten dd { margin: 0; }
.oeffnungszeiten__hinweis { margin: .6rem 0 0; color: var(--rot); font-weight: 700; }

/* Produkte */

.produkt { display: grid; gap: 1rem; }
.produkt__bild img { border-radius: 4px; }
.produkt__text h2 { font-size: 1.25rem; }
.produkt__text > :last-child { margin-bottom: 0; }

/* Neu */

.neu-bereich { border: 3px solid var(--gruen); background: var(--gruen); display: grid; gap: var(--abstand); }
.neu-bereich .produkt, .neu-bereich .panel { background: var(--grau); }
.neu-bereich__schild img { width: 160px; }
.neu-bereich__produkte { display: grid; gap: var(--abstand); }

.neu-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; padding: var(--abstand) 0; border-top: 1px solid #ddd; }
.neu-banner__schild img { width: 160px; }
.neu-banner__text { flex: 1 1 16rem; font-size: 1.35rem; }
.neu-banner__text > :last-child { margin-bottom: 0; }

/* Kacheln */

.kacheln ul { list-style: none; margin: 0; padding: 0; }
.kacheln--rubriken ul { display: grid; gap: var(--abstand); }
.kacheln--rubriken a { display: block; text-decoration: none; color: var(--text); }
.kacheln--rubriken img { border-radius: 4px; transition: opacity .2s; }
.kacheln--rubriken a:hover img { opacity: .85; }
.kachel__titel { display: block; font-size: 1.2rem; font-weight: 700; margin-bottom: .4rem; }
.kacheln--logos ul { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.kacheln--logos img { height: 64px; width: auto; }

/* Willkommen auf der Startseite */

#willkommen .panel__bild img { border: 6px solid #fff; border-radius: 2px; box-shadow: 0 8px 22px rgba(0, 0, 0, .18); }
#willkommen .text { font-size: 1.5rem; line-height: 1.35; padding-bottom: .5rem; border-bottom: 4px solid var(--rot); }

/* Karte */

.karte iframe { display: block; width: 100%; height: 420px; border: 0; border-radius: 4px; }
.karte p { margin: .6rem 0 0; }

/* Kontaktformular */

.formular iframe { width: 100%; min-height: 1800px; border: 0; }

/* Schriftgrößen aus dem Editor */

.gr-10 { font-size: 10px; } .gr-11 { font-size: 11px; } .gr-12 { font-size: 12px; }
.gr-13 { font-size: 13px; } .gr-14 { font-size: 14px; } .gr-15 { font-size: 15px; }
.gr-16 { font-size: 16px; } .gr-17 { font-size: 17px; } .gr-18 { font-size: 18px; }
.gr-20 { font-size: 20px; } .gr-22 { font-size: 22px; } .gr-24 { font-size: 24px; }
.gr-26 { font-size: 26px; } .gr-28 { font-size: 28px; } .gr-32 { font-size: 32px; }
.gr-36 { font-size: 36px; }

/* Handy: große Schrift etwas zurücknehmen, damit nichts über den Rand läuft */

@media (max-width: 600px) {
  :root { --abstand: 1rem; }
  .gr-24 { font-size: 22px; } .gr-26 { font-size: 23px; } .gr-28 { font-size: 24px; }
  .gr-32 { font-size: 26px; } .gr-36 { font-size: 28px; }
  .navigation a { padding: .6rem .5rem; font-size: 1rem; }
  .oeffnungszeiten dl div { grid-template-columns: 1fr; gap: 0; }
  .oeffnungszeiten dl div + div { margin-top: .4rem; }
  .banner__logo img { max-width: 140px; }
  .banner__kirche img { max-height: 100px; }
}

/* Ab Tablet: Spalten */

@media (min-width: 700px) {
  .banner { grid-template-columns: auto 1fr auto; gap: 3rem; padding: .5rem 0; }
  .banner .oeffnungszeiten { grid-column: auto; grid-row: auto; }
  .banner__logo img { width: 200px; max-width: none; }
  .panel--mit-bild { grid-template-columns: 1fr 1fr; align-items: start; }
  #willkommen { align-items: center; }
  .seite-kontakt .inhalt { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); column-gap: var(--abstand); align-items: start; padding: var(--abstand); }
  .seite-kontakt .inhalt > * { grid-column: 2; margin: 0 0 var(--abstand); }
  /* Karte links so hoch wie alle Infos rechts zusammen */
  .seite-kontakt .inhalt > .karte { grid-column: 1; grid-row: 1 / span 20; align-self: stretch; display: flex; flex-direction: column; margin-bottom: 0; }
  .seite-kontakt .inhalt > :nth-last-child(1 of :not(.karte)) { margin-bottom: 0; }
  .seite-kontakt .karte iframe { flex: 1; height: auto; min-height: 420px; }
  .panel--mit-bild > h2 { grid-column: 1 / -1; }
  .galerie { display: flex; flex-wrap: wrap; gap: .75rem; }
  .galerie img, .galerie a { width: auto; }
  .galerie img { height: 160px; aspect-ratio: auto; object-fit: initial; }
  .produkt { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: start; }
  .produkt--ohne-bild { grid-template-columns: 1fr; }
  .neu-bereich { grid-template-columns: 180px 1fr; align-items: start; }
  .kacheln--rubriken ul { grid-template-columns: repeat(2, 1fr); }
  .seite-start .oeffnungszeiten { margin-top: .5rem; }
}
