/* ============================================================
   LOKALE EINBINDUNG: INTER FONT (ganz oben einfügen)
   ============================================================ */

@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-v19-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-v19-latin-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-v19-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   STEP 1: FARBTEMPLATE (CSS-VARIABLEN)
   ============================================================ */

:root {
  --color-primary: #007b8f;
  --color-primary-dark: #005f6b;
  --color-primary-light: #339fb8;
  --color-accent: #D64933;
  --color-bg: #FFFFFF;
  --color-surface: #F7F7F7;
  --color-text-default: #212121;
  --color-text-muted: #666666;
  --color-header-shadow: rgba(0, 0, 0, 0.07);
}

/* ============================================================
   STEP 2: GLOBAL (BASIS-STYLES)
   ============================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  line-height: 1.6;
  color: var(--color-text-default);
  background-color: var(--color-bg);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

/* ============ MODERNER HEADER: ALLES IN EINER ZEILE ============ */
.modern-header {
  width: 100%;
  background: var(--color-bg);
  border-bottom: 1.5px solid var(--color-surface);
  box-shadow: 0 3px 20px 0 var(--color-header-shadow);
  margin-bottom: 0px;
  position: relative;
  z-index: 100;
  overflow-x: clip;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 78px;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1.5rem;
  position: relative;
}

.header-logo-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  flex-shrink: 0;
  min-width: 0;
}

.header-logo {
  height: 52px;
  width: 52px;
  border-radius: 15px;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 2px 10px 0 rgba(0,0,0,0.08);
}

.header-title {
  font-family: 'Inter', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
  letter-spacing: 0.01em;
  min-width: 0;
  /* KEIN white-space, overflow oder text-overflow mehr! */
}

.header-spacer {
  flex: 1 1 0%;
}

.main-nav {
  margin-left: 2rem;
  margin-right: auto;
  flex-shrink: 1;
  min-width: 0;
  transition: all 0.2s;
}
.main-nav .nav-list {
  list-style: none;
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
}
.main-nav .nav-list li a {
  color: var(--color-text-default);
  font-weight: 500;
  font-size: 1.09rem;
  padding: 0.5em 1.15em;
  border-radius: 8px;
  background: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.main-nav .nav-list li a:hover,
.main-nav .nav-list li a:focus {
  background: var(--color-primary-light);
  color: #fff;
  text-decoration: none;
}
.main-nav .nav-list li a.active {
  background: var(--color-accent);
  color: #fff;
}

.lang-switch {
  display: flex;
  gap: 0.5rem;
  margin-left: 2rem;
  flex-shrink: 0;
  min-width: 0;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.35em;
  font-size: 1.02rem;
  font-weight: 600;
  border-radius: 20px;
  padding: 0.32em 1.05em;
  background: var(--color-bg);
  border: 1.5px solid var(--color-surface);
  box-shadow: 0 1px 6px 0 rgba(0,0,0,0.06);
  color: var(--color-primary);
  transition: background 0.15s, color 0.15s, border 0.15s;
  white-space: nowrap;
  text-decoration: none;
  outline: none;
  min-width: 32px;
  text-align: center;
  font-size: 1rem;
}
.lang-btn.active,
.lang-btn:hover {
  background: var(--color-primary);
  color: #fff;
  border: 1.5px solid var(--color-primary);
}

/* Hamburger: nur sichtbar auf kleineren Geräten */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  gap: 5px;
  cursor: pointer;
  border-radius: 12px;
  margin-left: 1.1rem;
  flex-shrink: 0;
  z-index: 110;
}
.nav-toggle-bar {
  width: 27px;
  height: 3.1px;
  background: var(--color-primary-dark);
  border-radius: 2px;
  transition: all 0.25s cubic-bezier(.45,.05,.55,.95);
  display: block;
}
.nav-toggle.open .nav-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle.open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Verhindere Zeilenumbruch im Header */
.header-inner > * {
  min-width: 0;
}

/* Responsive: Title & Logo kleiner, Hamburger & Langswitch angepasst */
@media (max-width: 1100px) {
  .header-title {
    font-size: 1.4rem;
  }
  .header-logo {
    height: 36px;
    width: 36px;
  }
  .header-inner {
    gap: 0.7rem;
    height: 56px;
  }
  .lang-switch {
    margin-left: 0.6rem;
  }
}

/* ============ MOBILE NAVIGATION ============= */
@media (max-width: 900px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1.5px solid var(--color-surface);
    box-shadow: 0 8px 32px 0 var(--color-header-shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px) scale(0.97);
    transition: all 0.28s cubic-bezier(.45,.05,.55,.95);
    z-index: 50;
    margin-left: 0;
    margin-right: 0;
    display: block;
  }
  .main-nav.open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0) scale(1);
  }
  .main-nav .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 14px 0 10px 0;
  }
  .main-nav .nav-list li a {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.98em 2.2em;
    font-size: 1.07rem;
    border-radius: 0;
    background: none;
    border-left: 3px solid transparent;
    transition: background 0.15s, border-color 0.18s;
  }
  .main-nav .nav-list li a:hover,
  .main-nav .nav-list li a:focus {
    background: var(--color-primary-light);
    color: #fff;
    border-left: 3px solid var(--color-primary);
  }
  .nav-toggle {
    display: flex;
  }
  .header-inner {
    height: 56px;
    gap: 0.5rem;
  }
  .lang-switch {
    margin-left: 0.4rem;
  }
}

