/* Schnittstelle Eschede – gemeinsames Stylesheet */

:root {
  --navy-dark: #001d42;   /* Seitenhintergrund */
  --navy: #002d71;        /* Hauptfläche, passt zum Logo-Hintergrund */
  --blue: #5975a3;        /* Kästen und Buttons */
  --blue-soft: #1d4285;
  --orange: #feac25;      /* Akzentfarbe */
  --white: #ffffff;
  --text-muted: #c9d4e8;
  --radius: 10px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Verdana, "DejaVu Sans", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--navy-dark);
  color: var(--white);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
}

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

a { color: var(--orange); }
a:hover, a:focus-visible { color: var(--white); }

.page {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  background: var(--navy);
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-top: 6px solid var(--orange);
}

.inner {
  position: relative;
  z-index: 1;
  padding: 0 clamp(16px, 5vw, 64px);
}

/* Orangefarbene Schrägstreifen wie auf der alten Seite – nur auf breiten Bildschirmen,
   dort bekommt der Inhalt genug Seitenabstand, damit nichts überdeckt wird */
@media (min-width: 1000px) {
  .page { border-top: 0; }
  .page::before,
  .page::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 260px;
    background: var(--orange);
    transform: skewX(-10deg);
    pointer-events: none;
  }
  .page::before { top: -10px; left: 24px; }
  .page::after { bottom: -10px; right: 24px; }
  .inner { padding: 0 84px; }
}

/* Kopfbereich */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 28px;
  padding-bottom: 20px;
}

.logo img { width: clamp(220px, 40vw, 380px); }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  display: block;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--orange);
  font-weight: 700;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.nav a:hover, .nav a:focus-visible { background: var(--orange); color: var(--navy); }
.nav a[aria-current="page"] { background: var(--white); color: var(--navy); }

.slogan {
  margin: 0 0 24px;
  color: var(--orange);
  font-weight: 700;
  letter-spacing: .02em;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { color: var(--orange); font-size: clamp(1.6rem, 4vw, 2.2rem); }
h2 { color: var(--orange); font-size: 1.3rem; }
h3 { font-size: 1.05rem; }

main { flex: 1; padding-bottom: 40px; }

.hero {
  margin: 0 0 32px;
  border-radius: var(--radius);
  overflow: hidden;
}
.hero img { width: 100%; aspect-ratio: 1010 / 165; object-fit: cover; }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 24px;
}

.card {
  background: var(--blue-soft);
  border-left: 5px solid var(--orange);
  border-radius: var(--radius);
  padding: 22px 24px;
}

/* Öffnungszeiten */
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: 6px 0; text-align: left; vertical-align: top; }
.hours th { font-weight: 400; color: var(--text-muted); padding-right: 16px; }
.hours td { font-weight: 700; white-space: nowrap; }
.hours .closed td { color: var(--orange); }
.note { margin: 12px 0 0; font-size: .9rem; color: var(--text-muted); }

.contact { margin: 0; padding: 0; list-style: none; }
.contact li { padding: 4px 0; }
.contact a { font-weight: 700; word-break: break-word; }

/* Team */
.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.member {
  background: var(--blue-soft);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.member img {
  width: 100%;
  aspect-ratio: 390 / 461;
  object-fit: cover;
}

.member-body { padding: 14px 16px 18px; }
.member h3 { color: var(--orange); margin: 0; }
.role { margin: 0 0 10px; color: var(--text-muted); font-size: .92rem; }

.shifts { margin: 0; padding: 0; list-style: none; font-size: .93rem; }
.shifts li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.shifts li:first-child { border-top: 0; }
.shifts span:last-child { font-weight: 700; white-space: nowrap; }
.shifts .info { justify-content: flex-start; color: var(--text-muted); }
.shifts .info span { font-weight: 400; white-space: normal; }

.section { margin-top: 36px; }

/* Impressum */
.legal p { margin: 0 0 1em; }
.legal dl { margin: 0; }
.legal dt { color: var(--text-muted); font-size: .9rem; }
.legal dd { margin: 0 0 10px; font-weight: 600; }

/* Fußbereich */
.site-footer {
  border-top: 3px solid var(--orange);
  background: var(--navy-dark);
  padding-top: 20px;
  padding-bottom: 24px;
  font-size: .92rem;
  color: var(--text-muted);
}
.site-footer .inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}
.site-footer a { color: var(--orange); }

@media (max-width: 600px) {
  .site-header { justify-content: center; text-align: center; }
  .nav { justify-content: center; }
  h1, .slogan { text-align: center; }
  .team { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .member-body { padding: 10px 10px 14px; }
  .shifts { font-size: .85rem; }
  .hero img { aspect-ratio: 16 / 7; }
}
