@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/roboto-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                 U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
                 U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/cinzel-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                 U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
                 U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

html, body {
  height: 100%;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: #e8e8e4;
  color: #c3c4cb;
}

/* ── Header ───────────────────────────────────────────── */
header {
  background-color: #d1d1d7;
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

header img {
  max-height: 80px;
  max-width: 320px;
  object-fit: contain;
}

#logo-text {
  display: none;
  font-family: 'Cinzel', serif;
  font-size: 24px;
  font-weight: 700;
  color: #243c7a;
  letter-spacing: 1px;
}

/* ── Nav-Bar ──────────────────────────────────────────── */
nav {
  background-color: #243c7a;
  padding: 0 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 0;
}

nav ul li a {
  display: block;
  color: #fcfcf8;
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 14px 20px;
  transition: color 0.2s;
  border-bottom: 3px solid transparent;
}

nav ul li a:hover {
  color: #faa620;
}

nav ul li a.active {
  color: #faa620;
  border-bottom-color: #faa620;
}

/* ── Sections (pages) ─────────────────────────────────── */
.page-section {
  display: none;
  flex-direction: column;
  flex: 1;
}

.page-section.visible {
  display: flex;
}

/* ── Hero-Slider (Startseite) ─────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #aeafb3;
  min-height: 200px;
}

.hero-slides {
  display: flex;
  width: 200%;
  animation: slide 12s infinite;
}

.hero-slides img {
  width: 50%;
  height: clamp(340px, 52vw, 560px);
  object-fit: cover;
  object-position: center;
  display: block;
}

@keyframes slide {
  0%   { transform: translateX(0); }
  45%  { transform: translateX(0); }
  50%  { transform: translateX(-50%); }
  95%  { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* ── Orange Trennlinie ────────────────────────────────── */
.section-divider {
  border: none;
  border-top: 5px solid #faa620;
  margin: 0;
}

/* ── Startseite: Wartungstext ─────────────────────────── */
.main-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.message-box {
  max-width: 640px;
}

.message-box .icon {
  margin-bottom: 24px;
}

.message-box .icon svg {
  width: 56px;
  height: 56px;
  opacity: 0.5;
}

.message-box h1 {
  font-family: 'Cinzel', serif;
  font-size: 32px;
  font-weight: 400;
  color: #243c7a;
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.message-box p {
  font-size: 17px;
  font-weight: 300;
  color: #a8a9b3;
  line-height: 1.7;
  margin-bottom: 12px;
}

.message-box .divider {
  width: 60px;
  height: 4px;
  background-color: #faa620;
  margin: 28px auto;
  border-radius: 2px;
}

/* ── Impressum / Haftungsausschluss ───────────────────── */
.text-page {
  flex: 1;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 40px 60px;
}

.text-page h2 {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  font-weight: 400;
  color: #243c7a;
  margin-bottom: 8px;
  margin-top: 40px;
  letter-spacing: 0.3px;
}

.text-page h2:first-child {
  margin-top: 0;
}

.text-page p {
  font-size: 16px;
  font-weight: 300;
  color: #555;
  line-height: 1.8;
  margin-bottom: 6px;
}

.text-page .orange-rule {
  border: none;
  border-top: 5px solid #faa620;
  margin: 0 0 36px 0;
}

.text-page .orange-rule-bottom {
  border: none;
  border-top: 5px solid #faa620;
  margin: 40px 0 0 0;
}

/* ── Site-Wrapper (max-width) ─────────────────────────── */
.site-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-wrapper .page-section {
  flex: 1;
}

/* ── Footer ───────────────────────────────────────────── */
footer {
  background-color: #243c7a;
  padding: 20px 40px;
  text-align: center;
}

footer p {
  font-family: 'Cinzel', serif;
  color: #fcfcf8;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 600px) {
  header { padding: 18px 20px; }

  nav ul li a {
    font-size: 13px;
    padding: 12px 12px;
  }

  .message-box h1 { font-size: 26px; }

  .hero-slides img { height: 220px; }

  .main-content { padding: 40px 20px; }

  .text-page { padding: 32px 20px 48px; }

  .text-page h2 { font-size: 22px; }
}
