@font-face {
  font-family: 'Finlandica';
  src: url("../fonts/Finlandica-Regular.woff2") format("woff"),
       url("../fonts/Finlandica-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Finlandica Bold';
  src: url("../fonts/Finlandica-Bold.woff2") format("woff"),
       url("../fonts/Finlandica-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Figtree';
  src: url("../fonts/Figtree-Regular.woff2") format("woff"),
       url("../fonts/Figtree-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Figtree Bold';
  src: url("../fonts/Figtree-Bold.woff2") format("woff"),
       url("../fonts/Figtree-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}


body {
  font-family: 'Figtree', sans-serif;
  color: #888888;
  background-color: #F8F1DB;
}



/* NAVIGATION */

#mainNav {
  text-transform: uppercase;
}

.navbar-nav li {
  margin-left: .25rem;
  margin-bottom: .75rem;
  padding: 4px;
}

@media (min-width: 1200px) {
  .navbar-nav li {
    margin-bottom: 0;
  }
}

.navbar-nav a {
  text-decoration:none;
  color:#222;
  font-weight:500;
  padding: 5px 10px;
}

.navbar-nav li:hover,
.navbar-nav .current_page_item {
  background-color: #558C47;
  border-radius: 4px;
}

.navbar-nav li.menu-item-has-children:hover {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.navbar {
  z-index: 10;
}

.navbar-nav a,
.navbar-brand {
  color:white !important;
}

.navbar-toggler {
  border-color:rgba(255,255,255,.5);
}

.navbar-brand img,
.custom-logo-link img {
  max-height:60px;
  width:auto;
}

.navbar {
  transition:background .3s ease, padding .3s ease;
}

.navbar.scrolled,
body.page-template-default .navbar,
body.blog .navbar,
body.post-template-default .navbar,
body.ansprechpartner-template-default .navbar {
  background:#000;
  opacity: .85;
}

header .navbar-nav {
  margin-top: 2rem;
}

.navbar.is-open {
  background-color: #000;
  opacity: .85;
}

#menu-hauptnavigation .sub-menu {
  list-style: none;
  padding-left: 1rem;
}

#menu-hauptnavigation .sub-menu li {
  margin-bottom: 0;
}

@media (min-width: 992px) {
  #menu-hauptnavigation {
    display: flex;
  }

  #menu-hauptnavigation > li {
    position: relative;
    margin-right: 20px;
  }

  #menu-hauptnavigation .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin: 0;
    padding: 10px 0;
    background: #558C47;
    min-width: 220px;
    z-index: 1000;
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 4px;
  }

  #menu-hauptnavigation li:hover > .sub-menu {
    display: block;
  }

  #menu-hauptnavigation .sub-menu li {
    padding: 0;
  }

  #menu-hauptnavigation .sub-menu a {
    display: block;
    padding: 5px 10px;
    text-decoration: none;
    white-space: nowrap;
  }

  #menu-hauptnavigation .sub-menu a:hover {
    text-decoration: underline;
  }
}


/* HERO */

.hero {
  min-height:calc(100vh + 150px);
  background-size:cover;
  background-position:center;
  position:relative;
  display:flex;
  align-items:center;
  color:white;
}

.hero-overlay {
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.2);
}

.hero-text {
  max-width: 1000px;
  margin: auto;
  padding-bottom: 10rem !important;
}

.hero h2 {
  font-size:clamp(2rem,5vw,4rem);
  margin-bottom:0;
  color: #fff;
  font-family: 'Finlandica Bold', sans-serif;
}

.hero .lead {
  font-size:1.2rem;
  margin-bottom:.5rem;
  font-family: 'Finlandica', sans-serif;
}

.hero + main {
  margin-top: -50px;
  background-color: #F8F1DB;
  position: relative;
}

@media (min-width: 1200px) {
  .hero + main {
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
  }
}

main > .container-fluid {
  max-width: 992px;
}

main {
  overflow-x: clip;
}

main .isa-logo {
  margin-top: -125px;
  text-align: center;
  z-index: 9999;
}

main .isa-logo img {
  height: 150px;
}


/* TEASER GRID */

