@import url("reset.css");


body {
}
* {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}
/* nunito-sans-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/nunito-sans-v19-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* nunito-sans-italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Nunito Sans';
  font-style: italic;
  font-weight: 400;
  src: url('../fonts/nunito-sans-v19-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* nunito-sans-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/nunito-sans-v19-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* nunito-sans-700italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Nunito Sans';
  font-style: italic;
  font-weight: 700;
  src: url('../fonts/nunito-sans-v19-latin-700italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* amatic-sc-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Amatic SC';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/amatic-sc-v28-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* amatic-sc-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Amatic SC';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/amatic-sc-v28-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}



:root {
    --light-green: #85c755;
    --dark-green: #4d5a44;
    --text: #434343;
    --bg: #f6f4ef;
     --bg-green: #799d5f
}

html{
    scroll-behavior: smooth
}

body{
    overflow-x: hidden;
    font-family: 'Nunito Sans';
    font-size: 16px;
    line-height: 24px;
    color: var(--text);
    background: #f6f4ef
}

header{
    background: url(../images/hintergrund-wald-sonnenlicht.webp);
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top;
}

h1{
    font-family: 'Amatic SC';
    padding: 250px 10%;
    font-size: 80px;
    line-height: 90px;
    font-weight: 700;
    text-align: center;
    color: #fff;
}

section{
    padding: 150px 10%;
}

.flex{
    display: flex;
    align-items: center;
    column-gap: 80px;
    justify-content: space-between;
}

.col{
    width: 50%;
}

.headline{
    font-family: 'Amatic SC';
    color: var(--light-green);
    font-size: 25px;
    padding-bottom: 20px;
    line-height: 35px;
}

p{
    padding: 10px 0px;
}

.padding{
    padding: 150px 80px 150px 20%;
}

strong{
    font-weight: 700;
    color: #c5ff9b
}

.dark{
    color: var(--bg-green);
}

h2{
    font-size: 30px;
    line-height: 40px;
    padding-bottom: 30px;
}

h3{
    font-size: 30px;
    line-height: 40px;
    font-family: 'Amatic SC';
}

.button{
    background: var(--bg-green);
    padding: 10px;
    color: #fff;
    display: inline-block;
    margin-top: 20px;
}


nav{
    display: flex;
    align-items: center;    
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 5px 5%;
    z-index: 1000;

    background: transparent;
    transition: background-color 0.3s ease;
}

nav.scrolled{
    background-color: #4d5d45;
}

/* Desktop: Wrapper ohne eigene Box, Links und Button bleiben direkte Flex-Kinder */
.nav-menu{
    display: contents;
}

.nav-toggle{
    display: none;
}

nav ul{
    display: flex;
}

nav ul li a{
    padding: 0px 15px;
    text-decoration: none;
    color: #fff;
}


.logo{
    height: 50px;
}

.zertifikat{
    background: var(--light-green);
    padding: 10px;
    color: var(--main);
    text-decoration: none;
}


.wave{
    width: 100%;
    margin-top: -1px;
}

#ueber-uns{
    background-color: var(--bg);
    margin-top: -10px;
    background-image: url(../images/baum-vektor.webp);
    background-size: auto;
    background-position: right bottom;
    background-position-x: 90%;
    background-repeat: no-repeat;
    
}

#ueber-uns img, #artenschutz img{
    width: 100%;
    max-width: 500px;
    border: 10px solid;
    border-color: #fff;
    -webkit-box-shadow: 1px 2px 7px 0px rgba(0,0,0,0.17); 
    box-shadow: 1px 2px 7px 0px rgba(0,0,0,0.17);
}

.parallax{
    background: url(../images/hintergrund-laubbaum-nebel.webp);
    height: 400px;
    padding: 250px 10%;
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
}

.polaroid img{
    width: 100%;
    height: 350px;
    object-fit: cover;
    border: 10px solid;
    border-color: #fff;
}

.polaroid{
    background: #fff;
}

