/* Grundlayout */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Roboto", "Helvetica", "Arial", sans-serif;
    background-color: #f9f9f9;
    font-size: 16px;
    color: #333;  
    line-height: 1.6;
}

.hintergrund {
    background-image: url('/images/background.avif');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top center;
    height: 100vh;
    width: 100%;
    position: fixed;
    top: -50px;
    left: 0;
    z-index: -2;
}

.overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(249, 249, 249, 0.93);
      z-index: -1;
}


/* Header-Styling */
.header {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    background-color: rgba(224, 224, 224, 0.9);
    margin: auto;
    margin-bottom: 20px;
    z-index: 1000;
}

/* Logo */
.logo-link {
  display: inline-block;
  text-decoration: none;
  padding-top: 8px;
}

.logo-img {
  width: auto;
  height: 80px;
  object-fit: cover;
  display: block;
  padding-bottom: 8px;
}


/* Content */

.header_teaser {
  display: flex;
  align-items: center;
  justify-content: center;
  /*background-color: rgba(224,224,224,0.9);*/
  margin-bottom: 20px;
  z-index: 1;
  width: 100%;
  /*border: 1px solid #005fa3;*/
}

.header_teaser_text {
  text-align: center;    
  color: #f9f9f9; 
  padding: 5vh;
  
  text-shadow: 0 0 20px #f9f9f9,   
               0 0 40px #f9f9f9,
               0 0 60px #f9f9f9,
               0 0 80px #f9f9f9;
  -webkit-text-stroke: 1px #005fa3;
  }


.header_teaser_text p {
  font-size: 2rem;
  line-height: 1.4;
  color: #0074d9;
  font-weight: 550;
  display: inline-block;
  white-space: nowrap; 
  overflow: hidden;
  animation: typing 10s steps(40) infinite;
}

/* Typing + Löschen + Pausen */
@keyframes typing {
  0%   { max-width: 0ch; }
  20%  { max-width: 40ch; } /* Tippen */
  94%  { max-width: 40ch; } /* Pause mit Text */
  95%  { max-width: 0ch; }  /* Rückwärts löschen */
  100% { max-width: 0ch; }  /* Pause leer */
}

.content {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: clamp(10px, 2vw, 30px);
    margin-top: calc(var(--offset, 0px) + clamp(10px, 2vw, 30px));
    position: relative;
    z-index: 1;
    background-image: linear-gradient(to bottom, transparent 0%, transparent 50%, rgba(224,224,224,0.9) 25%);
    padding: clamp(10px, 2vw, 30px);
}

.contentarea {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    background-color:#f9f9f9;

    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 0 10px;
    box-sizing: border-box;
    /*border: 1px solid #005fa3;*/
}

.contentbox {
    flex: 1 1 30%;
    max-width: 1100px;
    min-width: 300px;
    margin: 0 auto;
    flex-direction: column;
    padding: 12px 0px;
    border-radius: 12px;
    background-color: rgba(0,116,217,0.6);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.5);
    border: 1px solid #005fa3;
}

.contentbox p {
    background-color: #f9f9f9;
    padding: 20px 20px;
}

.contentbox ul {
    background-color: #f9f9f9;
    padding: 5px 20px;
}

.contentbox h2 {
    background-color: #f9f9f9;
    color:#0074d9;
    padding: 10px 20px;
    font-size: 1.2rem;
    text-align: center;
}
.contentbox a {
    text-decoration: none;
}


.newsletterbox {
    background-color: #f9f9f9;
    padding: 12px 0px;
}

.contentboxcontent {
    background-color: #f9f9f9;
    padding: 15px 20px;
    width: 100%;
}

.contentboxincontentbox {
    display: flex;
    flex-direction: column;
    min-width: 300px;
    border-radius: 8px;
    padding: 12px 0px;
    box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    flex: 1 1 48%;
    background-color: #e0e0e0;
    border: 1px solid #ccc;
}

.contentboxincontentbox p {
    background-color: #f9f9f9;
    /*border: 1px solid #333;*/
}

/* Titel */
.contenttitle {
    font-size: 1.2rem;
    /*color:#e0e0e0;*/
    color:#f9f9f9;
    font-weight: 600;
    padding: 0px 20px 12px 20px;
    border-bottom: 1px solid #ccc;
    text-align: center;
}

.contentboxincontentboxtitle {
    font-size: 1.2rem;
    background-color: #e0e0e0;
    color:#0074d9;
    padding: 0px 20px 12px 20px;
    border-bottom: 1px solid #ccc;
    text-align: center;
}

.contentboxspacer {
    font-size: 1.0rem;
    background-color: #f0f0f0;
    padding: 12px 20px;
    border-bottom: 1px solid #ccc;
}



/* Page Footer */
.footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    background-color: #ffffff;
    /*border-radius: 12px;*/
    /*box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);*/
    box-shadow: 0 -3px 5px rgba(0, 0, 0, 0.3);
    /*padding: 10px 20px;*/
    /*max-width: 1100px;*/
    margin: auto;
    font-size: clamp(10px, 2vw, 14px);
    /*margin-bottom: 20px;*/
    z-index: 1;
    /*border: 3px solid #111;*/
}

.footer_menu {
    width: 100%;
    background-color: #e0e0e0;
    border-bottom: 1px solid #ccc;
    border-top: 1px solid #ccc;
    padding: 5px 20px;
}

.footercontent {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    gap: 10px;
}

.footercontent a {
    text-decoration: none;
    color: #333;
    font-weight: 300;
    padding: 6px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.footercontent a:hover {
    background-color: #f0f0f0;
}

.footercopyright {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 1100px;
    width: 100%;
    padding: 5px 20px;
    margin: 0 auto;
}


.footer_logo_wrapper {
    padding-right: 20px;
    margin-right: 20px;
    display: flex;
    align-items: center;
}

.footer_logo {
    width: 160px;
    height: 160px;
    background-image: url("../images/SicheresDepot-672x576.png");
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
  }

.footer_info {
    display: flex;
    gap: 20px;
    flex: 1 1 60%;
    min-width: 250px;
    /*border: 3px solid #111;*/
}

.footer_text {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.footer_text a {
    text-decoration: none;
    color: #333;
    font-weight: 200;
    padding: 8px 5px;
    border-radius: 6px;
    transition: background 0.2s;
}

.footer_text p {
    padding: 8px 5px;
}


/* Responsive: unter 769px */
@media (max-width: 769px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
    }

      .content {
        flex-direction: column;
    }

    .contentbox {
       flex: 1 1 100%;
       width: 100%;
        /*
        margin: 10px 0;
        */
    }
}


