/* TA4U – Hauptstylesheet
   Mobile-first, ohne Framework
   Schriften: Poppins (Überschriften), Open Sans (Text) – lokal
*/

/* ===== SCHRIFTEN ===== */
@font-face {
  font-family: 'Poppins';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/poppins-v24-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/poppins-v24-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/poppins-v24-latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Open Sans';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/open-sans-v44-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Open Sans';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/open-sans-v44-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Open Sans';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/open-sans-v44-latin-700.woff2') format('woff2');
}

/* ===== VARIABLEN ===== */
:root {
  --green:      #82b440;
  --green-dark: #3d6b10;
  --green-cta:  #8cbc3f;
  --dark:       #222;
  --text:       #555;
  --light-bg:   #f2f2f2;
  --team-bg:    #e6f0ea;
  --testi-bg:   #d9e8dd;
}

/* ===== RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
ul, ol { list-style: none; }

/* ===== BASIS ===== */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.6;
  min-width: 320px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--green);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

p { margin-bottom: 0.85em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }

/* ===== ÜBERSCHRIFTEN ===== */
h1, h2, h3, h4 {
  font-family: 'Poppins', Arial, sans-serif;
  color: #333;
  line-height: 1.3;
  margin-bottom: 0.4em;
}

/* Mobile */
h1 { font-size: 1.0rem;  font-weight: 700; line-height: 1.4; margin-bottom: 0.55em; }
h2 { font-size: 1.0rem;  font-weight: 500; color: var(--green-dark); }
h3 { font-size: 1.0rem;  font-weight: 600; }

/* ===== LAYOUT ===== */
.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* ===== BUTTON ===== */
.button {
  display: inline-block;
  padding: 0.55em 1.3em;
  border: 2px solid var(--green);
  color: var(--green);
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 20px;
  transition: background 0.2s, color 0.2s;
  margin-top: 0.6em;
}
.button:hover {
  background: var(--green);
  color: #fff;
  text-decoration: none;
}

/* ===== HEADER ===== */
/* Standalone header (Seiten ohne Banner) */
#site-header {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Header+Banner als eine Einheit (Seiten mit Banner) */
.site-hero {
  background: #222 url('../images/banner.jpg') center center / cover no-repeat;
}
.site-hero #site-header {
  background: rgba(0,0,0,0.35);
  position: relative;
}
.site-hero .banner {
  background: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  gap: 1rem;
}

.logo img {
  width: 130px;
  height: auto;
}

/* ===== HAMBURGER ===== */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== NAVIGATION ===== */
#main-nav {
  display: none;
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.1);
}
#main-nav.open { display: block; }

#main-nav > ul > li {
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
#main-nav a {
  display: block;
  color: #ccc;
  padding: 0.65rem 1rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}
#main-nav a:hover { color: #fff; text-decoration: none; }
#main-nav > ul > li.active > a { color: #fff; }

