/* =========================================================
   1. RESET / BASE
========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #222;
  background: #ffffff;
}

/* Links */
a {
  color: #0872af;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* =========================================================
   2. TYPOGRAFIE
========================================================= */
html {
  font-size: clamp(14px, 1.1vw, 18px);
}

h1 {
  font-size: 1.6rem;
  color: #0872af;
  margin-bottom: 15px;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

h2 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  font-size: clamp(1rem, 4vw, 1.3rem);
}

p {
  margin-bottom: 15px;
}

/* =========================================================
   3. LAYOUT
========================================================= */

.layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 80vh;
}

@media (max-width: 768px) {

  .layout {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   4. HEADER
========================================================= */

.header {
  background-image: url("/WebsiteNew/images/bg_head.png");
  background-repeat: repeat-x;
  background-position: top;
  background-size: auto 100%;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  position: relative;
}

.logo {
  height: clamp(70px, 14vw, 206px);
  width: auto;
}

/* Standard: Desktop zeigt großes Banner */
.logo-desktop {
  display: block;
}

/* Mobile Logo standardmäßig ausblenden */
.logo-mobile {
  display: none;
}

.burger {
  display: none;
}

/* Mobile Ansicht */
@media (max-width: 768px) {

  /* Header wird zur festen Leiste */
  .header-inner {
    display: flex;
    justify-content: center;
    padding: 12px 16px;
    position: relative;
  }

  /* Logo klein oben links */
  .logo-desktop {
    display: none;
  }

  .logo-mobile {
    display: block;
    height: 80px;
    width: auto;
    padding-left: 4%;
  }

  .burger{
    position:static;
    margin-left: auto;
    width: 48px;
    height: 48px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:6px;
    background:none;
    border:none;
    cursor:pointer;
    z-index:3000;
  }

  .burger span{
    width:32px;
    height:3px;
    background:#0872af;
    border-radius:2px;
    transition:
      transform .35s ease,
      opacity .25s ease,
      width .35s ease;
  }

  .burger.active span:nth-child(1){
    transform:
      translateY(9px)
      rotate(45deg);
  }

  .burger.active span:nth-child(2){
    opacity:0;
    transform:scaleX(0);
  }

  .burger.active span:nth-child(3){
    transform:
      translateY(-9px)
      rotate(-45deg);
  }

  .burger:active {
    transform: scale(0.95);
  }
}

/* =========================================================
   5. NAVIGATION
========================================================= */

.nav {
  background: #6ccbf4;
  display: flex;
  flex-direction: column;
  padding: 10px 0;
}

.nav-links {
  display: flex;
  flex-direction: column;
}

.nav a {
  padding: 14px 18px;
  margin: 4px 10px;
  border-radius: 8px;
  color: white;
  font-weight: bold;
  transition: 0.2s;
}

.nav a:hover {
  background: #0872af;
  transform: translateX(3px);
}

.nav a.active {
  background: #0872af;
  box-shadow: inset 3px 0 0 #05486e;
}

.menu-overlay {
  position: fixed;
  inset: 0;

  background: rgba(0,0,0,0.4);

  opacity: 0;
  visibility: hidden;

  transition: 0.3s;

  z-index: 999;
}

.menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 768px) {

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(350px, 80vw);
    height: 100vh;
    z-index: 1000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    background: #6ccbf4;
    transition: right 0.3s ease;
    padding-top: 90px;
    display: block;
    box-shadow: -10px 0 30px rgba(0,0,0,0.25);
    overscroll-behavior: contain;
    overscroll-behavior-y: contain;
  }

  .nav.open {
    right: 0;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
  }

  .nav a {
    flex: none;
    text-align: left;
    margin: 5px 15px;
  }

  .nav a:hover {
    transform: none;
  }
}

/* =========================================================
   6. CONTENT
========================================================= */

.content {
  background: #f0f5f6;
  padding: 40px;
  min-width: 0;
}

.content-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(15px, 3vw, 40px);
}

@media (max-width: 768px) {

  .content {
    padding: 20px;
  }
}

/* =========================================================
   7. HERO / TEXT STYLES
========================================================= */