/* ============ WICHTIG: Mobile Header-Title, GmbH ausblenden ============ */
.gmbh-part {
  display: inline;
}
@media (max-width: 700px) {
  .gmbh-part {
    display: none;
  }
  .header-title {
    font-size: 1rem;
    font-weight: 700;
    display: inline;
  }
  .header-logo {
    margin-right: 6px;
  }
  .header-inner {
    padding: 0 0.5rem;
    gap: 0.3rem;
  }
  .lang-switch {
    gap: 0.2rem;
  }
  .lang-btn {
    font-size: 0.89rem;
    padding: 0.26em 0.7em;
  }
}

.modern-header, .header-inner, .main-nav, .lang-switch {
  box-sizing: border-box;
  max-width: 100vw;
  overflow-x: clip;
}

/* ============================================================
   REST DEINER STYLES BLEIBEN (wie du schon hast)
   ============================================================ */

/* HERO-BEREICH */
.hero {
  position: relative;
  background: url('../images/hero.jpg') center/cover no-repeat;
  height: 80vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-surface);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
}
.hero-content h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}
.btn-hero {
  background-color: var(--color-primary);
  color: var(--color-surface);
  padding: 12px 28px;
  font-size: 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.btn-hero:hover {
  background-color: var(--color-primary-dark);
}

/* UNTERNEHMENSHISTORIE */
.history-text {
  background-color: var(--color-bg);
  padding: 60px 20px;
}
.history-text .container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}
.history-text h2 {
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 600;
  font-size: 2rem;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 20px;
}
.history-text p {
  color: var(--color-text-default);
  font-size: 1rem;
  line-height: 1.6;
  text-align: justify;
  margin: 0 auto;
  max-width: 800px;
}

/* SECTION-PLACEHOLDER */
.section-placeholder {
  background-color: var(--color-surface);
  padding: 60px 20px;
}
.section-placeholder .container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}
.section-placeholder h2 {
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 600;
  font-size: 2rem;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 20px;
}
.section-placeholder p {
  color: var(--color-text-default);
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
  margin: 0 auto;
  max-width: 800px;
}

/* FOOTER */
footer {
  background-color: var(--color-bg);
  padding: 40px 0 0 0; /* nur oben Padding */
  border-top: 1px solid var(--color-surface);
}
.footer-logo {
  text-align: center;
  margin-bottom: 1rem;
}
.footer-logo-img {
  max-width: 100px;
  width: 80%;
  height: auto;
  display: inline-block;
}
.footer-bottom {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background-color: #f2f2f2;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  padding: 1rem 0;
}

/* FORMULARE & KONTAKT */
.contact-form {
  background-color: var(--color-bg);
  padding: 60px 20px;
}
.contact-form .container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
}
.contact-form h2 {
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 600;
  font-size: 2rem;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 20px;
}
.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.contact-form label {
  font-weight: 600;
  color: var(--color-text-default);
  margin-bottom: 5px;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  padding: 10px;
  border: 1px solid var(--color-surface);
  border-radius: 4px;
  font-size: 1rem;
  font-family: 'Inter', Arial, sans-serif;
  color: var(--color-text-default);
  resize: vertical;
}
.contact-form textarea {
  min-height: 140px;
}
.contact-form .error-message {
  color: #D64933;
  font-size: 0.9rem;
  display: none;
}
.contact-form button[type="submit"] {
  background-color: var(--color-primary);
  color: var(--color-bg);
  padding: 12px 20px;
  font-size: 1rem;
  font-family: 'Inter', Arial, sans-serif;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  align-self: flex-start;
  transition: background-color 0.2s ease;
}
.contact-form button[type="submit"]:hover {
  background-color: var(--color-primary-dark);
}
.contact-form .success-message {
  color: var(--color-primary-dark);
  font-size: 1rem;
  margin-top: 15px;
  display: none;
}
@media (max-width: 480px) {
  .history-text .container,
  .section-placeholder .container,
  .contact-form .container {
    padding: 0 10px;
  }
}

/* Produktliste, Bildbalken usw. */
.product-list-center {
  text-align: left;
}

.product-list-center ul {
  display: inline-block;
  text-align: left;
  list-style-position: inside;
  padding-left: 0;
  margin-left: 0;
  max-width: 600px;  /* oder 800px, wie du möchtest */
  margin: 0 auto;
}
.product-list-center {
  text-align: center;
}


.image-bar {
  position: relative;
  width: 100%;
  height: 380px;
  background: url('../images/section-bar.jpg') center center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 40px 0;
}
.image-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1;
}
.image-bar-text {
  position: relative;
  color: #fff;
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  z-index: 2;
  padding: 0 20px;
  width: 100%;
  max-width: 900px;
  line-height: 1.2;
}
.privacy-center {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.privacy-center h3 {
  text-align: center;
  margin-top: 2em;
}
.contact-form p {
  color: var(--color-text-default);
  font-size: 1rem;
  line-height: 1.6;
  text-align: justify;
  margin: 0 auto;
  max-width: 800px;
}
@media (max-width: 900px) {
  .nav-toggle {
    margin-right: 12px;  /* oder 16px für noch mehr Abstand */
  }
}