.polaroid h3{
    text-align: center;
    padding: 20px 20px;
}



.claim{
    padding: 300px 10% 150px;
    text-align: center;
    background-color: var(--bg-green);
    color: #fff;
    font-family: 'Amatic SC';
        font-size: 50px;
    line-height: 60px;
    background-image: url(../images/struktur-muster.webp);
}

#baumsachverstaendiger .flex{
    align-items: stretch;
}

#baumsachverstaendiger{
    background: var(--bg);
}


.col1{
    width: 35%;
    background: url(../images/baumliebe-haende-baumstamm.webp);
    background-size: cover;
    background-position: center;
    border: 10px solid;
    border-color: #fff;
    -webkit-box-shadow: 1px 2px 7px 0px rgba(0,0,0,0.17); 
    box-shadow: 1px 2px 7px 0px rgba(0,0,0,0.17);
}

.col2{
    width: 65%;
}

.timeline{
    padding-top: 100px;
}

#baumsachverstaendiger h2{
    margin-bottom: 50px;
}

#baumsachverstaendiger h3{
  font-family: 'Nunito Sans';
    font-weight: 700;
    font-size: 16px;
    line-height: 26px;
    
}

#baumsachverstaendiger .box{
    padding: 20px 0px;
}

#baumsachverstaendiger .icon{
    width: 50px;
    margin-bottom: 20px;
}

.schalltomogramm{
    margin: 20px 0 0;
}

.schalltomogramm img{
    display: block;
    width: 100%;
    max-width: 316px;
    height: auto;
    border: 10px solid;
    border-color: #fff;
    -webkit-box-shadow: 1px 2px 7px 0px rgba(0,0,0,0.17);
    box-shadow: 1px 2px 7px 0px rgba(0,0,0,0.17);
}

.schalltomogramm figcaption{
    padding-top: 10px;
    font-size: 14px;
}

#baumpflege .altbaum{
    display: block;
    width: 100%;
    max-width: 300px;
    height: auto;
    margin-top: 20px;
    border: 10px solid;
    border-color: #fff;
    -webkit-box-shadow: 1px 2px 7px 0px rgba(0,0,0,0.17);
    box-shadow: 1px 2px 7px 0px rgba(0,0,0,0.17);
}

.trees{
    width: 100%;
}

#baumkontrolle{
    background: var(--dark-green);
    margin-top: -15px;
    color: #fff;
}

#artenschutz-2{
    background: url(../images/hintergrund-laubbaum-nebel.webp);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom;
    background-attachment: fixed;
}

.flip-card {
  width: 100%;
  max-width: 540px;
    padding: 30px;
  height: 600px;
  perspective: 1200px;
}


.flip-card h3{
    color: var(--light-green);
    font-weight: 700;
}

.flip-card-inner {
  position: relative;
  width: 100%;
    border: 10px solid #fff;
  height: 100%;
  transition: transform 0.7s ease;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner,
.flip-card.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: #fff;
  overflow: hidden;
}

/* Vorderseite */

.flip-card-front {
  display: flex;
  flex-direction: column;
}

.flip-card-front img {
  width: 100%;
    height: 350px;
  object-fit: cover;
  display: block;
}

.card-front-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 25px;
  text-align: center;
}



/* Rückseite */

.flip-card-back {
  transform: rotateY(180deg);
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-back-content {
  padding: 55px 45px;
  text-align: center;
}



.baum-timeline__inner {
  position: relative;
  margin: 0 auto;
}

/* senkrechte Mittellinie */
.baum-timeline__inner::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #f3f1e8;
  transform: translateX(-50%);
}

/* jede Zeile */
.baum-item {
  position: relative;
  width: 100%;
  min-height: 280px;
  display: flex;
  align-items: center;
}

/* eine Hälfte der Timeline */
.baum-item__side {
  position: relative;
  width: 50%;
  display: grid;
  align-items: center;
}

/* LINKS */
.baum-item--left {
  justify-content: flex-start;
}

