/* ==========================================================================
   Andreas Gärtner-Stiftung – Baustellen-/Wartungsseite
   Farben & Typografie übernommen aus dem Original-Theme (Astra/Elementor)
   ========================================================================== */

:root {
  --blau:        #004f9f;
  --blau-dunkel: #003366;
  --gelb:        #ffc744;
  --gelb-dunkel: #f2b204;
  --text:        #555555;
  --text-dunkel: #333333;
  --grau-bg:     #f4f6f9;
  --linie:       #e3e8ee;
  --weiss:       #ffffff;

  --font: "Calibri", "Carlito", "Segoe UI", -apple-system, BlinkMacSystemFont,
          Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap:   1140px;
  --radius: 6px;
  --shadow: 0 2px 14px rgba(0, 41, 82, .08);
}

/* --- Reset / Basis ------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  background: var(--weiss);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blau); text-decoration: underline; text-underline-offset: 2px; }
a:hover, a:focus { color: var(--blau-dunkel); }

h1, h2, h3 {
  color: var(--blau);
  line-height: 1.25;
  margin: 0 0 .6em;
  font-weight: 700;
}

address { font-style: normal; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--blau);
  color: #fff;
  padding: 12px 20px;
  z-index: 100;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--gelb-dunkel); outline-offset: 2px; }

/* --- Header ------------------------------------------------------------- */

.site-header {
  background: var(--weiss);
  border-bottom: 1px solid var(--linie);
  padding: 18px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.logo { width: 92px; height: auto; flex: none; }

.header-name {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blau);
  line-height: 1.2;
}

.header-claim {
  margin: 2px 0 0;
  font-size: .95rem;
  color: var(--text);
}

/* --- Hero --------------------------------------------------------------- */

.hero {
  background: linear-gradient(135deg, var(--blau-dunkel) 0%, var(--blau) 65%);
  color: var(--weiss);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding-top: 0;
  padding-bottom: 0;
}

.hero-text { padding: 72px 0; }

.hero-kicker {
  margin: 0 0 12px;
  color: var(--gelb);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .85rem;
}

.hero-title {
  color: var(--weiss);
  font-size: clamp(1.8rem, 1.1rem + 2.2vw, 2.8rem);
  margin: 0 0 18px;
}

.hero-sub {
  color: rgba(255, 255, 255, .95);
  font-size: 1.1rem;
  margin: 0;
  max-width: 30em;
}

.hero-media {
  align-self: stretch;
  display: flex;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  object-position: center 35%;
}

/* --- Sections ----------------------------------------------------------- */

.section { padding: 64px 0; }
.section-grey { background: var(--grau-bg); }

.section-title {
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem);
  text-align: center;
  margin-bottom: .35em;
}

.section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  border-radius: 2px;
  background: var(--gelb);
  margin: 18px auto 0;
}

.section-lead {
  text-align: center;
  max-width: 42em;
  margin: 20px auto 44px;
}

/* --- Intro-Karte -------------------------------------------------------- */

.card {
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-top: 5px solid var(--blau);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
}

.intro { max-width: 800px; margin: 0 auto; }
.intro h2 { font-size: 1.5rem; }
.intro p { margin: 0 0 1.1em; }
.intro p:last-child { margin-bottom: 0; }

.signature {
  color: var(--blau);
  font-weight: 700;
}

/* --- Kontaktkarten ------------------------------------------------------ */

.kontakt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.kontakt-card {
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 28px;
  text-align: center;
}

.kontakt-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--blau);
  color: var(--weiss);
  display: flex;
  align-items: center;
  justify-content: center;
}

.kontakt-icon svg { width: 30px; height: 30px; }

.kontakt-card h3 {
  font-size: 1.2rem;
  margin-bottom: .5em;
}

.kontakt-card p,
.kontakt-card address { margin: 0; }

.kontakt-card a { word-break: break-word; }

/* --- Hinweisbox --------------------------------------------------------- */

.hinweis {
  margin-top: 40px;
  background: #fff8e6;
  border: 1px solid var(--gelb);
  border-left: 6px solid var(--gelb-dunkel);
  border-radius: var(--radius);
  padding: 30px 32px;
}

.hinweis h3 {
  margin-top: 0;
  font-size: 1.2rem;
  color: var(--blau-dunkel);
}

.hinweis p { margin: 0 0 1em; }
.hinweis p:last-child { margin-bottom: 0; }

.hinweis-adresse {
  font-weight: 700;
  color: var(--text-dunkel);
}

/* --- Partnerlogos ------------------------------------------------------- */

.partner { text-align: center; padding: 52px 0; }

.partner-title {
  margin: 0 0 26px;
  font-size: .9rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8a939d;
}

.partner-logos {
  margin: 0 auto;
  max-width: 1000px;
  width: 100%;
}

/* --- Impressum ---------------------------------------------------------- */

.impressum-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  max-width: 950px;
  margin: 0 auto;
}

.impressum-grid h3 {
  font-size: 1.1rem;
  margin-top: 1.6em;
}
.impressum-grid h3:first-child { margin-top: 0; }

.impressum-grid p,
.impressum-grid address { margin: 0 0 1em; }

.bildnachweis { font-size: .88rem; color: #6b747d; }

/* --- Footer ------------------------------------------------------------- */

.site-footer {
  background: var(--blau-dunkel);
  color: rgba(255, 255, 255, .9);
  padding: 26px 0;
  font-size: .95rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
}

.site-footer p { margin: 0; }

.footer-links a { color: var(--gelb); text-decoration: none; }
.footer-links a:hover,
.footer-links a:focus { color: var(--weiss); text-decoration: underline; }

/* --- Responsive --------------------------------------------------------- */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 0;
    padding-left: 0;
    padding-right: 0;
  }
  .hero-text { padding: 56px 24px; }
  .hero-media img { min-height: 260px; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .hero-text { padding: 44px 0 32px; }
  .section { padding: 48px 0; }
  .card { padding: 28px 22px; }
  .hinweis { padding: 24px 22px; }
  .logo { width: 72px; }
  .header-name { font-size: 1.25rem; }
  .footer-inner { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* --- Druck -------------------------------------------------------------- */

@media print {
  .hero-media, .partner, .skip-link { display: none; }
  body { font-size: 12pt; color: #000; }
  .card, .kontakt-card, .hinweis { box-shadow: none; }
}