.submenu {
  background: rgba(0,0,0,0.2);
  padding-left: 1rem;
}
.submenu a { font-size: 0.85rem; color: #aaa; }

/* ===== BANNER ===== */
.banner {
  background: #222 url('../images/banner.jpg') center center / cover no-repeat;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-claim {
  display: none;
}

@media (min-width: 841px) {
  .banner {
    height: 180px;
    align-items: flex-start;
    padding-top: 1.5rem;
  }
  .banner-claim {
    display: block;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-align: center;
    margin: 0;
    background: rgba(0,0,0,0.35);
    padding: 0.4em 1.2em;
    border-radius: 3px;
  }
}

/* ===== HERO ===== */
.hero {
  background: #f8f8f8;
  padding: 2.5rem 0 3rem;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-lead {
  color: #444;
  margin-bottom: 0.4em;
}

/* Einrückliste */
.blist { margin: 0.4em 0 0.9em; }
.blist li {
  padding-left: 1.5em;
  text-indent: -1.5em;
  margin-bottom: 0.25em;
}

/* Angebotsbox */
.event-box {
  padding: 1rem 1.1rem;
  background: #eaf3df;
  border-radius: 10px;
  margin-bottom: 1.4rem;
}
.event-box:last-child { margin-bottom: 0; }
.event-box h3 {
  font-size: 1rem;
  margin-bottom: 0.45em;
}
.event-date {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.4em;
}
.event-date a { color: var(--dark); }
.event-date a:hover { color: var(--green); text-decoration: none; }

/* ===== TEAM ===== */
.team {
  background: var(--team-bg);
  padding: 3rem 0;
}
.team .section-header { margin-bottom: 2rem; }
.team .section-header h2 { color: var(--green-dark); font-weight: 500; font-size: 1.2rem; }
.team .section-header p  { color: #444; margin-bottom: 0; }

.team-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.team-card {
  background: #eaf3df;
  border-radius: 10px;
  padding: 1.2rem;
}
.team-card img {
  width: 100%;
  max-width: 220px;
  border-radius: 3px;
  margin-bottom: 0.7rem;
}
.team-card h3 { color: var(--dark); margin-bottom: 0.1em; }
.team-card .role { color: #666; font-size: 0.9rem; margin-bottom: 0.4em; }
.team-card p { color: #444; }

/* ===== REFERENZEN ===== */
.testimonials {
  background: var(--testi-bg);
  padding: 3rem 0;
}
.testimonials h2 { color: var(--green-dark); font-weight: 500; font-size: 1.2rem; margin-bottom: 2rem; }

.testi-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.testi-card {
  background: #eaf3df;
  border-radius: 10px;
  padding: 1.2rem;
}
.testi-card img {
  width: 100%;
  max-width: 220px;
  border-radius: 3px;
  margin-bottom: 0.8rem;
}
.testi-toggle {
  cursor: pointer;
  line-height: 1.6;
}
.expand-hint {
  color: var(--green);
  font-size: 0.85em;
}
.testi-full {
  display: none;
  margin-top: 0.5em;
  font-size: 0.9rem;
  color: #444;
  line-height: 1.75;
}

/* ===== KONTAKT ===== */
.contact-cta {
  background: var(--green-cta);
  padding: 2.5rem 0;
  text-align: center;
}
.contact-cta h2 { color: #fff; margin-bottom: 0.4em; font-size: 1.3rem; }
.contact-cta p  { color: #fff; font-size: 1.1rem; }
.contact-cta a.mail-link {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  margin: 0.3em 0;
}
.contact-cta a.mail-link:hover { text-decoration: underline; }
.footer-logo {
  width: 70px;
  margin: 0.9rem auto 0.3rem;
}
.contact-cta .tagline {
  font-size: 1.1rem;
  font-weight: 700;
  opacity: 0.9;
}
.contact-cta .tagline + .tagline {
  font-weight: 400;
}
.contact-cta .copyright {
  margin-top: 0.7em;
  opacity: 0.65;
  font-size: 1.1rem;
}

/* ===== FOOTER ===== */
#site-footer {
  background: var(--light-bg);
  text-align: center;
  padding: 2rem 0;
}
.footer-links {
  margin-bottom: 0.7rem;
}
.footer-links a {
  color: #444;
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0 0.4rem;
}
.footer-links a:hover { color: var(--dark); text-decoration: none; }
.footer-credit {
  color: #aaa;
  font-size: 0.8rem;
}
.footer-credit a { color: #aaa; }
.footer-credit a:hover { color: #666; }


/* ===== CONTENT-SEITEN ===== */
.page-main {
  background: #fff;
  padding: 2.5rem 0 4rem;
}
.page-main h1 {
  margin-bottom: 0.6em;
}
.page-main h2 {
  margin-top: 1.8em;
  margin-bottom: 0.5em;
  font-size: 1.1rem;
}
.page-main h3 {
  margin-top: 1.4em;
  margin-bottom: 0.4em;
}
.page-main p { color: #444; }
.page-main a { color: var(--green); }

.date-list { margin: 0.4em 0 1em; }
.date-list li {
  padding-left: 1.5em;
  text-indent: -1.5em;
  margin-bottom: 0.2em;
  color: #444;
}

.info-box {
  background: #eaf3df;
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
}
.info-box p { margin-bottom: 0.4em; }
.info-box p:last-child { margin-bottom: 0; }

.page-img {
  margin: 1.5rem 0;
  border-radius: 3px;
  overflow: hidden;
}
.page-img img { width: 100%; }

/* ===== PROFIL-SEITE ===== */
.about-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.section-light { background: #f8f8f8; padding: 3rem 0; }
.section-green  { background: var(--team-bg); padding: 3rem 0; }
.section-light h2 { color: var(--dark); font-weight: 700; font-size: 1.2rem; margin-bottom: 0.3em; }
.section-green  h2 { color: var(--green-dark) !important; font-weight: 500 !important; font-size: 1.2rem; margin-bottom: 0.3em; }
.section-light p,
.section-green  p  { color: #444; }

.profile-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 1.5rem;
}
.profile-card img {
  width: 100%;
  max-width: 200px;
  border-radius: 3px;
  margin-bottom: 0.8rem;
}
.profile-card h3 { color: var(--dark); margin-bottom: 0.1em; }
.profile-card .credentials { color: #555; font-size: 0.9rem; line-height: 1.6; margin-bottom: 0.7em; }
.profile-card p { color: #444; }

/* ===== BLOG ===== */
.article-list { margin: 1rem 0; }
.article-list li {
  padding-left: 1.5em;
  text-indent: -1.5em;
  margin-bottom: 0.6em;
}
.article-list li a { font-weight: 500; }

/* ===== TEXT-LISTEN (Datenschutz etc.) ===== */
.page-main .text-list {
  list-style: disc;
  padding-left: 1.5em;
  margin-bottom: 0.9em;
}
.page-main .text-list li {
  margin-bottom: 0.3em;
  color: #444;
}

/* ===== TABLET ab 600px ===== */
@media (min-width: 600px) {
  .hero-grid {
    flex-direction: row;
    gap: 2rem;
    align-items: flex-start;
  }
  .hero-left, .hero-right { flex: 1; }
  .event-box {
    border-left: none;
    background: #eaf3df;
    border-radius: 10px;
    padding: 1rem 1.2rem;
  }
  .team-grid {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  .team-card {
    flex: 1 1 calc(50% - 1rem);
    background: #eaf3df;
    border-radius: 10px;
    padding: 1.2rem;
  }
  .testi-grid {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  .testi-card {
    flex: 1 1 calc(50% - 1rem);
    background: #eaf3df;
    border-radius: 10px;
    padding: 1.2rem;
  }
}

/* ===== DESKTOP ab 841px ===== */
@media (min-width: 841px) {

  h1 { font-size: 1.1rem; }
  h2 { font-size: 1.0rem; }
  h3 { font-size: 1.0rem; }

  /* Nav */
  .nav-toggle { display: none; }

  #main-nav {
    display: block !important;
    background: none;
    border: none;
  }
  #main-nav > ul {
    display: flex;
    align-items: stretch;
  }
  #main-nav > ul > li {
    border: none;
    position: relative;
  }
  #main-nav > ul > li > a {
    padding: 1.1rem 0.85rem;
    color: #fff;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    transition: color 0.2s;
  }
  #main-nav > ul > li > a::after {
    content: '';
    position: absolute;
    bottom: 0.6rem;
    left: 0.85rem;
    right: 0.85rem;
    height: 2px;
    background: var(--green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.22s ease;
  }
  #main-nav > ul > li > a:hover { color: var(--green); }
  #main-nav > ul > li > a:hover::after { transform: scaleX(1); }
  #main-nav > ul > li.active > a { color: #fff; }
  #main-nav > ul > li.active > a::after { transform: scaleX(1); }

  /* Dropdown */
  .submenu {
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s 0.2s;
    position: absolute;
    top: 100%;
    left: 0;
    background: #c8e08f;
    min-width: 200px;
    padding: 0.4rem 0;
    border-radius: 0 0 3px 3px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  }
  #main-nav > ul > li:hover .submenu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s 0s;
  }
  .submenu li { border: none; }
  #main-nav .submenu a {
    color: var(--dark);
    font-size: 0.82rem;
    padding: 0.55rem 1rem 0.55rem 1.2rem;
    text-transform: none;
    letter-spacing: 0;
    border-left: 3px solid transparent;
    transition: color 0.15s, border-color 0.15s, padding-left 0.15s, background 0.15s;
  }
  #main-nav .submenu a:hover {
    color: var(--dark);
    border-left-color: var(--dark);
    padding-left: 1.5rem;
    background: rgba(0,0,0,0.08);
  }
  #main-nav .submenu li.active a {
    color: var(--dark);
    font-weight: 600;
    border-left-color: var(--dark);
  }

  /* Hero */
  .hero { padding: 4rem 0 5rem; background: #fff; }
  .hero-grid {
    flex-direction: row;
    gap: 4rem;
    align-items: flex-start;
  }
  .hero-left,
  .hero-right { flex: 1; }
  .hero-left h1 { font-size: 1.3rem; }
  .hero-left h2 {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--green);
    margin-bottom: 1em;
  }
  .event-box {
    border-left: none;
    background: #eaf3df;
    border-radius: 10px;
    padding: 1.2rem 1.4rem;
  }

  /* Team */
  .team { background: #fff; }
  .team-grid {
    flex-direction: row;
    align-items: flex-start;
  }
  .team-card {
    flex: 1;
    background: #eaf3df;
    border-radius: 10px;
    padding: 1.4rem;
  }

  /* Referenzen */
  .testimonials { background: #fff; }
  .testi-grid {
    flex-direction: row;
    align-items: flex-start;
  }
  .testi-card {
    flex: 1;
    background: #eaf3df;
    border-radius: 10px;
    padding: 1.4rem;
  }

  /* Kontakt */
  .contact-cta a.mail-link { font-size: 1.4rem; }
}
