@import url("screen.css");
@import url("navigation.css");

/* Farbschema (#1D7F2C dunkles Grün, #79B128 helles Grün, #7B0F01 dunkles Rot, #E14B38 helles Rot) */

/* open-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: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: url('/fonts/open-sans-v43-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* open-sans-600 - 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: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  src: url('/fonts/open-sans-v43-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.1em;
  background-color: #ffffff;
  color: #000000;
  line-height: 1.6;
  padding: 0rem;
  margin: 0rem;
  transition: background-color 0.3s, color 0.3s;
}

body.dark {
  background-color: #121212;
  color: #f1f1f1;
}
    #theme-toggle svg {
      width: 22px;
      height: 22px;
    }
    .icon-sun, .icon-moon {
      display: none;
    }
    body.light .icon-sun,
    body.dark .icon-moon {
      display: inline;
    }
a {
  color: #005ea5;
}
a.active {
  background-color: #FFFFCC;
}

a:focus, button:focus, input:focus, textarea:focus {
  outline: 3px solid #ffbf47;
  outline-offset: 2px;
}

h1 {
  font-size: 1.6rem;
}
h2 {
  font-size: 1.4rem;
}
h3 {
  font-size: 1.2rem;
}
.headline {
  font-size: 1.3rem;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background-color: #fff;
  padding: 0 10px;
  z-index: 100;
  margin: 0;
}

.skip-link:focus {
  left: 0;
  top: 0;
  padding: 5px;
  outline: 3px solid #ffbf47;
  outline-offset: 2px;
}

header, nav, main, footer {
  margin: auto;
}

#page-topbar {
    background-color: #f0f0f0;
    padding: 0;
}

.navbar-brand {
  margin: 0.8em 1em;
}


#main-nav a {
    padding: 15px 25px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    text-align: center;
}



footer {
    margin-bottom: 0;
    border-top: 1px solid #f2f2f2;
    background-color: #f9f9f9;
}
footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
footer .container img { margin-right: 2rem;}
footer nav {
  margin: 2rem;
  padding: 1rem 0;
}
footer p {
  padding: 1rem 0;
}

.copy {
  font-size: 0.8rem;
  text-align: center;
}

button {
  background-color: transparent;
  color: #0b5917;
  border: none;
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  margin-left: 6px;
}
button#fontsize-increase, button#fontsize-standard, button#fontsize-decrease {
  padding: 0.5rem;
  margin-left: 3px;
}

button:hover,
button:focus {
  background-color: #0b5917;
  color: #fff;
}
button#notaus {
    display: flex;
    align-items: center;
}

figcaption {
  font-size: 0.75em;
  text-align: center;
  padding: 0.8em;
}

[role="region"] {
  padding: 0.5rem 1rem;
  /*border-left: 3px solid #005ea5;*/
  background-color: #f9f9f9;
}

    body.light .icon-sun,
    body.dark .icon-moon {
      display: inline;
    }