.baum-item--left .baum-item__side {
  grid-template-columns: minmax(0, 1fr) 135px;
  gap: 55px;
  padding-right: 75px;
}

/* RECHTS */
.baum-item--right {
  justify-content: flex-end;
}

.baum-item--right .baum-item__side {
  grid-template-columns: 135px minmax(0, 1fr);
  gap: 55px;
  padding-left: 75px;
}


/* TEXT */

.baum-item__text h3 {
    
  color: #83c748;
  font-weight: 700;
    font-size: 20px;
    line-height: 30px;
    font-family: 'Nunito Sans'
}

.baum-item__text p {
  margin: 0;
  color: #f1f1ed;
  line-height: 1.65;
}


/* BILDER */

.baum-item__image {
  position: relative;
  width: 135px;
  height: 235px;
  padding: 3px;
  background: #f5f3ea;
  box-sizing: border-box;
}

.baum-item__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}


/* horizontale Verbindung LINKS */

.baum-item--left .baum-item__image::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: 75px;
  height: 3px;
  background: #f3f1e8;
  transform: translateY(-50%);
}


/* horizontale Verbindung RECHTS */

.baum-item--right .baum-item__image::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  width: 75px;
  height: 3px;
  background: #f3f1e8;
  transform: translateY(-50%);
}

.multiple-items{
    padding: 0px 50px;
}

#baumpflege{
    background-color: var(--bg-green);
    background-image: url(../images/struktur-muster.webp);
    color: #fff;
}

#baumpflege .headline{
    color: #c5ff9b
}

#baumpflege .col .flex{
    column-gap: 40px;
}

#baumpflege  .row{
    margin: 10px 0px;
}

#kontakt .flex{
    align-items: stretch;
}

.column1{
    width: 50%;
    background-image: url(../images/baum-vektor.webp);
    background-repeat: no-repeat;
    background-position: left top;
}

.column2{
    width: 50%;
    background: url(../images/waldspaziergang-herbst.webp);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: left
}

.dse{
    background: var(--dark-green);
    padding: 10px 10%;
}

.dse a{
    color: #fff;
    padding-right: 20px;
    text-decoration: none;
}

/*---------------------------------------
MEDIA Queries | Tablet | Phone
---------------------------------------*/

/* =====================================
   TABLET
   ===================================== */
@media (max-width: 1200px) {

  .baum-timeline {
    padding: 60px 30px;
  }

  /* Linie nach links verschieben */
  .baum-timeline__inner::before {
    left: 25px;
    transform: none;
  }

  .baum-item,
  .baum-item--left,
  .baum-item--right {
    justify-content: flex-start;
    min-height: auto;
    margin-bottom: 60px;
    padding-left: 75px;
  }

  .baum-item:last-child {
    margin-bottom: 0;
  }

  /* Alle Elemente gleich aufbauen */
  .baum-item__side,
  .baum-item--left .baum-item__side,
  .baum-item--right .baum-item__side {
    width: 100%;
    padding: 0;
    display: grid;
    grid-template-columns: 135px minmax(0, 1fr);
    gap: 35px;
  }

  /* Bild immer links */
  .baum-item--left .baum-item__image,
  .baum-item--right .baum-item__image {
    grid-column: 1;
    grid-row: 1;
  }

  /* Text immer rechts */
  .baum-item--left .baum-item__text,
  .baum-item--right .baum-item__text {
    grid-column: 2;
    grid-row: 1;
  }

  /* Desktop-Verbindungslinien entfernen */
  .baum-item__image::before,
  .baum-item__image::after {
    display: none;
  }

  /* Neue Verbindung zwischen Timeline und Bild */
  .baum-item::before {
    content: "";
    position: absolute;
    left: 25px;
    top: 50%;
    width: 50px;
    height: 3px;
    background: #f3f1e8;
    transform: translateY(-50%);
  }
}


/* =====================================
   SMARTPHONE
   ===================================== */
