/* CSS Reset */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


/* Body Styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    height: 100vh;
    background-image: url('./img/18129294.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

main {
    padding: 100px 24px 24px;
    /* oben Platz für die Navbar */
}





/* lister styling */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.164);
    backdrop-filter: blur(5px);
    z-index: 100;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.logo {
    font-size: 2rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    font-family: 'pacifico', cursive;
    background-color: rgba(241, 164, 49, 0.39);
    padding: 8px 16px;
    border-radius: 28px;

}

.logo:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 6px;
}


.logo:hover {
    transform: translateY(-2px) rotateX(6deg) rotateY(-10deg) scale(1.04);
    text-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
}

.navbar a {
    color: white;
    text-decoration: none;
    margin-left: 2.5rem;
    font-size: 1.15rem;
    transition: color 0.3s ease;
    padding: 0 32px;
    font-family: 'pacifico', cursive;
}

.navbar a {
    display: inline-block;
    color: white;
    text-decoration: none;
    margin-left: 2.5rem;
    font-size: 1.15rem;
    font-weight: 400;
    transition: transform 0.25s ease, font-weight 0.25s ease, text-shadow 0.25s ease, opacity 0.25s ease;
}

.navbar a:hover {
    transform: translateY(-2px) scale(1.08);
    font-weight: 600;
    text-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    opacity: 0.95;
}

.navbar a.active {
    font-weight: 600;
    transform: scale(1.12);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}


.navbar a.active::after {
    content: "";
    display: block;
    height: 2px;
    background: white;
    margin-top: 4px;
}

/* Menü Button für mobile Ansicht */
.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.burger span {
    display: block;
    width: 28px;
    height: 3px;
    margin: 6px 0;
    background: white;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.burger.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.burger.open span:nth-child(2) {
    opacity: 0;
}

.burger.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}



@media (max-width: 1180px) {
    .burger {
        display: block;
    }

    .navbar {
        display: none;
    }

    .navbar.open {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;

        position: absolute;
        top: calc(100% + 12px);
        /* unter header-inner */
        right: 24px;
        /* weiter nach rechts */
        padding: 16px;

        background: rgba(0, 0, 0, 0.65);
        backdrop-filter: blur(10px);
        border-radius: 12px;
        z-index: 200;
        min-width: 220px;
    }

    .navbar.open a {
        margin-left: 0;
        /* wichtig! sonst verrutscht alles */
        width: 100%;
        padding: 8px 10px;
        border-radius: 10px;
    }

    .navbar.open a:last-child {
        margin-top: 6px;
        /* Home „unten abgesetzt“ (optional) */
    }
}


/* Dropdown Menü */

.mobile-menu {
    display: none;
    /* standardmäßig versteckt */
}

.mobile-menu.open {
    position: absolute;
    top: 100%;
    /* UNTER dem Header */
    right: 5px;
    /* rechts ausgerichtet */
    margin-top: 12px;
    background: rgba(0, 0, 0, 0.164);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 64px 84px;
    display:
        z-index: 200;
    flex-direction: column;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.mobile-menu a {
    text-decoration: none;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 8px 10px;
    border-radius: 10px;
    display: block;
    width: 100%;
}



/* Main content */



main {
  padding: 130px 24px 60px;   /* Platz für fixed header */
  max-width: 1100px;
  margin: 0 auto;
}

.panel {
  margin: 18px 0;
  padding: 22px;
  border-radius: 18px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
}

.panel h2 {
  margin-bottom: 12px;
  font-size: 1.6rem;
}

.panel p {
  line-height: 1.6;
  font-size: 1.05rem;
}

/* damit Anchor-Links nicht unter dem Header verschwinden */
.panel { scroll-margin-top: 120px; }

.note-ui {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.note-ui input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: none;
}

.note-ui button {
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
}

.note-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.note-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin: 8px 0;
  border-radius: 12px;
  background: rgba(0,0,0,0.25);
}

.note-list li button {
  border: none;
  padding: 6px 10px;
  border-radius: 10px;
  cursor: pointer;
}


/* to do liste */

.todo-ui {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.todo-ui input {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  border: none;
}

.todo-ui button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
}

.todo-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.todo-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  margin: 8px 0;
  border-radius: 14px;
  background: rgba(0,0,0,0.25);
}

/* Zitate */

#quotes blockquote {
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 12px;
}

#quotes p {
  opacity: 0.8;
  margin-bottom: 16px;
}

#quotes button {
  padding: 10px 16px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
}

/* Finanzrechner */

.finance-block {
  margin-bottom: 18px;
}

.finance-block label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cost-ui {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.cost-ui input {
  padding: 10px;
  border-radius: 10px;
  border: none;
}

.cost-ui button {
  width: 40px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
}

#costList {
  list-style: none;
  padding: 0;
  margin: 0;
}

#costList li {
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  margin: 6px 0;
  border-radius: 10px;
  background: rgba(0,0,0,0.25);
}

.finance-result {
  margin-top: 16px;
  font-size: 1.1rem;
}