body.dark #page-topbar { background-color: #464646; color: #fff; }
body.dark button { background-color: transparent; color: #fff;}
body.dark button:hover { background-color: #0b5917; color: #fff;}
body.dark a { color: #66aaff; }
body.dark h1, body.dark h2 { color: #ffffff; }
body.dark .accordion-button { background: #2c2c2c; color: #f1f1f1; }
body.dark [role="region"] { background-color: #1e1e1e; border-color: #66aaff; }
body.dark footer { background: #2e2c2c; }
body.dark footer .container img { background-color: #f0f0f0; }
body.dark figcaption { background-color: transparent; }

a.nav-link  {
        -webkit-text-decoration: none;
        text-decoration: none;
        color: #2c2c2c;
        font-size: 0.875rem;
        padding: 0.625rem 0.625rem 0.375rem;
        font-weight: 500;
        -webkit-transition: all 100ms ease-in-out;
        transition: all 100ms ease-in-out;
    }

main div {
  padding: 0 1rem;
}

.infobox {
  display: flex;
  background: #1D7F2C;
  color: white;
  padding: 1.2rem 1.5rem;
  margin: 2rem 0;
  border-left: 8px solid #79B128;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-size: 1.1rem;
  line-height: 1.6;
  position: relative;
  align-items: center;
}
.text-image-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 2rem;
    align-items: flex-start;
    margin: 2rem 0;
}

.text-image-grid.items-top {
    align-items: flex-start;
}

/* Linke Spalte (Text) */
.text-part {
  flex: 1 1 60%;
  min-width: 300px;
}

/* Rechte Spalte (Bild) */
.image-part {
  flex: 1 1 30%;
  min-width: 200px;
  display: grid;
  justify-content: flex-end; /* rechtsbündig */
  padding-top: 4rem;
}

.image-part img {
  max-width: 100%;
  height: auto;
  display: block;
  /*border-radius: 8px;*/
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.image-part figure {
  display: grid;
  justify-items: center;
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #1D7F2C;
  color: white;
  padding: 0.8em;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
}

.back-to-top svg {
  width: 24px;
  height: 24px;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: #79B128;
  transform: translateY(-3px);
  outline: none;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

    .panic-indicator {
        position: fixed;
        top: 20px;
        right: 20px;
        background: #ff4444;
        color: white;
        padding: 10px 15px;
        border-radius: 5px;
        font-size: 14px;
        font-weight: 600;
        z-index: 1000;
        max-width: 170px;
    }


        /* Barrierefreie Panik-Button Anzeige */
        .panic-controls {
            position: fixed;
            top: 40px;
            right: 20px;
            background: #79B128;
            color: white;
            padding: 15px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: bold;
            z-index: 1000;
            box-shadow: 0 4px 8px rgba(0,0,0,0.3);
        }

        /* Sichtbarer Panik-Button */
        .panic-button {
            background: #9f0c0c;
            color: white;
            border: 2px solid #d32f2f;
            padding: 12px 20px;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            border-radius: 6px;
            margin: 10px 0;
            display: block;
            width: 90%;
            transition: all 0.2s ease;
        }

        .panic-button:hover,
        .panic-button:focus {
            background: #9f0c0c;
            border-color: #b71c1c;
            outline: 3px solid #ffeb3b;
            outline-offset: 2px;
        }

        .panic-button:active {
            transform: scale(0.98);
        }

        /* Hochkontrast-Unterstützung */
        @media (prefers-contrast: high) {
            .panic-button {
                border-width: 3px;
                font-weight: 900;
            }
        }

        /* Reduzierte Bewegung berücksichtigen */
        @media (prefers-reduced-motion: reduce) {
            .panic-button {
                transition: none;
            }
            .panic-button:active {
                transform: none;
            }
        }

        .accessibility-info {
            background: #e3f2fd;
            padding: 20px;
            border-left: 4px solid #2196F3;
            margin: 20px 0;
            border-radius: 4px;
        }

        .key-info {
            background: #fff3e0;
            padding: 15px;
            border-left: 4px solid #ff9800;
            margin: 20px 0;
            border-radius: 4px;
        }
    .key-info {
        position: fixed;
        top: 60px;
        right: 20px;
        background: #e8f4f8;
        padding: 15px;
        font-size: 14px;
        font-weight: bold;
        border: 4px solid #F44;
        margin: 20px 0;
        z-index: 1000;
        max-width: 161px;
    }
        /* Screenreader-Text */
        .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }

        /* Statusmeldungen */
        .status-message {
            background: #4caf50;
            color: white;
            padding: 10px;
            border-radius: 4px;
            margin: 10px 0;
            display: none;
        }



#fontsize a {
  margin: 0 2px;
  display: inline;
  padding: 2px 6px;
  border-radius: 6px 6px 6px 6px;
  -moz-border-radius: 6px 6px 6px 6px;
  -webkit-border-radius: 6px 6px 6px 6px;
  border: 1px solid #8fc447;
  text-decoration: none;
  color: #fff;
  text-shadow: 0px 0px 1px #003F0A;
  -webkit-box-shadow: 0px 0px 1px 1px rgba(29,127,44,0.57);
  -moz-box-shadow: 0px 0px 1px 1px rgba(29,127,44,0.57);
  box-shadow: 0px 0px 1px 1px rgba(29,127,44,0.57);
  background: #77b22a;
  background: -moz-linear-gradient(top, #77b22a 0%, #77b22a 33%, #1d7f2c 100%);
  background: -webkit-gradient(left top, left bottom, color-stop(0%, #77b22a), color-stop(33%, #77b22a), color-stop(100%, #1d7f2c));
  background: -webkit-linear-gradient(top, #77b22a 0%, #77b22a 33%, #1d7f2c 100%);
  background: -o-linear-gradient(top, #77b22a 0%, #77b22a 33%, #1d7f2c 100%);
  background: -ms-linear-gradient(top, #77b22a 0%, #77b22a 33%, #1d7f2c 100%);
  background: linear-gradient(to bottom, #77b22a 0%, #77b22a 33%, #1d7f2c 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#77b22a', endColorstr='#1d7f2c', GradientType=0 );
}

/* Responsive Button Layout */
.wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.button-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
/* Auf größeren Displays: alle Buttons in einer Zeile */
@media (min-width: 768px) {
  .wrapper {
    flex-direction: row;
    align-items: center;
  }

  .button-row {
    display: contents; /* Entfernt den Container, Buttons verhalten sich wie direkte Kinder */
  }
}

/* Optional: Anpassungen für sehr kleine Displays */
@media (max-width: 480px) {
  .button-row {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  footer nav {
  margin: 0.5rem;
  padding: 0.5rem 0;
}
footer .container img {
  margin-right: 0;
}
  .fontsize-buttons {
    width: 90%;
    justify-content: space-between;
  }
  #main-nav {
    margin-top: 0.5rem;
  }
}
/* RESPONSIVE: Spalten untereinander auf kleinen Geräten */
@media (max-width: 768px) {
  .text-image-grid {
    flex-direction: column;
  }
  .text-image-grid.items-top {
    align-items: center;
  }
  .panic-controls {
    display: none;
  }

}
