/* ====== Ubuntu Font aus lokalem /font Ordner ====== */
@font-face {
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: 400;
  src: url('../font/ubuntu-v20-latin-regular.woff2') format('woff2'),
       url('../font/ubuntu-v20-latin-regular.woff') format('woff');
}
@font-face {
  font-family: 'Ubuntu';
  font-style: italic;
  font-weight: 400;
  src: url('../font/ubuntu-v20-latin-italic.woff2') format('woff2'),
       url('../font/ubuntu-v20-latin-italic.woff') format('woff');
}
@font-face {
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: 700;
  src: url('../font/ubuntu-v20-latin-700.woff2') format('woff2'),
       url('../font/ubuntu-v20-latin-700.woff') format('woff');
}

/* ====== Basis / Variablen ====== */
:root {
  --clr-header: #fff;
  --clr-hero:   #fff;
  --clr-intro:  #fff;
  --clr-footer: #fff;
  --clr-text:   #666666;
  --maxw: 1200px;

  /* Headerhöhe für 80%-Berechnung auf Desktop */
  --header-h: 96px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Ubuntu', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--clr-text);
  line-height: 1.6;
}

.container {
  width: min(100% - 2rem, var(--maxw));
  margin-inline: auto;
}

/* ====== Links ====== */
a {
  color: #8d124e;
  text-decoration: none;
}
a:hover,
a:focus {
  text-decoration: underline;
}

/* ====== Header (Top-Bereich) ====== */
.site-header {
  background: var(--clr-header);
  border-bottom: 1px solid rgba(0,0,0,.06);
  min-height: var(--header-h);
}

.header-inner {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  padding: 1rem 0;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.logo img {
  display: block;
  height: clamp(48px, 7vw, 80px);
  width: auto;
}

#headertxt {
  flex: 0 0 auto;
  font-size: 1.2rem;
  font-weight: 500;
  color: #8d124e;
  line-height: 1.1;
  letter-spacing: .5px;
  text-transform: none;
  white-space: nowrap;
}

/* Mobile Schriftgröße für Headertxt */
@media (max-width: 640px) {
  #headertxt { font-size: 0.7rem; }
}

/* ====== Masthead + Hero ====== */
.masthead { background: transparent; }
.hero {
  background: var(--clr-hero);
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* wichtig für Zoom-Effekt */
}

/* Bild standardmäßig vollflächig im Container, immer top-basiert */
.hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;             /* füllt Container */
  object-position: top center;   /* Start oben – nie abgeschnitten */
  transform-origin: center top;  /* Zoom beginnt von oben */
  transition: transform 0.6s ease;
}

/* Hover-Effekt nur auf Desktop (Mausgeräte) */
@media (hover: hover) and (pointer: fine) {
  .hero img:hover {
    transform: scale(1.05);
    will-change: transform;
  }
}

h1 { 
  color: #8d124e;
  padding-top: 1rem;
}

/* ====== Footer ====== */
.site-footer {
  margin: 40px 0;
  padding: 20px 0 30px;
}
.linie {
  border-top: 4px solid #8D124E;
}

/* Footer Layout – Desktop */
.footer-company,
.footer-mail {
  display: inline;
}
.footer-sep {
  display: inline;
}

/* Footer Layout – Mobile: untereinander, ohne Trenner */
@media (max-width: 640px) {
  .footer-sep {
    display: none;
  }
  .footer-company,
  .footer-mail {
    display: block;
    margin: 0.25rem 0;
  }
}

/* ====== Desktop: Header + Bild zusammen ≈ 80% Viewporthöhe ====== */
@media (min-width: 1024px) {
  .hero {
    height: calc(80vh - var(--header-h));  /* fester Rahmen */
  }
}

/* ====== Unter 1024px: Bild nicht beschneiden, Höhe frei ====== */
@media (max-width: 1023.98px) {
  .hero { height: auto; }
  .hero img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: top center;
  }
}
