/* Basis */
* {
  box-sizing: border-box;
}

html {
  height: 100%; /* Wichtig, damit der Body 100% der Viewporthöhe einnehmen kann */
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #f5f6f8;
  color: #05162B; /* Textfarbe auf weißem Hintergrund */
  line-height: 1.6;

  /* Platz für fixen Header */
  padding-top: 90px;

  display: flex; /* Aktiviert Flexbox */
  flex-direction: column; /* Stapelt die Elemente vertikal */
  min-height: 100vh; /* Der Body muss mindestens die Höhe des Viewports haben */
}

main {
  background: #ffffff;
  flex: 1; /*Wichtig für Sticky Footer*/
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
  flex: 1;
}

/* Header fix oben */
.site-header {
  background: #1A3B63; /* dein Dunkelblau */
  color: #ffffff;
  padding: 0.9rem 0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.35);

  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  margin-left: -11px;
}

.logo img {
  height: 64px;   /* bei Bedarf anpassen */
  width: auto;
  display: block;
  object-fit: contain;
}

/* Navigation */
.main-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
  align-items: center;
}

.main-nav a {
  color: #E5E7EB;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.main-nav a:hover {
  color: #ffffff;
  border-bottom-color: #38bdf8;
}

.main-nav a.active {
  color: #ffffff;
  border-bottom-color: #38bdf8;
}

/* Dropdown-Menü bei "Produkte" */
.nav-item {
  position: relative;
}

.nav-item > a {
  display: inline-block;
}

/* Dropdown-Container */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
  padding: 0.4rem 0;
  min-width: 230px;

  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.12s ease, transform 0.12s ease;
  z-index: 1000;
}

/* Dropdown anzeigen beim Hover */
.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Links im Dropdown */
.dropdown a {
  display: block;
  padding: 0.4rem 1rem;
  color: #05162B;
  text-decoration: none;
  font-size: 0.9rem;
}

.dropdown a:hover {
  background: #E5E7EB;
}

/* Abschnitte */
.section {
  padding: 3rem 0;
  background: #ffffff;
}

.section-alt {
  background: #e5e7eb;
}

.section + .section {
  border-top: 1px solid #d1d5db;
}

h1,
h2 {
  margin-top: 0;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #05162B;
  scroll-margin-top: 100px;
}

h1 {
  font-size: 1.7rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

p {
  text-align: justify;
  /* Optional: Für bessere Silbentrennung in unterstützten Browsern */
  /*hyphens: auto; */
}

/* Produkte Übersicht / Boxen */
.product-list {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
}

.product-list li {
  background: #ffffff;
  border-radius: 10px;
  padding: 1.25rem 1.4rem;
  margin-bottom: 1rem;
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.03);
}

.product-list h3 {
  margin-top: 0;
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
  color: #05162B;
}

/* Kontaktbox */
.contact-box {
  margin-top: 1.5rem;
  background: #ffffff;
  padding: 1.4rem 1.5rem;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.03);
}

.contact-box a {
  color: #1A3B63;
  text-decoration: none;
}

.contact-box a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background: #1A3B63;
  color: #E5E7EB;
  padding: 1rem 0;
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-inner a {
  color: #ffffff;
  text-decoration: none;
}

.footer-inner a:hover {
  text-decoration: underline;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 15px; /* distance between  Icon and Impressum */
}

.mail-link {
    /* alignment of text and button */
    display: flex; 
    align-items: center;
}

.mail-icon {
  /* from https://www.svgrepo.com/svg/501544/email*/
  width: 1.2em;
  height: auto;
  margin-right: 7px;
}

  /*Images*/
  /* Styling für den gesamten Bildbereich (inkl. Caption) */
.chart-image {
  /* Entfernt Browser-Standard-Margin von <figure> */
  margin: 0; 
  /* Fügt etwas Platz über dem Bild hinzu, falls nötig. 
     Achtung: Der Body-Padding-Top sorgt bereits für Abstand zum fixed Header. */
  padding-top: 0rem; /*1,5rem*/ 
  padding-bottom: 0;
  width: 100%;
  max-height: 200px;
  overflow: hidden;
}

.chart-image-media {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.index-link {
  color:#1A3B63
}

/* Responsiv */
@media (max-width: 640px) {
  body {
    padding-top: 100px;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .main-nav {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .dropdown {
    position: static;
    box-shadow: none;
    margin-top: 0.25rem;
  }
}  

  /* --- Inter: Light (300) --- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/inter-v20-latin_latin-ext-regular.woff2') format('woff2');
  font-display: swap;
}

/* --- Inter: Regular (400) --- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/inter-v20-latin_latin-ext-regular.woff2') format('woff2');
  font-display: swap;
}

/* --- Inter: Medium (500) --- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/inter-v20-latin_latin-ext-regular.woff2') format('woff2');
  font-display: swap; 
}

/* --- Inter: Semi-Bold (600) --- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/inter-v20-latin_latin-ext-regular.woff2') format('woff2');
  font-display: swap;
}
