/*### LOKALE FONTS EINBINDEN ###*/
@font-face {
  font-family: "Open Sans";
  src: url("assets/fonts/Open_Sans/static/OpenSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("assets/fonts/Open_Sans/static/OpenSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("assets/fonts/Open_Sans/static/OpenSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --yellow: #ffd31c;
  --yellow-dark: #ffcc00;
  --green: #d7df00;
  --blue: #89b6de;
  --text: #111317;
  --surface: #ffffff;
  --line: rgba(17, 19, 23, 0.08);

  --radius: 6px;
  --container: 1050px;
  --header-offset: 80px;
}

/*### ALLGEMEINE STYLES ###*/
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  background: var(--surface);
}

/*Nav-Abstand zur Sprungmarke*/
section[id] {
  scroll-margin-top: var(--header-offset);
}

/*### SCHRIFTEN ###*/
h1, h2, h3, h4, p {
  margin-top: 0;
  color: var(--text);
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
}

h1, h2, h3, h4 {
  line-height: 1.1;
}

h1 {
  margin-bottom: 35px;
  font-size: clamp(2rem, 4.8vw, 3rem);
  font-weight: 700;
}

h2 {
  margin-bottom: 40px;
  text-align: center;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 700;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.2rem, 2.3vw, 1.45rem);
  font-weight: 700;
}

h4 {
  margin-bottom: 14px;
  font-size: 1.05rem;
  font-weight: 700;
}

p {
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
}

p:last-child {
  margin-bottom: 0;
}

.text-align-left {
  text-align: left;
  margin-top: 20px;
}

.margin-btm-mid {
  margin-bottom: 70px;
}

/*### FARB-UTILITIES ###*/
.text-white {
  color: #fff;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}
.narrow { max-width: 760px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(20px, 7vw, 120px);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

/*### HAUPTNAVIGATION ###*/
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo {
  display: block;
  width: clamp(150px, 18vw, 210px);
  height: auto;
}

.main-nav {
  display: flex;
  justify-content: flex-end;
  gap: clamp(18px, 4vw, 52px);
  font-size: 1rem;
  font-weight: 600;
}
.main-nav a {
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-block: 8px;
}
.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.is-active { border-bottom-color: var(--yellow); }

/*### BURGERMENÜ ###*/
.menu-toggle {
  display: none;
  width: 55px;
  height: 55px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle img {
  width: 100%;
  height: 100%;
  transition: transform 0.2s ease;
}

.menu-toggle[aria-expanded="true"] img {
  transform: rotate(90deg);
}

/*### HERO HEADER ###*/
.hero-image {
  width: 100%;
  background: var(--yellow);
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-intro {
  margin-top: -1px;
  padding: clamp(20px, 4vw, 30px) 0 50px;
  text-align: center;
  background: var(--yellow);
}


.section { padding: clamp(64px, 9vw, 110px) 0; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 58px) clamp(48px, 9vw, 120px);
}

/*### SEKTION 1: LEISTUNGEN ###*/
.leistungen-card {
  display: flex;
  align-items: center;
  gap: 14px;
}
.leistungen-card img {
  flex: 0 0 76px;
  width: 100px;
  aspect-ratio: 1;
  object-fit: contain;
}

/*### SEKTION 2: VORSTAND ###*/
.vorstand {
  background: var(--blue);
}
.vorstand-container {
  max-width: 720px;
}

.person-group + .person-group { margin-top: 50px; }

.person-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  border-radius: var(--radius);
  background: transparent;
}

.person-card + .person-card {
  margin-top: 24px;
}

.person-card > img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
  object-position: center 28%;
}

.person-content {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(22px, 4vw, 28px);
  background: var(--surface);
}
.person-content ul {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  color: var(--text);
  font-size: 1rem;
}
.person-content li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.person-content li::before {
  content: "";
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.person-content li.pin::before {
  background-image: url("assets/icons/ico-pin.svg");
}

.person-content li.phone::before {
  background-image: url("assets/icons/ico-phone.svg");
}

.person-content li.mail::before {
  background-image: url("assets/icons/ico-mail.svg");
}
.person-content a { word-break: break-word; }


/*### SEKTION 3: WEGWEISER ###*/
.guide {
  text-align: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 18px;
  padding: 0 24px;
  border-radius: 4px;
  background: var(--yellow);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.button:hover {
  background: var(--yellow-dark);
}

/*### FOOTER ###*/
.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 18px clamp(20px, 8vw, 130px);
  background: var(--green);
  font-size: 1rem;
}

.site-footer p {
  margin: 0;
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
}

.social-links img {
  width: 45px;
  height: auto;
}

.site-footer nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(18px, 4vw, 48px);
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
}


/*### RESPONSIVE ###*/
@media (max-width: 820px) {
  :root {
    --header-offset: 45px;
  }

  .site-header {
    flex-wrap: wrap;
    justify-content: center;
    padding-block: 16px;
  }
  .main-nav { width: 100%; justify-content: center; }
  .service-grid { grid-template-columns: 1fr; }
    .person-card {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .person-card > img,
  .person-content {
    min-height: 220px;
  }

  .person-card > img {
    height: 100%;
  }
}

@media (max-width: 600px) {
  :root {
    --header-offset: 54px;
  }
  body { font-size: 15px; }
  .container { width: min(100% - 40px, var(--container)); }
  .site-header {
    position: sticky;
    top: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-block: 12px;
  }

  .logo {
    width: 150px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding-top: 14px;
    border-top: 1px solid var(--line);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    padding: 12px 0;
    text-align: center;
    border-bottom: 0;
  }

  .main-nav a:hover,
  .main-nav a:focus-visible,
  .main-nav a.is-active {
    background: var(--yellow);
    border-bottom-color: transparent;
	border-radius: 4px;
  }

  .leistungen-card {
    align-items: center;
    gap: 18px;
  }
  .leistungen-card img {
    width: 70px;
    flex-basis: 58px;
  }
  .person-card { grid-template-columns: 1fr; }
	
 .person-card > img {
    height: auto;
    min-height: 0;
  }

  .person-content {  
	min-height: 0;
    padding: 24px;
    background: var(--surface); 
  }
  .site-footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .site-footer nav {
    justify-content: center;
  }
}