@media (max-width: 600px) {

  .baum-timeline {
    padding: 40px 20px;
  }

  .baum-timeline__inner::before {
    left: 10px;
  }

  .baum-item,
  .baum-item--left,
  .baum-item--right {
    padding-left: 45px;
    margin-bottom: 50px;
  }

  .baum-item__side,
  .baum-item--left .baum-item__side,
  .baum-item--right .baum-item__side {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  /* Bild wieder zuerst */
  .baum-item--left .baum-item__image,
  .baum-item--right .baum-item__image {
    order: 1;
  }

  .baum-item--left .baum-item__text,
  .baum-item--right .baum-item__text {
    order: 2;
  }

  .baum-item__image {
    width: 135px;
    height: 210px;
  }

  /* Verbindungslinie auf Höhe der Bildmitte */
  .baum-item::before {
    left: 10px;
    top: 105px;
    width: 35px;
    transform: none;
  }
}

/* =====================================
   LAYOUT – TABLET (Navigation, Abstände)
   ===================================== */
@media (max-width: 1200px) {

  nav {
    padding: 10px 5%;
  }

  nav.open {
    background-color: #4d5d45;
  }

  .logo {
    height: 44px;
  }

  /* Burger-Button */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: 0;
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  nav.open .nav-toggle span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  nav.open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  nav.open .nav-toggle span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  /* Ausklappbares Menü */
  .nav-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
    background-color: #4d5d45;
    transition: max-height 0.35s ease;
  }

  nav.open .nav-menu {
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }

  nav ul {
    flex-direction: column;
  }

  nav ul li a {
    display: block;
    padding: 14px 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .zertifikat {
    display: inline-block;
    margin: 15px 5% 20px;
  }

  /* Abstände */
  h1 {
    padding: 200px 6%;
    font-size: 64px;
    line-height: 72px;
  }

  section {
    padding: 100px 6%;
  }

  .padding {
    padding: 100px 6%;
  }

  .flex {
    column-gap: 40px;
  }

  /* Polaroids ragen wie auf dem Desktop in den Claim-Block */
  .parallax {
    padding: 250px 6%;
  }

  .claim {
    padding: 300px 6% 100px;
  }

  /* fixed-Hintergründe ruckeln/zoomen auf iOS und Tablets */
  header,
  .parallax,
  #artenschutz-2 {
    background-attachment: scroll;
  }
}


/* =====================================
   LAYOUT – SPALTEN UNTEREINANDER
   ===================================== */
@media (max-width: 992px) {

  .flex {
    flex-direction: column;
    align-items: stretch;
    row-gap: 40px;
  }

  .col,
  .col1,
  .col2,
  .column1,
  .column2 {
    width: 100%;
  }

  #ueber-uns {
    background-size: 180px auto;
  }

  /* Bilder beim Umbruch linksbündig, max. 500px */
  #ueber-uns img,
  #artenschutz img {
    display: block;
    max-width: 500px;
  }

  .col1 {
    max-width: 500px;
    min-height: 420px;
  }

  #baumsachverstaendiger h2 {
    margin-bottom: 20px;
  }

  /* Polaroids */
  .parallax {
    height: auto;
    padding: 100px 6%;
  }

  .polaroid {
    width: 100%;
    max-width: 500px;
  }

  .claim {
    padding: 150px 6% 80px;
    font-size: 40px;
    line-height: 48px;
  }

  .timeline {
    padding-top: 60px;
  }

  /* Baumpflege: Icon und Text bleiben nebeneinander */
  #baumpflege .row .flex {
    flex-direction: row;
    align-items: flex-start;
    column-gap: 20px;
  }

  #baumpflege .row .image {
    flex-shrink: 0;
  }

  /* Kontakt */
  .column2 {
    min-height: 350px;
  }
}


/* =====================================
   LAYOUT – SMARTPHONE
   ===================================== */