.teaser-grid {
    list-style: none;
    margin: 0 0 2rem 0;
    padding: 0;
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.teaser-grid > li {
    display: flex;
    flex-direction: column;
    overflow: hidden;          /* für runde Bild‑Ecken */
    padding: 0;
}

.teaser-grid .wp-block-latest-posts__featured-image {
    margin: 0;
}

.teaser-grid .wp-block-latest-posts__featured-image img {
    width: 100%;
    height: 160px;             /* fixe Höhe für einheitliche Kacheln */
    object-fit: cover;         /* Bild beschneiden, statt verzerren */
    display: block;
    border-radius: 16px;
}

.teaser-grid .wp-block-latest-posts__post-title {
    display: block;
    margin: 12px 16px 4px;
    font-weight: bold;
    text-transform: uppercase;
    color: #3b7a2a;
    text-decoration: none;
    font-family: 'Finlandica Bold', sans-serif;
}

.teaser-grid .wp-block-latest-posts__post-title:hover {
    text-decoration: underline;
}

.teaser-grid .wp-block-latest-posts__post-excerpt {
    margin: 0 16px 16px;
    color: #444;
    font-size: 0.95rem;
}

.teaser-grid .wp-block-latest-posts__read-more {
    font-weight: 700;
    text-decoration: none;
    color: #3b7a2a;
}

@media (min-width: 900px) {
    .teaser-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* BLOG */

.blog .blog-card h3 a {
  font-size: 1.25rem;
  text-decoration: none;
  color: #558C47;
}

.post-hero img {
  display:block;
}

.post-content p {
  margin-bottom:1.3rem;
  line-height:1.7;
}

.post-content img {
  max-width:100%;
  height:auto;
  border-radius:8px;
}

.post-meta {
  font-size:.9rem;
}

body.post-template-default {
  padding-top: 60px;
}


/* FOOTER */

footer {
  background-color: #558C47;
  position: relative;
}

footer > .container-fluid {
  max-width: 992px;
}

@media (min-width: 992px) {
  main + footer {
    margin-top: 3rem;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
  }

  footer .isa-logo {
    margin-top: -90px;
  }
}

.site-footer {
  font-size:.95rem;
}

.site-footer a {
  color:white;
  text-decoration:none;
}

.site-footer a:hover {
  text-decoration:underline;
}

.footer-title {
  font-size:1.25rem;
  font-weight: bold;
  margin-bottom:1rem;
}

footer .menu {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

footer .menu-item {
  margin-bottom: .5rem;
}

footer .isa-logo {
  text-align: center;
}

footer .isa-logo img {
  max-height: 250px;
}

footer .icon {
  width: 16px;
  height: 16px;
}

footer .has-icon {
  padding-left: 1.6em;
  text-indent: -1.6em;
}


/* SUMMARY / DETAILS */

/* Design-Variablen – gern an eure CI anpassen */
:root {
  --isa-green: #3E7D3A;
  --isa-green-dark: #2f6d2c;
  --isa-cream: #f5f1e6;        /* helle Boxfläche */
  --isa-radius: 16px;
  --isa-chevron: #fff;         /* Pfeilfarbe */
}

/* Wrapper – Abstand zwischen den Boxen */
.wp-block-details {
  margin-bottom: 14px;
}

/* <details> Element */
.wp-block-details {
  border: none;
  background: var(--isa-cream);
  padding: 1.5rem;
}

/* Kopfzeile (summary) – grüne Leiste mit Chevron, runden Ecken */
.wp-block-details > summary {
  list-style: none;                         /* Standard-Dreieck ausblenden */
  background: var(--isa-green);
  color: #fff;
  padding: 14px 52px 14px 16px;            /* rechts Platz für Icon */
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  position: relative;
  cursor: pointer;
  box-shadow: var(--isa-shadow);
  outline: none;
  margin: -1.5rem;
}

/* Fokusring für Tastaturnutzung */
.wp-block-details > summary:focus {
  box-shadow: 0 0 0 3px rgba(255,255,255,.7), 0 0 0 6px rgba(62,125,58,.4), var(--isa-shadow);
}



.wp-block-details > summary::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 30px;
  height: 30px;
  transform: translateY(-50%) rotate(0deg);
  transition: transform .2s ease;
  background-size: 30px 30px;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2066.92%2066.92%22%3E%3Cpath%20d%3D%22M33.46%2066.92C14.98%2066.92%200%2051.94%200%2033.46S14.98%200%2033.46%200s33.46%2014.98%2033.46%2033.46-14.98%2033.46-33.46%2033.46%22%20fill%3D%22%23c44729%22/%3E%3Cpath%20d%3D%22M48.11%2025.8%2033.46%2042.13%2018.82%2025.8%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-miterlimit%3D%2210%22%20stroke-width%3D%229%22/%3E%3C/svg%3E");
}

/* Unten nach oben gedrehter Pfeil wenn geöffnet */
.wp-block-details[open] > summary::after {
  transform: translateY(-50%) rotate(180deg);
}

.wp-block-details[open] > summary + * {
  margin-top: 3rem;
}

/* Inhaltspanel – helle Box mit runden unteren Ecken */
.wp-block-details > *:not(summary) {
  color: #333;
  border-radius: 0 0 var(--isa-radius) var(--isa-radius);
  margin: 0;
}

/* optisch „verbunden“: die Summary unten abrunden, Content oben nahtlos */
.wp-block-details[open] > summary {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* Links/Typo im Panel */
.wp-block-details p { margin: 0 0 10px; }
.wp-block-details a { color: #2a6fbe; text-decoration: underline; }
.wp-block-details a:hover { text-decoration: none; }

/* Hover-Farbton für Summary */
.wp-block-details > summary:hover {
  background: var(--isa-green-dark);
}

/* Optional: weiche Ein-/Ausblendung des Inhalts (nur beim Öffnen zuverlässig) */
.wp-block-details {
  overflow: clip; /* verhindert Sprung bei Border-Radius */
}
.wp-block-details > div, 
.wp-block-details > p, 
.wp-block-details > .wp-block-group {
  transition: opacity .18s ease;
}
.wp-block-details[open] > div,
.wp-block-details[open] > p,
.wp-block-details[open] > .wp-block-group {
  opacity: 1;
}


/* TYPOGRAPHY */

h1, .h1 {
  text-transform: uppercase;
  color: #444C4F;
  font-family: 'Finlandica', sans-serif;
  font-size:clamp(1.5rem,5vw,2rem);
}

h2, .h2 {
  text-transform: uppercase;
  font-family: 'Finlandica', sans-serif;
  color: #558C47;
  margin-bottom: 1.5rem;
  font-size:clamp(1.25rem,5vw,1.75rem);
}

h3, .h3 {
  text-transform: uppercase;
  font-family: 'Finlandica Bold', sans-serif;
  font-weight: bold;
  color: #444C4F;
  margin-bottom: 1.5rem;
  font-size:clamp(1.25rem,5vw,1.75rem);
}

h2 + h3 {
  margin-top: -1rem;
}

main .wp-block-button__link {
  border-radius: 0;
  padding: calc(.25em + 2px) calc(1em + 2px);
  background-color: #C44729;
}

main .wp-block-button__link:hover {
  background-color: #802b17;
  color: #fff;
  text-decoration: none;
}

main .btn-green .wp-block-button__link {
  background-color: #3b7a2a;
}

main .btn-green .wp-block-button__link:hover {
  background-color: #27511c;
}

main a {
  color: #3b7a2a;
  text-decoration: none;
}

main a:hover {
  color: #558C47;
  text-decoration: underline;
}


/* =========================================================
   TEAM
========================================================= */

.team-card a {
  text-decoration:none;
  color:inherit;
}

.team-card img {
  border-radius:12px;
}

.team-card h3 {
  margin-bottom:.3rem;
}


/* =========================================================
   FULLWIDTH SECTION (FINAL & STABIL)
========================================================= */

section.fullwidth {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  background-color: #EDF4DE;
  margin: 3rem -50vw;
  padding: 2rem 0;
}

/* innerer Content wieder einsperren */
section.fullwidth > .wp-block-group__inner-container {
  max-width: 992px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.bg-green {
  background-color: #EDF4DE;
}