@charset "utf-8"; /* legt Zeichencodierung fest → wichtig für Umlaute */
/* CSS Document */
@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:wght@400;700&display=swap');
/* lädt externe Schriftart von Google Fonts */
:root {
  --bs-body-font-family: 'Atkinson Hyperlegible', sans-serif;
  --farbe-text: #222222;
  --farbe-hintergrund: #ffffff;
  --farbe-akzent: #4a7c2d;
  --farbe-akzent-dunkel: #2f4e16; /* dunklere Variante für Überschriften */
  --farbe-link: #2f4e16;  /* normale Linkfarbe */
  --farbe-link-hover: #4a7c2d;
  --farbe-fokus: #ffbf47;  /* Linkfarbe bei Hover */
}

body {
  margin: 0; /* entfernt Standard-Außenabstand */
  padding: 0; /* entfernt Standard-Innenabstand */
  font-family: 'Atkinson Hyperlegible', sans-serif;
  font-size: clamp(1.1rem, 2.2vw, 1.2rem);  /* responsive Schriftgröße (min / dynamisch / max) */
  line-height: 1.6;  /* Zeilenabstand für Lesbarkeit */
  color: var(--farbe-text); /* Textfarbe aber von was ? */
  background-color: var(--farbe-hintergrund);
  -webkit-text-size-adjust: 100%;  /* verhindert automatische Textvergrößerung auf mobilen Geräten */
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Atkinson Hyperlegible', sans-serif;
  font-weight: 700; /* fett */
  color: var(--farbe-akzent-dunkel);
  line-height: 1.3; /* engerer Abstand */
  margin-top: 1.2em;
  margin-bottom: 1.2em;
  hypens:none;
}
h1, h2 {
  text-align: center;
  hyphens: none;
}

a:not(.link-css) {
  color: var(--farbe-link);/* Standardfarbe */
  text-decoration: underline; /* Unterstrich */
  text-underline-offset: 0.2em; /* Abstand vom Text */
  transition: color 0.2s ease; /* sanfter Farbwechsel */
}

a:not(.link-css):hover,
a:not(.link-css):focus {
  color: var(--farbe-link-hover);/* Farbe beim Hover */
}

a:focus,/* Fokus für Barrierefreiheit */
button:focus,
input:focus {
  outline: 3px solid var(--farbe-fokus); /* sichtbarer Rahmen */
  outline-offset: 3px;/* Abstand zum Element */
}

p, ul, ol {
  margin-top: 0;
  margin-bottom: 1em;
}

@media (max-width: 768px) {
  .themen-rahmen {
    background-color: rgba(255, 255, 255, 0.98) !important;
    width: 100% !important;
    max-width: 100%;
  }
  .themen-box {
    background-color: transparent !important;
    padding: 0 5px;
  }
}
/* ==================== Hintergrundbild ==================== */
.background-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw; /* volle Breite */
  height: 100vh; /* volle Höhe */
  z-index: -1; /* hinter allem */
  background-image: url("/images/hintergrund-komprimiert.webp");/* bleibt beim Scrollen stehen */
  background-size: cover;/* füllt komplett */
  background-repeat: no-repeat;
  background-position: center;/* zentriert */
  margin-top: 50px;
}

/* Angepasste Darstellung Mobil */
@media (max-width: 768px) {
  .background-image {
    background-image: url("/images/hintergrund-komprimiert.webp");
    margin-top: 50px;
  }
}

:target {
  scroll-margin-top: 140px;
}



/* Optionaler Titel links */
.site-title,
.brand-title {
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
}

.brand-title-desktop {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  margin: 0.5em 0 1em 0;
  background-color: rgba(150, 214, 73, 0.76);
  padding: 20px;
}
.brand-title-desktop p {
  font-size: 1.2rem;
}
.site-title {
  font-size: 1.6rem !important;
  font-weight: 700;/* wofür ist das? */
  color: #000000;                /* wofür ist das? */
  background-color: transparent; /* wofür ist das? */
  padding: 5px 10px;
}


.icon-btn {/* wofür ist das? */
  display: flex;/* wofür ist das? */
  align-items: center;/* wofür ist das? */
  gap: 0.5rem;/* wofür ist das? */
}

/* Logo-Icons */
.icon {
  width: 24px;/* wofür ist das? */
  height: 24px;/* wofür ist das? */
}
/* ==================== Social Media Verlinkung ==================== */
.social-follow-box {
  margin: 2.5rem auto 1.5rem;/* wofür ist das? */
  text-align: center;/* wofür ist das? */
}