.hero {
  margin-bottom: 40px;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.lead {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 1px;
}

.text-muted {
  color: #666;
  font-size: 0.95rem;
}

/* =========================================================
   8. SECTIONS
========================================================= */
.section {
  margin-bottom: 40px;
}

.section h2 {
  margin-bottom: 10px;
  color: #0872af;
}

.list {
  padding-left: 18px;
  line-height: 1.8;
  overflow-wrap: break-word;
  word-break: break-word;
}

.section.two-col {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  flex-wrap: wrap; /* <- WICHTIG: erlaubt Umbruch */
}

/* TEXT */
.section.two-col .col-text {
  flex: 1 1 50%;
  min-width: 0px;
}

.contact-layout {
  justify-content: flex-start;
  gap: 30px;
}

.contact-layout .col-text {
  flex: 0 0 auto;
  max-width: 500px;
}

.contact-layout .image {
  flex: 0 0 auto;
}

@media (max-width: 768px) {

  .section.two-col {
    flex-direction: column;
    align-items: center;
    text-align: left;
  }

  .section.two-col .col-text {
    min-width: unset;
    flex: unset;
  }

  .section.two-col .image {
    width: 100%;
    max-width: 400px;
  }
}

/* =========================================================
   9. Signatur block und Maulwurf Startseite
========================================================= */

.person {
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: #fff;
  padding: 20px;
  border-radius: 6px;
  width: fit-content;

  /* Animation Startzustand */
  opacity: 0;
  transform: translateX(20px);

  /* Animation */
  animation: slideInRight 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: 0.1s;
}

.signature {
  max-width: 220px;
  width: 100%;
  height: auto;
  display: block;
}

.person .name {
  font-weight: bold;
  font-size: 1.1rem;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.schwerpunkte {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  flex-wrap: nowrap;
  overflow: visible;
  align-items: center;
}

.schwerpunkte .col-text {
  flex: 1 1 auto;
  min-width: 0;
}

.schwerpunkte .list {
  white-space: nowrap;
}

.maulwurf {
  width: 180px;
  flex: 0 0 180px;
  min-width: 180px;
  position: relative;
  z-index: 2;
}

@media (max-width: 900px) {

  .schwerpunkte {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px; /* klein halten → kein Riesenabstand */
  }

  .maulwurf {
    width: 140px;
    min-width: unset;
    align-self: center;
  }

  .schwerpunkte .list {
    white-space: normal; /* mobile darf umbrechen */
  }
}
/* =========================================================
   10. IMAGES
========================================================= */

.image {
  display: block;
  height: auto;
  opacity: 0;
  transform: translateY(6px);
  animation: fadeInUp 0.6s ease-out forwards;
  border-radius: 6px; /* optional */
}

.person-image {
  max-width: 350px;
  flex: 0 0 auto;
}

.contact-image {
  width: 450px;
  flex: 0 0 auto;
}

.referenzen-image {
  width: 250px;
  flex: 0 0 auto;
}

.banner {
  width: 50%;
  max-width: 100%;
  display: block;
  margin: 20px auto 0;
  border-radius: 5px;
}

.image-row {
  width: 100%;
  display: flex;
  justify-content: left;
  align-items: left;
  gap: 40px;
  padding: 20px;
  box-sizing: border-box;
  flex-wrap: wrap; /* wichtig für mobile */
}

.row-image {
  display: block;
  max-width: 200px;  /* entscheidend gegen "zu groß" */
  width: 100%;
  height: auto;

  opacity: 0;
  transform: translateY(6px);
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   11. GLOBAL ELEMENTS
========================================================= */

img {
  max-width: 100%;
  height: auto;
}

ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

li {
  list-style-type: disc;
  margin-bottom: 0.75em;
}

li::marker {
  color: #0872af;
  font-size: 1em;
}
/* =========================================================
   12. FOOTER
========================================================= */

.footer {
  background: #eee;
  padding: 20px;
  text-align: center;
  font-size: 0.8rem;
  color: #333;
}

/* =========================================================
   13. UTILITIES
========================================================= */

.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

/* =========================================================
   14. SLIDESHOW
========================================================= */

.slider {
  overflow: hidden;
  position: relative;
}

.slider-track {
  display: flex;
  transition: transform 0.6s ease;
  position: relative;
  z-index: 1;
}

.slider-maulwurf {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  height: 380px;
  background-image: url("/WebsiteNew/images/maulwurf_bohrer.gif");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 1500px) {
  .slider-maulwurf {
    display: none;
  }
}

.slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  padding: clamp(15px, 3vw, 40px);
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.slider-nav-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

/* WICHTIG: kein Override möglich */
.slider-btn {
  flex: 1 1 clamp(140px, 30%, 260px);
  background: #6ccbf4;
  color: white;
  border: none;
  padding: 10px 14px;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.25s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.slider-btn:hover {
  background: #0872af;
  transform: translateY(-2px);
}

.slider-btn.active {
  background: #0872af;
}

.slide-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  min-width: 0;
}

.slide-image {
  flex: 0 1 250px;
  min-width: 0;
}

.slide-image img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.slide-content {
  min-width: 0;
  flex: 1 1;
  min-width: 0;
}

.slide-content h2 {
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

@media (max-width: 900px) {

  .slider-btn {
    flex: 1 1 100%;
    text-align: center;
  }

  .slide {
    padding: 20px;
  }

  .slide-inner {
    flex-direction: column;
  }

  .slide-image {
    max-width: 300px;
    order: 2;
  }

  .slide-content {
    order: 1; /* Text nach oben */
  }
}