@media (max-width: 600px) {

  /* lange Komposita wie „Handlungsempfehlungen“ */
  h3 {
    hyphens: auto;
    -webkit-hyphens: auto;
  }

  h1,
  h2,
  .claim {
    overflow-wrap: break-word;
  }

  h1 {
    padding: 150px 5% 110px;
    font-size: 48px;
    line-height: 56px;
  }

  h2 {
    font-size: 24px;
    line-height: 32px;
    padding-bottom: 20px;
  }

  .headline {
    font-size: 22px;
    line-height: 30px;
  }

  section {
    padding: 70px 5%;
  }

  .padding {
    padding: 70px 5%;
  }

  .parallax {
    padding: 70px 5%;
  }

  .polaroid img {
    height: 260px;
  }

  .claim {
    padding: 110px 5% 60px;
    font-size: 32px;
    line-height: 40px;
  }

  .col1 {
    min-height: 340px;
  }

  #baumsachverstaendiger .box {
    padding: 10px 0;
  }

  /* Slider */
  #artenschutz-2 {
    padding: 60px 5%;
  }

  .multiple-items {
    padding: 0 30px;
  }

  .multiple-items .slick-prev {
    left: 0;
  }

  .multiple-items .slick-next {
    right: 0;
  }

  .flip-card {
    padding: 10px;
    height: 500px;
  }

  .flip-card-front img {
    height: 260px;
  }

  .card-back-content {
    padding: 30px 20px;
  }

  .column2 {
    min-height: 260px;
  }

  .dse {
    padding: 10px 5%;
  }

  .dse a {
    display: inline-block;
    padding: 5px 20px 5px 0;
  }
}


/* =====================================
   LAYOUT – KLEINE SMARTPHONES (bis 320px)
   ===================================== */
@media (max-width: 400px) {

  h1 {
    font-size: 40px;
    line-height: 48px;
  }

  h2 {
    font-size: 22px;
    line-height: 30px;
  }

  h3 {
    font-size: 26px;
    line-height: 34px;
  }

  .claim {
    font-size: 28px;
    line-height: 36px;
  }

  .flip-card {
    height: 470px;
  }

  .flip-card-front img {
    height: 230px;
  }
}


/* =====================================
   HOVER-EFFEKTE
   ===================================== */
:root {
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

nav ul li a,
.zertifikat,
.button,
.dse a,
.polaroid,
#ueber-uns img,
#artenschutz img,
#baumsachverstaendiger .icon,
#baumpflege .row .image img,
.baum-item__image img {
  transition: all 0.35s var(--ease);
}

@media (hover: hover) {

  /* Navigation: feine Linie wächst von links (nur Desktop-Leiste) */
  @media (min-width: 1201px) {
    nav ul li a {
      position: relative;
    }

    nav ul li a::after {
      content: "";
      position: absolute;
      left: 15px;
      right: 15px;
      bottom: -6px;
      height: 2px;
      background: var(--light-green);
      transform: scaleX(0);
      transform-origin: left;
      transition: transform 0.35s var(--ease);
    }

    nav ul li a:hover::after {
      transform: scaleX(1);
    }
  }

  /* Navigation: mobiles Menü */
  @media (max-width: 1200px) {
    nav ul li a:hover {
      background: rgba(255, 255, 255, 0.06);
      padding-left: calc(5% + 6px);
    }
  }

  /* Buttons */
  .zertifikat:hover,
  .button:hover {
    filter: brightness(1.08);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
  }

  /* Polaroids heben sich leicht an */
  .polaroid:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
  }

  /* Gerahmte Bilder: Schatten wird etwas tiefer */
  #ueber-uns img:hover,
  #artenschutz img:hover {
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
  }

  /* Icons bewegen sich beim Überfahren des Eintrags leicht nach oben */
  #baumsachverstaendiger .box:hover .icon,
  #baumpflege .row:hover .image img {
    transform: translateY(-4px);
  }

  /* Timeline-Bilder werden etwas heller und satter */
  .baum-item:hover .baum-item__image img {
    filter: brightness(1.06) saturate(1.1);
  }

  /* Footer-Links */
  .dse a:hover {
    color: var(--light-green);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}