.social-follow-box p {
  margin-bottom: 1.2rem;/* wofür ist das? */
  font-size: 1.1rem;/* wofür ist das? */
  font-weight: 700;/* wofür ist das? */
  color: var(--farbe-akzent-dunkel);/* wofür ist das? */
}
/* ==================== Social Buttons ==================== */
.social-btn {
  display: inline-flex;
  align-items: center;  /* vertikal zentriert */
  gap: 12px;  /* Abstand zwischen Icon und Text */
  padding: 0.8rem 1.6rem; /* Innenabstand → bestimmt Größe */
  margin: 0.5em auto;/* wofür ist das? */
  font-size: 1.05rem;/* wofür ist das? */
  font-weight: 700;  /* fette Schrift */
  border-radius: 50px;  /* pillenförmig */
  text-decoration: none;/* wofür ist das? */
  white-space: nowrap;/* wofür ist das? */
  min-height: 52px;  /* Mindesthöhe (barrierefrei klickbar) */
  background-color: #ccc; /* wird überschrieben durch Farbe */
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);  /* leichter Schatten */
  transition: background-color 0.3s ease, transform 0.2s ease;  /* Animation für Hover */
  border: 3px solid #000 !important; /* kompletter Rahmen */
  
}
  /* Button wird leicht größer beim Hover */
.social-btn:hover,
.social-btn:focus {
  transform: scale(1.05);
}

/* Instagram Farbe */
.social-btn.instagram {
  background-color: #000000 !important;
  color: #ffffff !important;
  border-color: #E4405F !important;
}

}
.social-btn.instagram:hover,
.social-btn.instagram:focus {
  background-color: #ffffff !important; /* Hintergrund hover */
  color: #000000 !important;            /* Schrift hover */
  border-color: #E4405F !important;
}

/* Facebook Farbe */
.social-btn.facebook {
  background-color: #000000 !important; /* Hintergrund normal */
  color: #ffffff !important;            /* Schrift normal */
  border-color: #1877F2 !important;
}
.social-btn.facebook {
  
}

.social-btn.facebook:hover,
.social-btn.facebook:focus {
  background-color: #ffffff !important; /* Hintergrund hover */
  color: #000000 !important;            /* Schrift hover */
  border-color: #1877F2 !important;
}



/* Icon-sozial media
.social-btn img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(0);
  transition: filter 0.35s ease;
}
 Beim Hover wird Icon weiß (auf schwarzem Hintergrund)
.social-btn:hover img,
.social-btn:focus img {
  color: #ffffff !important;
}*/


/* ==================== Box-System ==================== */
.themen-rahmen {
  background-color: rgba(255, 255, 255, 0.98) !important;  /* fast weiß, leicht transparent */
  padding: 20px;  /* Innenabstand */
  margin: 20px auto;  /* Abstand außen + zentriert */
  width: 100%;
  box-sizing: border-box;
  border-radius: 12px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);  /* leichter Schatten */
}

/* Einzelbox innerhalb Rahmen */
.themen-box {
  background-color: transparent;
  padding: 0 1rem 0 ;
  margin: 20px auto;
  box-sizing: border-box;
  max-width: 1000px;
  border-radius: 12px;
}
.themen-box img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .themen-rahmen {
    max-width: 100%;
  }
}




/* Responsive Zusatzregeln */
@media (max-width: 1024px){
  .themen-rahmen{
    padding: 15px !important;
    background-color: rgba(254,240,176,0.74);
    border-radius: 12px;
    box-shadow: 0 0 8px rgba(0,0,0,0.05);
  }
}

.hintergrund-weiss-durchsichtig {
  background-color: rgba(255, 255, 255, 0.98) !important;
}
/* ==================== Buttons allgemein ==================== */

.btn-mehr-erfahren,
.news-pagination a {
  display: inline-flex !important; /* Flexbox statt inline-block */
  justify-content: center !important; /* Text horizontal zentrieren */
  align-items: center !important; /* Text vertikal zentrieren */
  min-height: 44px !important; /* Barrierefreie Mindesthöhe */
  text-align: center !important; /* Text mittig */
  text-decoration: none !important; /* Kein Unterstrich */
  line-height: 1 !important; /* Saubere Höhe */
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important; /* Einheitliche Übergänge */
}

/* Mehr-erfahren-Button */
.btn-mehr-erfahren {
  min-width: 44px !important; /* Barrierefreie Mindestbreite */
  padding: 6px 14px !important; /* Innenabstand */
  border-radius: 6px !important; /* Rundung */
  font-size: 20px !important; /* Schriftgröße */
  font-weight: 800 !important; /* Schriftstärke */
  color: #000000 !important; /* Schriftfarbe */
  background-color: #ffde88 !important; /* Hintergrund */
  border: 4px solid #2F4E16 !important; /* Umrandung */
  cursor: pointer; /* Klickbar */
}

