/* ==========================================================================
   META Zinkbeschichtungen — responsive stylesheet
   Mobile-first: base rules target phones, larger screens are added via
   min-width media queries.
   ========================================================================== */

:root {
  --font-family: verdana, tahoma, arial, helvetica, sans-serif;
  --color-text: #333333;
  --color-text-muted: #555555;
  --color-heading: #000080;
  --color-alert: #cc0033;
  --color-link: #333333;
  --color-link-hover: #cc0033;
  --color-surface: #ffffff;
  --color-nav-bg: #eeeeee;
  --color-nav-bg-active: #dddddd;
  --color-border: #dddddd;
  --page-max-width: 1040px;
  --content-max-width: 46rem;
}

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

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

body {
  margin: 0;
  font-family: var(--font-family);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--color-text);
  background-color: #f4f4f4;
}

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

a {
  color: var(--color-link);
  text-decoration: none;
}
a:hover,
a:focus {
  color: var(--color-link-hover);
  text-decoration: underline;
}

/* Visually hidden but still available to assistive tech / search engines */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site {
  max-width: var(--page-max-width);
  margin: 0 auto;
  background: var(--color-surface);
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.12);
}

/* ---- Header ---- */
.site-header {
  padding: clamp(1rem, 4vw, 2rem) clamp(1rem, 4vw, 2.5rem) 0;
}

.logo-link {
  display: block;
  max-width: 420px;
  margin: 0 auto 1rem;
}

.hero-image {
  margin: 0 -0.01px; /* avoid sub-pixel gap under image */
}

.tagline-bar {
  margin: 0.35rem 0 0;
}

/* ---- Navigation ---- */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-top: clamp(1rem, 3vw, 1.5rem);
}

.site-nav a {
  flex: 1 1 auto;
  text-align: center;
  padding: 0.9rem 1rem;
  background: var(--color-nav-bg);
  border-right: 1px solid var(--color-surface);
  font-weight: normal;
}

.site-nav a:last-child {
  border-right: none;
}

.site-nav a:hover,
.site-nav a:focus {
  text-decoration: none;
  background: var(--color-nav-bg-active);
}

.site-nav a[aria-current="page"] {
  background: var(--color-nav-bg-active);
  font-weight: bold;
}

/* ---- Main content ---- */
.site-main {
  padding: clamp(1.25rem, 4vw, 2.5rem) clamp(1rem, 4vw, 2.5rem);
}

.content {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.content h1 {
  color: var(--color-heading);
  font-size: 1.35rem;
  font-weight: normal;
  line-height: 1.35;
  margin: 0 0 1rem;
}

.content h2 {
  color: var(--color-text);
  font-size: 1.2rem;
  margin: 1.75rem 0 0.75rem;
}

.content h3 {
  color: var(--color-text);
  font-size: 1rem;
  font-weight: bold;
  margin: 1.5rem 0 0.5rem;
}

.content p {
  margin: 0 0 1rem;
}

.content .alert {
  color: var(--color-alert);
  font-style: italic;
  font-size: 1.05rem;
  margin: 0 0 1.25rem;
}

.content .downloads {
  margin: 1.25rem 0;
  padding: 1rem;
  background: #f7f7f7;
  border: 1px solid var(--color-border);
}

.content .downloads p {
  margin: 0 0 0.4rem;
}
.content .downloads p:last-child {
  margin-bottom: 0;
}

address {
  font-style: normal;
}

/* Legal pages (Impressum / Datenschutz) read more comfortably a touch
   narrower and with slightly smaller body copy given their length */
.legal h3 {
  font-size: 0.95rem;
}
.legal p {
  font-size: 0.95rem;
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 1rem clamp(1rem, 4vw, 2.5rem) 1.5rem;
  text-align: center;
}

.site-footer nav {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.site-footer nav a {
  margin: 0 0.5rem;
}

/* ---- Breakpoints ---- */
@media (min-width: 600px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .logo-link {
    margin: 0 0 1rem;
  }

  .site-nav {
    justify-content: flex-start;
    border-bottom: none;
  }

  .site-nav a {
    flex: 0 0 auto;
    min-width: 8rem;
    border: 1px solid var(--color-border);
    border-bottom: none;
  }

  .content .downloads {
    display: inline-block;
  }
}

@media (min-width: 900px) {
  .site-main {
    padding-left: clamp(1rem, 4vw, 3rem);
    padding-right: clamp(1rem, 4vw, 3rem);
  }

  .content h1 {
    font-size: 1.6rem;
  }

  .content .alert {
    font-size: 1.15rem;
  }
}

/* Respect reduced-motion / print sanity */
@media print {
  .site-nav {
    display: none;
  }
  .site {
    box-shadow: none;
  }
}
