:root {
  --blue-dark: #1d3f66;
  --blue: #2e5a86;
  --blue-header: #2b5885;
  --yellow: #f2c21b;
  --text: #555a60;
  --white: #ffffff;
  --gutter: clamp(16px, 4vw, 42px);
  --font-sans: "Open Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-head: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --font-ui: "Fira Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-script: "Segoe Script", "Brush Script MT", "Snell Roundhand", cursive;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  hyphens: auto;
}

main {
  flex: 1;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Header ---------- */

.site-header {
  background: linear-gradient(90deg, var(--blue-dark) 0%, var(--blue-header) 100%);
  border-bottom: 7px solid var(--yellow);
  color: var(--white);
}

.site-header .container {
  display: flex;
  align-items: center;
  min-height: clamp(84px, 12vw, 120px);
  padding-block: 16px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.1;
}

.brand-tagline {
  font-family: var(--font-script);
  font-size: clamp(0.85rem, 0.75rem + 0.6vw, 1.15rem);
  line-height: 1.3;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(720px, calc(100vh - 127px));
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg,
      rgba(255, 255, 255, 0.97) 0%,
      rgba(255, 255, 255, 0.92) 32%,
      rgba(255, 255, 255, 0.6) 46%,
      rgba(255, 255, 255, 0) 62%),
    url("assets/florian-haenle-rathaus.jpg");
  background-size: cover;
  background-position: right center;
  animation: slowzoom 20s ease-out forwards;
}

@keyframes slowzoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1); }
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: clamp(40px, 6vw, 72px);
}

.hero-content > * {
  max-width: min(580px, 44%);
}

.kicker {
  margin: 0 0 20px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: clamp(0.8rem, 0.7rem + 0.3vw, 1rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  hyphens: manual;
}

h1 {
  margin: 0 0 clamp(24px, 3vw, 36px);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.1rem, 1rem + 4.2vw, 4.9rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--blue-dark);
  hyphens: manual;
}

.maintenance {
  padding-left: clamp(16px, 2vw, 24px);
  border-left: 5px solid var(--yellow);
}

.status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}

.status-dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--yellow);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(242, 194, 27, 0.7); }
  50%      { box-shadow: 0 0 0 6px rgba(242, 194, 27, 0); }
}

.lead-title {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.2rem, 1rem + 0.8vw, 1.5rem);
  line-height: 1.3;
  color: var(--blue-dark);
  hyphens: manual;
}

.lead {
  margin: 0;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem);
  font-weight: 300;
  line-height: 1.75;
  color: var(--text);
}

/* ---------- Footer ---------- */

.site-footer {
  background: #16324f;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px 24px;
  padding-block: 20px;
}

.footer-tagline {
  font-family: var(--font-script);
  font-size: 0.95rem;
}

/* ---------- Desktop: alles auf einen Blick, ohne Scrollen ---------- */

@media (min-width: 1141px) and (min-height: 520px) {
  body {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  main {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .site-header .container {
    min-height: clamp(72px, 12vh, 120px);
    padding-block: 12px;
  }

  .hero {
    flex: 1;
    min-height: 0;
  }

  .hero-bg {
    background-position: right 25%;
  }

  .hero-content {
    padding-block: clamp(16px, 4vh, 64px);
  }

  .kicker {
    margin-bottom: clamp(10px, 2vh, 20px);
  }

  h1 {
    font-size: clamp(2.4rem, min(1rem + 4.2vw, 8vh), 4.9rem);
    margin-bottom: clamp(16px, 3.5vh, 36px);
  }

  .lead-title {
    font-size: clamp(1.15rem, 2.6vh, 1.5rem);
  }

  .lead {
    font-size: clamp(0.95rem, 2vh, 1.2rem);
    line-height: 1.65;
  }

  .footer-inner {
    padding-block: 14px;
  }
}

/* ---------- Tablet & Mobile: Bild oben, Text darunter ---------- */

@media (max-width: 1140px) {
  .hero {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }

  .hero-bg {
    position: relative;
    height: clamp(230px, 52vw, 460px);
    background-image: url("assets/florian-haenle-rathaus.jpg");
    background-position: 80% 25%;
    animation: none;
  }

  .hero-content > * {
    max-width: 680px;
  }
}

@media (max-width: 600px) {
  /* Slogan füllt die volle Breite, bleibt aber einzeilig */
  .brand-tagline {
    font-size: min(1.15rem, calc((100vw - 2 * var(--gutter)) / 23.5));
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg,
  .status-dot {
    animation: none;
  }
}
