
html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
}

h1 {
    font-size: clamp(1.5rem,6vw,4rem);
    padding: 5%;
    margin-left: 5%;
    margin-right: 5%;
    color:white;
    background-color: #32CD32;
    border-radius: 20px;
    text-align: center;
}

h1:hover {
    background-color: #05b705;
    cursor: pointer;
}

a {
    text-decoration: none;
    color: white;
}

h2 {
    font-size: clamp(1.75rem,4vw,3.25rem);
    text-align: center;
    padding-top: 5%;
    padding-left: 10%;
    padding-right: 10%;
}

h2 span {
    color: #32CD32;
    }

h3 {
    font-size: clamp(1.25rem,3vw,2rem);
    padding-right: 5%;
}

h3 span {
color: #32CD32;
}

.navbar {
    top: 0;
    position: sticky;
    width: 100%;
    box-shadow: 0 4px 8px 0px grey;
    background-color: white;
    z-index: 1;
    display: flex;
    border-radius: 5px;
    align-items: center;
    justify-content: space-between;
}

.hero {
    position: relative;
    text-align: center;
    align-items: center;
    padding-top: 5%;
    border-radius: 20px;
}

.hero p {
    font-size: clamp(1.5rem,4vw,3rem);
    color: black;
    font-weight: 900;
    z-index: 2;
}

 p span {
    color: #32CD32;
    z-index: 2;
}

header {
    color: #fff;;
    width: 100%;
}

header {
    position: sticky;
    top: 0;
    width: 100%;
    text-justify: auto;
    z-index: 1;
}

.logo {
    height: 60px;
    cursor: pointer;
    padding: 3%;
    
}

header a span {
    color: black;
}

.toggle {
    padding: 10px;
}

#mobilemenu {
    display: none;
}

#mobilemenu.active {
    display: grid;
    position: relative;
    top: 100%;
    margin-top: 10px;
    width: 100%;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    background-color: white;
    border-radius: 10px;
    text-decoration: none;
   
   
}

#mobilemenu.active a {
    right: 0;
    display: grid;
    color: black;
    font-size: clamp(1rem,2vw,2rem);
    padding: 20px 20px;
    text-decoration: none;

   
}
#mobilemenu.active a:hover {
    text-decoration: none;
    background-color: #32CD32;
   
    
}

@media (max-width: 900px) {
    .desktop-menu {
        display: none;
    }
}

@media (min-width: 901px) {
    .mobiletoggle{
        display: none;
    }
    #mobilemenu.active {
        display: none;
    }
}

.desktop-menu a {
    color: black;
    text-decoration: none;
    padding-right: 20px;
    font-size: clamp(0.9rem,1.3vw,1.3rem);
    justify-content: flex-end;
}

.desktop-menu a:hover {
    color: #32CD32;
    border-radius: 30px;
}

.mobiletoggle:hover {
    background-color: #32CD32;
    border-radius: 5px;
    cursor: pointer;
}

.introduction {
    padding: 10%;
}

.content {
    font-size: clamp(1rem,3vw,1.75rem);
   
}

.contentOutside {
    font-size: clamp(1rem,3vw,1.75rem);
    text-align: center;
    padding-left: 7%;
    padding-right: 7%;
   
}

.accordion-body {
    padding-left: 10%;
    padding-right: 10%;

}

.accordion {
    width: 100%;
    color: black;
    background-color: white;
    align-items: center;
    justify-items: center;
  }

.accordion .container {
    position: relative;
    cursor: pointer;
  }

.accordion .label {
    position: relative;
    color: black;
    width: 90%;
  }

  .accordion .label:hover {
   color:#32CD32;
  }

.accordion .label::before {
    content: '+';
    color: black;
    position: absolute;
    float: right;
    top: 50%;
    right: -5px;
    font-size: 30px;
    transform: translateY(-50%);
    float: right;
  }
  
  /* Hides the content (height: 0), decreases font size, justifies text and adds transition */
  