/* =====================================
   UNTERSEITEN (Impressum)
   ===================================== */
.subpage h1 {
  padding: 200px 10% 90px;
}

/* verhindert den Bildstreifen unter der Welle */
.subpage .wave {
  display: block;
}

.legal {
  padding-top: 100px;
}

.legal h2 {
  padding-bottom: 5px;
}

.legal h2 .headline {
  font-size: 32px;
  line-height: 40px;
}

.legal a {
  color: var(--bg-green);
  text-decoration: none;
  transition: color 0.35s var(--ease);
}

.kontakt-liste {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  row-gap: 6px;
  padding: 10px 0;
}

.kontakt-liste dt {
  font-weight: 700;
}

.kontakt-liste dd {
  overflow-wrap: anywhere;
}

.legal-text {
  max-width: 900px;
}

.legal-text h2 {
  margin-top: 40px;
}

.legal-text h2:first-child {
  margin-top: 0;
}

.legal-hinweis {
  margin-top: 40px;
}

.dse a[aria-current="page"] {
  color: var(--light-green);
}

@media (hover: hover) {
  .legal a:hover {
    color: var(--dark-green);
  }
}

@media (max-width: 1200px) {
  .subpage h1 {
    padding: 170px 6% 70px;
  }

  .legal {
    padding-top: 70px;
  }
}

@media (max-width: 600px) {
  .subpage h1 {
    padding: 130px 5% 50px;
  }

  .legal {
    padding-top: 50px;
  }

  .legal h2 .headline {
    font-size: 28px;
    line-height: 36px;
  }

  .legal-text h2,
  .legal-hinweis {
    margin-top: 30px;
  }
}


/* =====================================
   ZERTIFIKATE-DIALOG
   ===================================== */
html.dialog-open {
  overflow: hidden;
}

.zertifikate {
  width: min(1100px, calc(100% - 40px));
  max-height: calc(100vh - 40px);
  margin: auto;
  padding: 0;
  border: 0;
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  overflow-y: auto;
}

.zertifikate::backdrop {
  background: rgba(34, 42, 30, 0.75);
}

.zertifikate[open] {
  animation: zertifikate-in 0.5s var(--ease);
}

.zertifikate[open]::backdrop {
  animation: zertifikate-backdrop 0.5s ease;
}

@keyframes zertifikate-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
}

@keyframes zertifikate-backdrop {
  from {
    opacity: 0;
  }
}

.zertifikate__inner {
  position: relative;
  padding: 60px;
}

.zertifikate__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}

.zertifikate figure {
  margin: 0;
}

.zertifikate img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Siegel/Stempel: gleiche Höhe wie die Ausweise, ohne Kartenrahmen */
.zertifikate__siegel img {
  aspect-ratio: 1014 / 640;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}

.zertifikate figcaption {
  padding-top: 15px;
  font-weight: 700;
  text-align: center;
}

/* Schließen-Button (X) */
.zertifikate__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--dark-green);
  cursor: pointer;
  transition: background-color 0.35s var(--ease);
}

.zertifikate__close span {
  position: absolute;
  top: 50%;
  left: 12px;
  right: 12px;
  height: 2px;
  background: #fff;
}

.zertifikate__close span:nth-child(1) {
  transform: rotate(45deg);
}

.zertifikate__close span:nth-child(2) {
  transform: rotate(-45deg);
}

@media (hover: hover) {
  .zertifikate__close:hover {
    background: var(--bg-green);
  }
}

@media (max-width: 768px) {
  .zertifikate__inner {
    padding: 70px 5% 40px;
  }

  .zertifikate__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .zertifikate__close {
    top: 12px;
    right: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zertifikate[open],
  .zertifikate[open]::backdrop {
    animation: none;
  }
}

.bildnachweise {
  padding: 10px 0 0 20px;
  list-style: disc;
}

.bildnachweise li {
  padding: 3px 0;
}
