* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
html {
  scroll-behavior: smooth;
}
:root {
  --background-page: #d6d6d6;
  --text-default: #333333;
  --primary: #ff7b00;
  --primary-transparent: rgba(255, 123, 0, 0.72);
  --white: #ffffff;
  --shadow-grey: rgba(136, 136, 136, 0.452);
  --link-hover-shadow: rgb(165, 66, 0);
  --karten: rgb(240, 240, 240);
  --tabelle: #c2c2c2;
  --tabellenborder: #1d1d1d;
  --backgroundminibox: rgba(255, 123, 0, 0.26);
  --navlinksbg: rgba(255, 123, 0, 0.08);
} 
.darkmode {
  --background-page: #202020;
  --text-default: #f2f2f2;
  --primary: #7e00af;
  --primary-transparent: rgba(125, 0, 175, 0.59);
  --white: #c9c9c9;
  --shadow-grey: rgba(0, 0, 0, 0.5);
  --link-hover-shadow: rgb(130, 0, 190);
  --karten: #303030;
  --tabelle: #2c2c2c;
  --tabellenborder: #ddd;
  --backgroundminibox: #8600bb15;
  --navlinksbg: #5e00833b;
}
html,
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: var(--background-page);
  color: var(--text-default);
  min-height: 100vh;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}


.navbar {
  position: relative;
  z-index: 10006;

  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  background: var(--primary);
  color: var(--white);
  height: auto;
  font-weight: bold;
  flex-direction: row;
  flex-wrap: nowrap;
  /* box-shadow: 2px 2px 2px var(--shadow-grey); */
}



.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  display: block;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: bold;
  padding: 5px;
  border: 3px solid transparent;
  border-radius: 8px;
}

.nav-links a:hover {
  text-shadow: 2px 2px 2px var(--link-hover-shadow);
  border-color: var(--white);
  transition: all 0.6s ease;

}
.nav-links a.active {
  border-color: var(--white);
}
.nav-links .nav-placeholder {
  display: none;
  width: 0;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.box {
  background-color: var(--karten);
  border: 4px solid var(--primary);
  border-radius: 25px;
  margin: 20px auto;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 2px 2px 2px var(--shadow-grey);
  overflow-wrap: break-word;
  word-break: break-word;
}
.centerbox {
  background-color: var(--karten);
  border: 4px solid var(--primary);
  border-radius: 25px;
  margin: 20px auto;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  box-shadow: 2px 2px 2px var(--shadow-grey);
  overflow-wrap: break-word;
  word-break: break-word;
  width: 100%;
  box-sizing: border-box;
}
.box textarea,
.centerbox textarea {
  width: 80%;
  max-width: 80%;
  box-sizing: border-box;
  margin: 0 auto;
}
.action-content {
  width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-break: break-word;
}
.box button,
.centerbox button {
  margin: 0 auto;
}
.box:hover {
  transform: scale(0.999);
  transition: all 0.3s ease;
}
.action-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 12px auto;
}
.boxhead {
  display: flex;
  align-items: center;
  gap: 20px;
  width: calc(100% + 40px);
  margin: -20px -20px 0;
  padding: 16px 20px;
  box-sizing: border-box;
  align-self: stretch;
  background: var(--primary);
  color: var(--white);
  border-radius: 16px 16px 0 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.action-content,
.box p,
.centerbox p {
  overflow-wrap: break-word;
  word-break: break-word;
}

.button {
  background-color: var(--primary);
  color: var(--white);
  border: 6px solid var(--primary);
  border-color: var(--primary);
  transition: all 0.3s ease;
  font-size: 20px;
  padding: 10px 20px;
  border-radius: 8px;
}
.insert-image {
  background-color: green;
  color: var(--white);
  border: 6px solid var(--primary);
  border-color: rgb(0, 94, 0);
  transition: all 0.3s ease;
  font-size: 15px;
  padding: 10px 20px;
  border-radius: 8px;
}
.button:hover {
  background-color: var(--primary-transparent);
  color: var(--white);
  text-shadow: 2px 2px 2px var(--primary);

}
.insert-image:hover {
  background-color: rgb(0, 94, 0);
  color: var(--white);
  text-shadow: 2px 2px 2px rgb(0, 94, 0);
}
.insert-image:active {
  transform: scale(1.05);
}
button:active {
  transform: scale(1.05);
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-links a img {
  vertical-align: middle;
}
#darkmodetoggle {
  height: 40px;
  width: 40px;
  padding: 0;
  border-radius: 50%;
  background-color: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 3px solid var(--white);
}

#darkmodetoggle img:last-child {
  display: none;
}
.darkmode #darkmodetoggle img:first-child {
  display: none;
}
.darkmode #darkmodetoggle img:last-child {
  display: block;
}
.navbarlinks {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100vh;
  background: var(--backgroundminibox);
  color: var(--text-default);
  padding: 24px 18px;
  padding-top: 125px;

  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  font-weight: 700;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.06);
  z-index: 1;
}

main.content {
  margin-left: 250px;
  padding: 30px 24px;
}

.footer {
  margin-left: 250px;
  max-width: calc(100% - 250px);
  padding: 20px 24px 40px;
  text-align: center;
  color: #666;
  box-sizing: border-box;
}

.footer p {
  margin: 0 auto;
  max-width: 1200px;
}


.navlinks-links {
  display: flex;
  flex-direction: column;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--text-default);
  font-size: 18px;
}