.accordion .container .content {
    position: relative;
    background: white;
    height: 0;
    overflow: hidden;
    transition: 0.5s;
    font-size: clamp(1rem,3vw,1.75rem);
  }
  
  /* Adds a horizontal line between the contents */
  
hr {
  
    border: 2px solid grey;
    border-color: #32CD32;
  }

  /* Unhides the content part when active. Sets the height */

.accordion .container.active .content {
    height: auto;
    transition: 0.5s;
    padding: 10px;
  }
  
  /* Changes from plus sign to negative sign once active */
  
.accordion .container.active .label::before {
    content: '-';
    font-size: 30px;
  }

  .fazit {
    padding-top: 10%;
    padding-bottom: 10%;
  }

  .icon {
    filter: invert(59%) sepia(85%) saturate(500%) hue-rotate(55deg) brightness(110%) contrast(79%);
    margin: auto;
    margin-top: 100px;
    display: block;
    width: 20%;
    rotate: 180;
  }

  #finanziellefreiheit {
        scroll-margin: 80px;
    }

    #budgetplanung {
        scroll-margin: 100px;
    }

    #anwendung {
        scroll-margin: 80px;
    }

    #automatisieren {
        scroll-margin: 80px;
    }

    #optimierung {
        scroll-margin: 110px;
    }

    #uebermich {
        scroll-margin: 70px;
    }

    .budgetplanung {
      
        padding: 3%;
        border: 2px solid #32CD32;
        border-radius: 10px;
        background-color: white;
        color: white;
        font-size: clamp(0.8rem,3vw,2.5rem);
        margin-bottom: 5%;
        color: #32CD32;
        font-weight: 700;
        
    }

    .budgetplanung:hover {
        background-color: #32CD32;
        cursor: pointer;
        color: white;
      
    }

    .budget-button {
        justify-content: center;
        align-items: center;
        display: flex;
        margin-top: 100px;
    }

    .about-me {
        padding: 10%;
        justify-content: center;
        align-items: center;
        
    }

    .portrait {
        border-radius: 50%;
        display: block;
        margin-left: auto;
        margin-right: auto;
        width: 50%;
    }

    footer {
        bottom: 0;
        box-shadow: 0 4px 8px 0px grey;
        background-color: white;
        z-index: 1;
        border-radius: 5px;
        padding: 3%;
        text-align: center;
        text-align: -webkit-center;
    }

    footer li {
        padding-bottom: 20px;
        text-align: center;
    }

    .nav-links-footer a {
        color: black;
        margin-left: -40px;
     
    }

    .nav-links-footer a:hover {
        color: #32CD32;
    }
    .nav-links-footer {
        list-style-type: none; 
    }

    footer img {
        margin-left: -10px;
    }



    form {
        max-width: 400px;
        margin: 0 auto;
        padding: 20px;
        margin-top: 50px;
        background: #ffffff;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        border: 1px solid #e1e1e1;
    }
    
    label {
        font-weight: bold;
        display: block;
        margin-bottom: 8px;
    }
    
    input {
        width: calc(100% - 20px);
        padding: 10px;
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 14px;
        box-sizing: border-box;
    }
    
    button {
        width: 100%;
        padding: 10px;
        margin-bottom: 10px;
        font-size: 16px;
        background: #32CD32;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }
    
    button:hover {
        background: #219b21;
    }
    
    p#result {
        text-align: center;
        font-size: 24px;
        font-weight: bold;
      
    }
    
    /* Responsive Design */
    @media (max-width: 600px) {
        form {
            padding: 15px;
        }
    
        button {
            font-size: 14px;
            padding: 8px;
        }
    }

    .amount {
        font-weight: bold;
    }

    tr {
        font-weight: bold;
    }

    td {
        padding-bottom: 5px;
        padding-right: 50px;
    }

    .space {
        height: 10vh;
    }