/* Railengineering – statische Seite (Nachbau der WordPress/Elementor-Seite, 2026-09-09).
   Farben und Schriften wie im alten Elementor-Kit: Hintergrundverlauf #8BA0E4 → #E4DCDE,
   Akzent #DD0B24, Text #7A7A7A, Roboto/Open Sans. */

:root {
  --akzent: #DD0B24;
  --primaer: #6972DF;
  --text: #7A7A7A;
  --dunkel: #1f2124;
  --reiter-hg: #f1f2f3;
  --breite: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Roboto, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: #E4DCDE linear-gradient(180deg, rgba(139, 160, 228, 0.91) 0%, #E4DCDE 23%) no-repeat;
  background-attachment: scroll;
  background-size: 100% 100%;
}

.seite {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 10px 10px 30px;
}

/* Kopf: großes Bild + Reiter */
.kopf { text-align: center; }
.kopfbild { display: block; }
.kopfbild img {
  max-width: 100%;
  height: auto;
  display: inline-block;
  vertical-align: middle;
}

.reiter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 20px;
}
.reiter a {
  flex: 1 1 auto;
  padding: 18px 24px;
  background: var(--reiter-hg);
  color: var(--dunkel);
  font-weight: 500;
  font-size: 18px;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s, color 0.15s;
}
.reiter a:hover,
.reiter a.aktiv {
  background: var(--akzent);
  color: #fff;
}

/* Inhaltstafeln */
.tafel { padding: 10px 0 20px; }
.tafel[hidden] { display: none; }
.text { padding: 0 10px; }

h2, h3, h4 { color: var(--text); font-weight: 700; line-height: 1.3; }
h2 { font-size: 28px; margin: 10px 0 20px; }
h3 { font-size: 22px; margin: 26px 0 12px; }
h3.leicht { font-weight: 400; font-size: 18px; }
h4 { font-size: 18px; margin: 14px 0 8px; }
p { margin: 0 0 14px; }
a { color: var(--primaer); }
a:hover { color: var(--akzent); }
hr { border: 0; border-top: 1px solid #ccc; margin: 24px 0; }
ol, ul { padding-left: 28px; }
li { margin-bottom: 6px; }
strong { font-weight: 700; }

/* Partner-Logos */
.partner-raster {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 20px;
  padding: 0 10px;
  align-items: end;
}
.partner { text-align: center; }
.partner h4 { min-height: 2.6em; display: flex; align-items: flex-end; justify-content: center; }
.partner img { max-width: 100%; width: auto; object-fit: contain; display: inline-block; }

/* Anfahrt / Kontakt */
.kontakt {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}
.anfahrt {
  font-family: Tahoma, Verdana, sans-serif;
  font-size: 18px;
  line-height: 23px;
  padding: 10px;
}
.anfahrt h4 { font-family: inherit; font-weight: 400; font-size: 18px; line-height: 23px; }
.karte { min-height: 305px; background: rgba(255, 255, 255, 0.4); display: flex; align-items: center; justify-content: center; }
.karte iframe { width: 100%; height: 305px; border: 0; display: block; }
.karte-laden {
  cursor: pointer;
  border: 0;
  background: var(--akzent);
  color: #fff;
  font: inherit;
  font-weight: 500;
  padding: 16px 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.karte-laden small { font-weight: 400; font-size: 13px; opacity: 0.9; }
.karte-laden:hover { background: #b80920; }

/* Impressum */
.impressum table { border-collapse: collapse; font-size: 18px; }
.impressum th, .impressum td { text-align: left; vertical-align: top; padding: 4px 24px 4px 0; font-weight: 400; }
.impressum th { font-weight: 700; white-space: nowrap; }
.impressum tr.leer th { height: 1em; }

/* Fuß */
.fuss {
  margin-top: 40px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 14px;
  text-align: center;
}
.fuss a { color: var(--text); text-decoration: none; }
.fuss a:hover { color: var(--akzent); }

@media (max-width: 1024px) {
  .partner-raster { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  body { font-size: 15px; }
  .reiter a { padding: 12px 10px; font-size: 15px; }
  .partner-raster, .kontakt { grid-template-columns: 1fr; }
  .partner img { max-height: 110px; height: auto !important; }
  .impressum th, .impressum td { display: block; padding: 0; }
  .impressum td { margin-bottom: 8px; }
}
