/* =========================
   Basis
========================= */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    /*border: 3px solid green;*/
    margin: 0;
    font-family: Trebuchet MS;
    font-size: 18px;
    line-height: 1.6;
    color: #222; /* font color */
    background: #e5e5e5;
}

body img {
    width: 100%;
    height: auto;
    display: block; /* Verhindert einen ungewollten kleinen Abstand unter dem Bild */
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1,
h2 {
    margin: 0 0 24px;
    line-height: 1.2;
    font-weight: 700;
    color: #0E3E93;
}
h3 {
    line-height: 0.1;
    font-weight: 700;
    color: #0E3E93;
}
h4 {
    /*font-family: Arial Black !important;*/
    line-height: 0.1;
    color: #000000;
}

h1 {
    font-size: 1.8rem;
}

h2 {
    font-size: 1.8rem;
}

h3 {
    font-size: 1.2rem;
}

h4 {
    font-size: 1.2rem;
}

p,
ul {
    margin: 0 0 18px;
}

ul {
    padding-left: 22px;
}

/* =========================
   Grundlayout
========================= */
.wrap {
    /*width: min(1100px, calc(100% - 40px));*/
    width: min(1000px, calc(100% - 40px));
    margin: 0 auto;
}

.row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.box {
    background: #F4F4F4;
    border: 1px solid #cfcfcf;
    /*padding: 34px 24px;*/
    padding-top: 34px;
    padding-left: 24px;
    padding-right: 90px;
    padding-bottom: 10px;
    margin-bottom: 26px;
    scroll-margin-top: var(--header-height, 120px);
}

/* =========================
   Header
========================= */
.header,
.footer {
   background: #0E3E93;
}

.header {
   border: 0px solid black;
   position: sticky;
   top: 0;
   z-index: 1000;
}

.header-row {
   border: 0px solid black;
   min-height: 88px;
}

.logo {
   display: inline-block;
   /*font-size: 2.2rem;*/
   font-weight: 700;
}

.subline {
    margin: 4px 0 0;
    font-size: 1rem;
    color: #666;
}

.image-logo {
	width: 100px;
	/*height: 100px;*/
}

/* =========================
   Navigation
========================= */
.nav {
    border: 0px solid blue;
    flex: 1 1 auto;
}

.nav ul,
.footer-nav ul {
    display: flex;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav ul {
    justify-content: flex-end;
    flex-wrap: wrap;
}

.nav a,
.footer-nav a {
    display: inline-block;
    padding: 10px 8px;
    color: white;
    background-color: #0E3E93;
    text-decoration: none;
}

.nav a:hover,
.footer-nav a:hover {
    color: #0E3E93;
    background-color: white;
}

.menu-button {
    display: none;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #c8c8c8;
    border-radius: 6px;
    background: #8C8C8C;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.menu-button span {
    width: 22px;
    height: 2px;
    background: #222;
    display: block;
    transition: 0.25s ease;
}

.menu-button.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-button.active span:nth-child(2) {
    opacity: 0;
}

.menu-button.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* =========================
   Main
========================= */
.main {
    padding: 30px 0 60px;
    background-color: #8C8C8C;
}

.box a {
    color: #0E3E93;
    text-decoration: none;
}

/* =========================
   Footer
========================= */
.footer {
    border-top: 1px solid #d0d0d0;
    padding: 20px 0;
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
    color: white;
}

.footer-nav a {
    font-size: 0.9rem;
    color: #ffffff;
    padding: 0;
}

/* =========================
   Nach oben Button
========================= */
.top-button {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    background: #222;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.25s ease;
}

.top-button.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* =========================
   Responsive
========================= */
@media (max-width: 900px) {
    .header-row {
        min-height: auto;
        padding: 0px 0;
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .menu-button {
        display: flex;
        margin-left: auto;
    }

    .nav {
        display: none;
        width: 100%;
        margin-top: 16px;
        background: #fff;
        border: 1px solid #d5d5d5;
    }

    .nav.open {
        display: block;
    }

    .nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav li + li {
        border-top: 1px solid #e3e3e3;
    }

    .nav a {
        display: block;
        padding: 14px 16px;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 17px;
    }

    .wrap {
        width: min(1100px, calc(100% - 24px));
    }

    .logo {
        font-size: 1.8rem;
    }

    .subline {
        font-size: 0.95rem;
    }

    .box {
        padding: 26px 18px;
        scroll-margin-top: 125px;
    }

    h1 {
        font-size: 1.9rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .footer-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .top-button {
        right: 16px;
        bottom: 16px;
        width: 48px;
        height: 48px;
    }
}

/* =========================
   Accordion
========================= */
.accordion {
    margin-top: 24px;
}

.accordion-item {
    border-top: 1px solid #d9d9d9;
}

.accordion-item:last-child {
    border-bottom: 1px solid #d9d9d9;
}

.accordion-toggle {
    width: 100%;
    padding: 18px 0;
    border: 0;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    text-align: left;
    font: inherit;
    color: #222;
    cursor: pointer;
}

.accordion-toggle span:first-child {
    font-weight: 700;
    font-size: 18px;
}

.accordion-arrow {
    width: 12px;
    height: 12px;
    border-right: 3px solid #1f4c7a;
    border-bottom: 3px solid #1f4c7a;
    transform: rotate(45deg);
    transition: transform 0.25s ease;
    flex: 0 0 auto;
    margin-right: 4px;
}

.accordion-item.open .accordion-arrow {
    transform: rotate(225deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    /*background: #FFFFFF !important;*/
}

.accordion-content p {
    padding: 0 0 18px;
    margin: 0;
}

/* =========================
   DIVS LBA
========================= */
#download {
   background-image: url('img/dwnld_button.jpg');
   background-repeat: no-repeat;
   background-size: 350px;
   border: 0px solid red;
   margin: 0px;
   padding-top: 5px;
   padding-left: 50px;
   /*width: 48%;*/
   width: 380px;
   height: 40px;
   float: left;
}

#link {
   background-image: url('img/link_button.jpg');
   background-repeat: no-repeat;
   background-size: 350px;
   border: 0px solid red;
   margin: 0px;
   padding-top: 5px;
   padding-left: 50px;
   /*width: 48%;*/
   width: 380px;
   height: 40px;
   float: left;
}

#contact_point {
	border: 0px solid red;
   margin: 0px;
   padding: 0px;
   /*width: 48%;*/
   width: 300px;
   height: auto;
}


/* =========================
   CLASSES LBA
========================= */

.vorname {
    position: absolute;
    left: -9999px;
}


/*  =====================
      INPUTS
========================= */

input[type="text"] {
  font-family: Trebuchet MS;
  font-size: 16px;
  color: #000000;
  width: 300px;
  height: 30px;
  padding: 5px;
}

input[type="number"] {
  font-family: Trebuchet MS;
  font-size: 16px;
  color: #000000;
  width: 75px;
  height: 30px;
  padding: 5px;
}
 
input[type="submit"] {
  font-family: arial;
  font-weight: bold;
  font-size: 11px;
  color: #000000;
  height: 23px;
}

textarea {
  font-family: Trebuchet MS;
  color: #000000;
  text-align: left;
  line-height: 22px;
  font-size: 16px;
  letter-spacing: 0em;
  width: 450px;
  height: 300px;
  margin-left: 0px;
  padding: 10px;
}
@media (max-width: 768px) {
    textarea {
        width: 300px; /* Nutzt auf dem Smartphone die volle Breite aus */
        box-sizing: border-box; /* Verhindert, dass Innenabstände (Padding) das Feld sprengen */
    }
}