/* =========================================================
   1. Variablen & Design Tokens
========================================================= */
:root {
  --color-bg: #ffffff;
  --color-text: #000000;
  --color-primary: #cfe9f7;     
  --color-primary-light: #e6f4ff;
  --color-header-1: #7aaced;
  --color-border: rgba(0,0,0,0.08);

  --font-base: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.6;

  --container-width: 1200px;
  --header-height: 85px;
}

/* =========================================================
   2. Reset & Basis
========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden; /* horizontal scroll verhindern */
}

/* =========================================================
   3. Typografie
========================================================= */
h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
  text-decoration: none;
}

.link-text {
  color: blue;
}

/* =========================================================
   4. Layout Helfer
========================================================= */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 40px 0;
  scroll-margin-top: calc(var(--header-height) + 20px);
}

/* =========================================================
   5. Sticky Header (Desktop + Mobile)
========================================================= */
#sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: linear-gradient(180deg, var(--color-primary-light), var(--color-header-1));
  border-bottom: 1px solid var(--color-border);
  z-index: 9999;
  width: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 30px;
}

.header-brand {
  display: flex;
  align-items: center;
}

.header-brand img {
  height: 55px;
  margin-right: 15px;
}

.site-title {
  font-size: 1.8rem;
  font-weight: 700;
}

.header-nav a {
  margin-left: 30px;
  font-weight: 600;
}

.header-nav a:hover {
  text-decoration: underline;
}

/* Hamburger für Mobile */
.header-hamburger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

/* Mobile Header */
@media (max-width: 768px) {
  :root { --header-height: 70px; }

  .header-inner {
    flex-direction: row;
    justify-content: space-between;
    padding: 0 15px;
  }

  .header-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--color-primary-light);
    position: absolute;
    top: var(--header-height);
    left: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .header-nav a {
    margin: 10px 20px;
  }

  .header-hamburger {
    display: block;
  }

  /* Mobile Dropdown aktivieren */
  .header-hamburger.active + .header-nav {
    display: flex;
  }
}

/* =========================================================
   6. OnePager Sections
========================================================= */
.section-light { background-color: #ffffff; }
.section-ice   { background-color: var(--color-primary-light); }
.section-dark  { background-color: #111827; color: #ffffff; }

/* =========================================================
   7. Buttons
========================================================= */
.button {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 6px;
  font-weight: 600;
  background-color: var(--color-primary);
  color: #000;
}

.button:hover {
  background-color: var(--color-primary-light);
}

/* =========================================================
   8. Footer
========================================================= */
footer {
  padding: 40px 20px;
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid var(--color-border);
}

/* =========================================================
   9. Kontaktformular
========================================================= */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-family: var(--font-base);
  font-size: 1rem;
  width: 100%;
}

.contact-form button {
  padding: 12px 20px;
  border: none;
  background-color: var(--color-primary);
  color: #000;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: var(--color-primary-light);
}

/* =========================================================
   10. Angebot Tabelle
========================================================= */
.angebot-tabelle {
  margin: 30px auto;
  max-width: 700px;
}

.angebot-tabelle th,
.angebot-tabelle td {
  padding: 12px;
  text-align: left;
}

.angebot-tabelle thead {
  background-color: #1e3a5f;
  color: #fff;
}

.angebot-tabelle tbody tr:nth-child(odd) {
  background-color: #ffffff;
}

.angebot-tabelle tbody tr:nth-child(even) {
  background-color: #e6f0fa;
}

/* Boxen */
.boxen {
  display: flex;
  gap: 20px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.boxen figure {
  flex: 1;
  text-align: center;
}

.boxen img {
  max-width: 100%;
  border-radius: 8px;
}

.boxen figcaption {
  margin-top: 8px;
  font-weight: 600;
}

.intro-text {
  margin-bottom: 15px;
}

.box-info {
  margin-top: 10px;
}

.kontakt-link a {
  font-weight: 600;
  color: #000;
  text-decoration: underline;
}

/* =========================================================
   11. Über uns Layout
========================================================= */
.ueber-uns {
  display: flex;
  align-items: stretch;
  gap: 40px;
}

.ueber-uns-text { flex: 0 0 70%; }

.ueber-uns-bild {
  flex: 0 0 30%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ueber-uns-bild img {
  max-width: 100%;
  max-height: 250px;
  height: auto;
  object-fit: contain;
}

/* Mobile Über uns */
@media (max-width: 768px) {
  .ueber-uns {
    flex-direction: column;
    text-align: center;
  }

  .ueber-uns-bild {
    justify-content: center;
  }
}

/* Footer */
#site-footer {
  background-color: #7aaced; /* gleiche Farbe wie Header */
  color: #fff;
  padding: 20px 30px;
  width: 100%;
  box-sizing: border-box;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  max-width: var(--container-width);
  margin: 0 auto;
}

/* Links */
.footer-left {
  flex: 1;
  font-weight: 600;
  text-align: left;
}

/* Mitte */
.footer-center {
  flex: 2;
  line-height: 1.5;
  margin-left: 20px;
}

/* Rechts */
.footer-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.footer-right img {
  max-width: 250px;
  height: auto;
  border-radius: 4px;
}

/* Mobile Anpassung */
@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    flex: 1 1 100%;
  }

  .footer-right {
    justify-content: center;
  }
}

/* ===============================
   Impressionen Slider
================================ */

.slider {
  position: relative;
  max-width: 600px;
  margin: 40px auto;
  overflow: hidden;
}

.slider-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
}

.slider-track img {
  min-width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: contain;   /* kein Abschneiden */
  background: #f4f8fb;   /* dezenter Rahmen */
  border-radius: 10px;
}

/* Pfeile */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border: none;
  font-size: 2rem;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 2;
  border-radius: 50%;
}

.slider-btn.prev {
  left: 10px;
}

.slider-btn.next {
  right: 10px;
}

.slider-btn:hover {
  background: #fff;
}

/* Mobile Feinschliff */
@media (max-width: 768px) {
  .slider {
    max-width: 90%;
  }

  .slider-btn {
    font-size: 1.6rem;
  }
  .slider-track img {
    max-height: 260px;
  }
}