.btn-mehr-erfahren:hover,
.btn-mehr-erfahren:focus {
  background-color: #ffffff !important; /* Weiß beim Hover/Fokus */
  border-color: #f59e0b !important; /* Orange Rahmen */
  color: #000000 !important; /* Text bleibt schwarz */
  outline: none !important; /* Standard-Outline aus */
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 6px #000000 !important; /* Fokus-Ring */
}

.btn-mehr-erfahren:active {
  background-color: #f3f4f6 !important; /* Klick-Effekt */
  transform: scale(0.98) !important; /* Leichter Druck-Effekt */
}

.btn-mehr-erfahren:focus:not(:focus-visible) {
  outline: none !important; /* Nur sichtbarer Fokus bei Tastatur */
  box-shadow: none !important;
}

main {
  max-width: 60ch;
  margin: 0 auto;
  padding: 1em;
  hyphens: auto;
}

main img {
  height: auto;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.assistenzhund-bild {
  display: block;
  margin: 1em auto;
  max-width: 300px;
  width: 100%;
  height: auto;
}

section {
  margin-bottom: 2.5em;
}

/* =========================================
   News-Seitenzahlen
   ========================================= */
.news-pagination {
  display: flex;
  justify-content: left;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.news-pagination a {
 display: inline-block;
  min-width: 2.2rem;
  padding: 0.4rem 0.7rem;
  text-align: center;
  font-weight: 800 !important; /* Fette Schrift */
  color: #000000 !important; /* Schwarzer Text */
   background: #ffde88; /* Hintergrund */
    border: 3px solid var(--farbe-akzent-dunkel);
	 margin: 0 2px; /* Abstand zwischen Seitenzahlen */
  border-radius: 8px !important; /* Rundung */
 text-decoration: none;
  transition: all 0.2s ease;
  
}

.news-pagination a:hover,
.news-pagination a:focus-visible {
  background-color: #ffffff !important; /* Weiß beim Hover/Fokus */
  color: #000000 !important; /* Text bleibt schwarz */
  border-color: #f59e0b !important; /* Orange Rahmen */
  outline: 3px solid var(--farbe-fokus); /* Fokus sichtbar */
  outline-offset: 2px;
}

.news-pagination a[aria-current="page"] {
  background-color: #FFDE88 !important; /* Aktive Seite behält Grundfarbe */
  color: #000000 !important; /* Schwarzer Text */
  border-color: #2F4E16 !important; /* Grüner Rahmen */
  cursor: default;
}
/* =========================================
   Barrierefreie Trennlinie zwischen News-Artikeln
   ========================================= */
.news-entry {
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid rgba(47, 78, 22, 0.6); /* dunkles Grün, gute Lesbarkeit */
}

/* Keine Linie beim ersten und letzten Eintrag */
.news-entry:first-of-type {
  border-top: none;
}

.news-entry:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}


/* -------- Mobile Typografie-Boost -------- */
@media (max-width: 480px) {
  body {
    font-size: clamp(1.2rem, 4.5vw, 1.3rem);
    line-height: 1.7;
  }

  .btn-mehr-erfahren {
    font-size: 1.0625rem;
    padding: 0.85em 1.25em;
    border-radius: 10px;
  }

  .news-pagination a {
    padding: 8px 12px;
    border-width: 2px;
  }

  main, .themen-box, .news-entry {
    padding-left: 0.3rem;
    padding-right: 0.5rem;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  body {
    font-size: clamp(1.15rem, 2.8vw, 1.25rem);
    line-height: 1.65;
  }
}

/* Akkordeon – barrierefrei & klar */
.themen-box details {
  border-bottom: 2px solid #000; /* oder deine gewünschte Farbe */
  margin: 0;
  padding: 0;
}
/* Keine Linie nach dem letzten Akkordeon */
.themen-box details:last-of-type {
  border-bottom: none;
}

.themen-box details > summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.1rem 1.25rem;
  background: transparent;
  transition: background-color 0.25s ease;
  user-select: none;
  outline: none;
  line-height: 1.2;
}

.themen-box details > summary h3 {
  margin: 0;
  font-family: 'Atkinson Hyperlegible', sans-serif;
  font-weight: 500;
  font-size: clamp(1.4rem, 2.2vw, 1.5rem);
  color: #000 !important;
}

.themen-box details > summary::-webkit-details-marker {
  display: none;
}

.themen-box details > summary::before {
  content: "";
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  border-right: 3px solid #000;
  border-bottom: 3px solid #000;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}

.themen-box details[open] > summary {
  background: #efefef;
}

.themen-box details[open] > summary::before {
  transform: rotate(-135deg);
}

.themen-box details > summary:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 4px;
}

.themen-box details > :not(summary):not(h3):not(p) {
    padding: 0 1.5rem 1.5rem 2.2rem;
}

/* Aufklapptext gleich groß wie Fließtext */
.themen-box details p {

  font-size: 1em; /* gleiche Größe wie body */
  line-height: 1.7;
  color: #222;
}

@media (min-width: 992px) {
  .themen-box details > summary {
    padding: 1.2rem 1.5rem;
  }
.themen-box details > :not(summary):not(h3):not(p) {
    padding: 0 1.5rem 1.5rem 2.2rem;
}
}

/* ZUSAMMENGEFÜHRT: .themen-box p */
.themen-box p {
  text-align: left;            /* aus erster Version */
  font-size: 1em;              /* letzte Definition gewinnt */
  line-height: 1.7;            /* letzte Definition gewinnt */
  color: #222;                 /* aus letzter Definition */
  margin: 0 0 1em 0;           /* aus letzter Definition */
}

/* Titel-Karte */
.page-title {
  max-width: 72ch;
  margin: 1.25rem auto 2rem;
  background: #fff;
  border: 2px solid var(--farbe-akzent-dunkel);
  border-left: 12px solid var(--farbe-akzent);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  hyphens: none;
}

.page-title h2 {
  margin: 0;
  color: var(--farbe-akzent-dunkel);
  font-weight: 800;
  line-height: 1.25;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
}

/* mobil: etwas kompakter */
@media (max-width: 480px){
  .page-title{
    border-left-width: 10px;
    border-radius: 12px;
    padding: .9rem 1rem;
    margin: 1rem .5rem 1.5rem;
  }
}

/* =========================================
   HEADER – barrierefreier Vollbreiten-Balken
   ========================================= */
.header-banner {
  background: rgba(39, 68, 20, 0.95);
  color: #fff;
  text-align: center;
  padding: 1.5rem 1rem;
  margin: 0;
  width: 100%;
  border-radius: 0;
  box-shadow: inset 0 -3px 6px rgba(0,0,0,0.15);
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
}

.header-banner h1 {
  margin: 0;
  font-weight: 800;
  line-height: 1.25;
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  color: #fff !important;
  text-shadow: 0 2px 3px rgba(0,0,0,.5);
}

.header-banner p {
  margin: .4rem 0 0;
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  color: #f8f8f8 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
}

/* Mobile Anpassungen */
@media (max-width: 480px) {
  .header-banner {
    padding: 1rem .5rem;
  }
  .header-banner h1 {
    font-size: clamp(1.4rem, 6vw, 1.9rem);
  }
  .header-banner p {
    font-size: clamp(1rem, 4.5vw, 1.2rem);
  }
}

/* Deutlichere Links nur im main-Bereich */
main a:not(.link-css) {
  color: rgba(37,14,193,1.00);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(47, 78, 22, 0.4);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

main a:not(.link-css):hover,
main a:not(.link-css):focus-visible {
  color: #1a310c;
  text-decoration-color: #1a310c;
  outline: 3px solid transparent;
}
/* Carousel-Beschriftung oben anzeigen */
.carousel-caption.top-caption {
  top: 0;
  bottom: auto;
  transform: translateY(10%);
  margin-top: 0.5rem;
  text-align: center;
}

/* Sanftes Scrollen allgemein */
html {
  scroll-behavior: smooth;
}

/* Damit die Newsbox beim Ankern nicht unter einem fixen Header klebt */
#newsbox {
  scroll-margin-top: 100px; /* Höhe ggf. anpassen, z. B. deiner Kopfzeile */
}
/* Anker-Offset, damit die Box nicht unter dem Header klebt */
#assistenzhundenews { scroll-margin-top: 100px; } /* Höhe ggf. anpassen */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.themen-box h3 {
  text-align: left;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  margin: 0; 
  line-height: 1.7;
}

/*neues von Genevieve*/
.themen-rahmen {
  border: 5px solid var(--farbe-akzent); /* Fügt einen px dicken grünen Rahmen rund um die Box hinzu. */
  border-radius: 14px; /* Abgerundete Ecken */
  padding: 1rem 1.25rem; /* Innenabstand: oben/unten rem, links/rechts rem. */
  box-shadow: 0 6px 18px rgba(0,0,0,.06); /* Fügt einen weichen Schatten hinzu, damit die Box etwas tiefer wirkt. */
  box-sizing: border-box; /* Sorgt dafür, dass Rahmen und Innenabstand in die Gesamtbreite eingerechnet werden. */
}

.themen-box {
  padding: 0; /* Kein zusätzlicher Innenabstand in der inneren Box. */
  margin: 0; /* Kein zusätzlicher Außenabstand in der inneren Box. */
}