.navlinks-links a {
  display: block;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--navlinksbg);
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease, border-color 0.25s ease;
  border: 10px solid transparent;
}

.navlinks-links a:hover,
.navlinks-links a:focus {
  background: var(--primary);
  color: var(--white);
  transform: translateX(2px);
}

.scroll-section {
  scroll-margin-top: 110px;
}

.minibox {
  border: 1px solid var(--backgroundminibox);
  border-radius: 16px;
  padding: 12px 24px;
  color: var(--primary);
  background-color: var(--backgroundminibox);
  text-decoration: none;
}
.streifen {
  background: var(--primary);
  border: 3px solid var(--primary);
  width: 1100px;
  border-radius: 15px;
}

.contact-group {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 30px 0;
}

.contact-text {
  flex: 1;
  min-width: 250px;
  text-align: left;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 18px;
}

.contact-list li {
  padding: 10px 0;
  line-height: 1.6;
}

.contact-image {
  flex: 1;
  min-width: 300px;
  max-width: 450px;
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.footer a {
  text-decoration: none;
  color: #666;
}

.burger-button {
  display: none;
}

.mobile-menu {
  display: none;
}

/* Mobiler Burger :D */
@media (max-width: 1024px) {
  html {
    overflow-x: hidden;
    scroll-behavior: smooth;
  }

  body {
    width: 100vw;
    overflow-x: hidden;
  }

  * {
    box-sizing: border-box;
  }

  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 10006;
    padding: 12px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
  }

  section#oben {
    margin-top: 0;
  }

  .navbarlinks {
    display: none;
  }

  main.content {
    margin-left: 0;
    padding: 80px 15px 20px 15px;
    font-size: 16px;
    margin-top: 0;
    clear: both;
  }

  .footer {
    margin-left: 0;
    max-width: 100%;
    padding: 20px 15px 40px;
    clear: both;
  }

  .box, .centerbox {
    width: 100%;
    margin: 20px 0;
    padding: 20px;
    max-width: 100%;
  }

  .boxhead {
    display: flex;
    align-items: center;
    gap: 15px;
    width: calc(100% + 40px);
    margin: -20px -20px 15px -20px;
    padding: 16px 20px;
    box-sizing: border-box;
    align-self: stretch;
    background: var(--primary);
    color: var(--white);
    border-radius: 16px 16px 0 0;
    font-size: 14px;
  }

  h1 {
    font-size: 20px;
    margin: 10px 0;
  }

  h2 {
    font-size: 18px;
    margin: 8px 0;
  }

  p {
    font-size: 15px;
    line-height: 1.5;
    margin: 10px 0;
    word-wrap: break-word;
  }

  img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
  }

  .action-content img,
  .box img,
  .boxhead img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
  }

  .action-content {
    width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .logo {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex-shrink: 1;
  }

  .logo img {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
  }

  .logo span {
    display: none;
  }

  .logo::after {
    content: "SV am Gymbo";
    font-size: 16px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100vw - 120px);
    display: inline-block;
  }

  .nav-links {
    display: none; /* Hide desktop nav */
  }

  .navbar {
    justify-content: flex-start;
  }

  .navbar {
    position: relative;
  }

  .navbar .nav-links {
    display: flex !important;
    position: absolute;
    right: 74px;
    top: 50%;
    transform: translateY(-50%);
    gap: 4px;
    align-items: center;
    margin: 0;
    padding: 0;
  }

  .navbar .nav-links li:not(:first-child) {
    display: none;
  }

  .navbar .nav-links li {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .navbar .nav-links button#darkmodetoggle {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    width: 40px;
    padding: 0;
    border-radius: 50%;
    border: 3px solid var(--white);
    background: transparent;
  }

  .burger-button {
    order: 2;
    margin-left: 0;
  }

  .burger-button {
    display: block !important;
    background: none;
    border: none;
    color: var(--white);
    font-size: 28px;
    cursor: pointer;
    padding: 5px 10px;
    z-index: 10002;
    position: relative;
    flex-shrink: 0;
    margin-left: auto;
  }

  .mobile-menu {
    display: block !important;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--primary);
    color: var(--white);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 10005;
    padding: 100px 20px 20px;
    box-shadow: -2px 0 10px rgba(0,0,0,0.3);
    overflow-y: auto;
  }

  .mobile-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.3s ease;
    border: 2px solid transparent;
  }

  .mobile-menu a img {
    display: inline-block;
    width: 20px;
    height: auto;
    vertical-align: middle;
  }

  .mobile-menu a:hover {
    background: rgba(255,255,255,0.2);
  }

  .mobile-menu a.active {
    border-color: var(--white);
  }

  .mobile-menu.open {
    transform: translateX(0);
  }

  .mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .mobile-menu li {
    margin: 20px 0;
  }

  .mobile-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    transition: background 0.3s ease, border-color 0.2s ease;
    border: 3px solid transparent;
  }

  .mobile-menu a:hover {
    background: rgba(255,255,255,0.2);
  }

  .mobile-menu a.active {
    border-color: var(--white);
  }

  .contact-group {
    flex-direction: column;
    gap: 20px;
  }

  .contact-text, .contact-image {
    flex: none;
    width: 100%;
  }

  .streifen {
    width: 90%;
  }

  .button, .insert-image {
    font-size: 16px;
    padding: 8px 16px;
  }
}