:root {
  --main-red: #f90000;
  /* Rot aus Logo */
  --main-grey: #c0c0c0;
  /* Grau aus Logo */
  --navbar-background: rgb(245, 245, 245);
}

html {
  /* Sanftes Scrollen zu Ankern */
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  color: #222;
  background-color: rgb(240, 240, 240);
  font-family: sans-serif;
  line-height: 1.5;
  margin: 0;
  padding-top: 3.5rem;
  /* Platz für das feste Menü oben */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;

}

/* Globale Verbesserungen für mobile Ansicht */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

.grey-text{
  color: var(--main-grey);
}


/* Einheitliche Bilddarstellung: Original-Seitenverhältnis beibehalten
   Variante ohne Zuschneiden (object-fit:contain innerhalb flex-zentrierter Box) */
.acc-img {
  border-radius: 8px;
  max-height: 100%;
  max-width: 100%;
  height: auto;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Standard-Höhe der Bildboxen (Desktop) */

/* Separate Box falls nötig (Bild steckt in zusätzlichem Container) */
.acc-row > div:has(> .acc-img) {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  
  height: 190px;
}

/* Software & Tools Kartenbild: gleiche Logik, aber etwas geringere Höhe */
.cards .card > .acc-img {
  display: block; /* bereits block */
  margin: 0 auto;
  /* In einen flex-Container hüllen via Wrapper, falls später differenziert */
  max-height: 170px;
}

/* Responsive Anpassungen: Reduziere Höhen auf kleineren Screens */
/*@media (max-width: 900px) {
  .acc-row > div:has(> .acc-img) { height: 170px; }
  .cards .card > .acc-img { max-height: 150px; }
}
@media (max-width: 600px) {
  .acc-row > div:has(> .acc-img) { height: 150px; }
  .cards .card > .acc-img { max-height: 130px; }
}
@media (max-width: 420px) {
  .acc-row > div:has(> .acc-img) { height: 130px; }
  .cards .card > .acc-img { max-height: 115px; }
}*/


.software-tools-img{
  max-width: 90%;
  margin: auto;
}


details.has-carousel {
  position: relative;
  /* Ermöglicht horizontales eigenes Handling, behält vertikales Scrollen (Browser) bei */
  touch-action: pan-y;
  /* verhindert horizontales Browser-Scrollen, damit Swipe zuverlässig erkannt wird */
  -ms-touch-action: pan-y;
  /* IE/alte Edge */
}

details.has-carousel .acc-panel {
  display: none;
}

details.has-carousel .acc-panel.is-active {
  display: block;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 8px 0 0 0;
}

.carousel-prev,
.carousel-next {
  background: none;
  border: 0px;
  padding: 8px 10px;
  cursor: pointer;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: #fff;
}

/* Carousel indicators (dots) */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 8px 0 0 0;
}

.carousel-indicator {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid var(--main-red);
  /* outline */
  background: transparent;
  /* hollow by default */
  cursor: pointer;
}

.carousel-indicator.is-active {
  background: var(--main-red);
  /* filled when active */
}

.carousel-indicator:focus {
  outline: 2px solid var(--main-red);
  outline-offset: 2px;
}




[id] {
  scroll-margin-top: 80px;
  /* Höhe deines Menüs anpassen */
}

.main-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--navbar-background);
  z-index: 2000;
  width: 100%;
  border-bottom: 2px solid var(--main-red);
  margin: 0;
  padding: 0.5rem 0;
  box-shadow: 0 4px 4px rgba(249, 0, 0, 0.5);
  transition: padding .3s ease, box-shadow .3s ease, background-color .3s ease, backdrop-filter .3s ease;
}

/* Shrink state when page is scrolled */
.main-menu.is-shrunk {
  padding: 0.25rem 0;
  /* less vertical space */
  box-shadow: 0 2px 4px rgba(249, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  background: rgba(245, 245, 245, 0.9);
  /* slight transparency effect */
}

.main-menu-logo img {
  transition: max-height .3s ease, transform .3s ease;
}

.main-menu.is-shrunk .main-menu-logo img {
  max-height: 46px;
  /* was 60px */
  transform: translateY(0);
  /* could adjust if needed */
}

/* tighten link padding slightly when shrunk */
.main-menu.is-shrunk a {
  padding: 0.4rem 0.6rem;
}

.main-menu-inner {
  display: flex;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.main-menu-logo {
  display: flex;
  align-items: center;
  margin-right: 2rem;
  height: 62px;
}

.main-menu-logo img {
  max-height: 60px;
  width: auto;
  display: block;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: #222;
  transition: transform .25s ease, opacity .25s ease;
}

.main-menu ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-menu li {
  margin: 0;
}

.main-menu a {
  color: rgb(30, 30, 30);
  text-decoration: none;
  font-weight: bold;
  padding: 0.5rem 0.75rem;
  position: relative;

}

.main-menu a:before {
  position: absolute;
  -webkit-transition: all 0.5s ease;
  transition: all 0.5s ease;
}

.main-menu a:before {
  bottom: 0;
  display: block;
  height: 3px;
  width: 0%;
  content: "";
  background-color: var(--main-red);
}

.main-menu a:hover:before {
  opacity: 1;
  width: 100%;
}

.main-menu a:hover {
  color: var(--main-red);
}

/* Aktiver Menüpunkt (aktueller Abschnitt) */
.main-menu a.is-active {
  color: var(--main-red);
}

.main-menu a.is-active::before {
  width: 100%;
}

.main-menu-logo {
  filter: grayscale(0%);
  transition: all 0.3s ease;
}

.main-menu-logo:hover {
  filter: red(100%);
  transform: scale(1.05);
}

.card {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  transition: 0.3s;
  width: 90%;
  max-width: 1400px;
  /* gleiche Max-Breite wie .main-menu-inner */
  min-width: 0;
  box-sizing: border-box;
  flex: 1;
  background-color: rgb(245, 245, 245);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  padding: 32px;
  margin: 0 auto 40px auto;
}

footer {
  background: #444;
  height: auto;
  width: 100%;
  padding-top: 40px;
  color: #fff;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.footer-bottom {
  background: #333;
  width: 100%;
  text-align: center;
}

.footer-bottom p {
  padding-top: 8px;
  padding-bottom: 8px;
}

.footer-bottom a {
  padding: 16px;
}

.footer-logo {
  max-height: 160px;
  width: auto;
  display: block;
}

a {
  color: #eee;
  text-decoration: none;
}

a:hover {
  color: var(--main-red)
}

.container {
  padding: 2px 16px;
}

.cards {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: flex-start;
  align-items: stretch;

  gap: 40px;
  justify-content: center;
  margin: 0 auto;
  width: 90%;
}

/* Spezifisches Verhalten für die Software & Tools Karten */
.cards .card {
  width: auto;
  flex: 1 1 320px;
  /* max-width: 420px;       */
  /* margin: 0;*/
  display: flex;
  flex-direction: column;
}

/* Sehr breite Screens: etwas gleichmäßiger verteilen */
@media (min-width: 1400px) {
  .cards .card {
    flex: 1 1 360px;
  }
}

/* Breakpoint: unter ~900px auf zwei Spalten oder weniger */
@media (max-width: 900px) {
  .cards {
    gap: 32px;
  }

  .cards .card {
    flex: 1 1 45%;
  }
}

/* Kleiner Handybereich: einspaltig */
@media (max-width: 600px) {
  .cards {
    flex-direction: column;
  }

  .cards .card {
    flex: 1 1 auto;
    width: 100%;
  }
}

.section-header {
  margin: 0 auto 16px auto;
  text-align: center;
  padding: 0 16px;
}

.section-title {
  margin: 0;
  font-size: 2rem;
  line-height: 1.2;
  display: inline-block;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 84px;
  height: 4px;
  background: var(--main-red);
  border-radius: 3px;
  margin: 10px auto 0 auto;
}

.section-subtitle {
  color: #6c7a89;
  margin: 8px 0 0 0;
  font-size: 1.05rem;
}

.skill-icon {
  background: #ffe100;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
}

.hero-image {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero.jpg');
  height: 30vh;
  width: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  margin-bottom: 64px;
}

.hero-text {
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  color: white;
}

.hero-text img {
  max-height: 120px;
  width: auto;
  margin: 0 auto;
  display: block;
}

.hero-text button {
  border: none;
  outline: 0;
  display: inline-block;
  padding: 10px 25px;
  color: black;
  background-color: #ddd;
  text-align: center;
  cursor: pointer;
}

.hero-text button:hover {
  background-color: #555;
  color: white;
}

/* Accordion Card */
.accordion {
  margin-top: 8px;
  border-top: 1px solid var(--border-gray);
}

.accordion details {
  background: #fff;
  /* border-bottom: 1px solid var(--border-gray); */
}

.accordion summary {
  display: grid;
  grid-template-columns: 28px 1fr auto 24px;
  /* icon, title, meta, chevron */
  gap: 12px;
  align-items: center;
  padding: 14px 8px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}


.accordion .acc-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: var(--main-grey);
  color: var(--main-red);
  font-size: 1rem;
  font-weight: 700;
}

.accordion .acc-meta {
  color: #6c7a89;
  font-weight: 500;
  font-size: .95rem;
}

.accordion .acc-chevron {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #6c7a89;
  transition: transform .2s ease;
}

/* Font Awesome Chevron (down) */
.accordion .acc-chevron::before {
  content: "\f078";
  /* fa-chevron-down */
  font-family: "Font Awesome 7 Free";
  font-weight: 900;
  /* solid */
  display: inline-block;
  line-height: 1;
  transition: transform .2s ease;
}

details[open]>summary .acc-chevron::before {
  transform: rotate(180deg);
}

.accordion .acc-panel {
  padding: 4px 12px 16px 48px;
  color: #333;
}

/* Progress rows inside accordion */
.acc-row {
  display: grid;
  grid-template-columns: 1fr minmax(140px, 60%) 48px;
  /* label, bar, % */
  gap: 24px;
  align-items: center;
  margin: 10px 0;
}

.about-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.about-description {
  /*color: #6c7a89;*/
  /*font-size: 1.35rem;*/
  margin-bottom: 32px;
  margin-top: 0;
  line-height: 1.4;
}

.about-stats {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 48px;
  margin-bottom: 32px;
}

.about-stat-number {
  display: block;
  font-size: 2.1rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 4px;
}

.about-stat-label {
  display: block;
  color: #6c7a89;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.2;
}

/* Standard-Bullets entfernen und Platz für Icon schaffen */
ul {
  list-style: none;
  margin: 0 0 1rem 0;
  padding-left: 0;
}

ul ul {
  /* verschachtelte Listen etwas einrücken */
  margin-top: .5rem;
}

ul li {
  position: relative;
  padding-left: 1.25em;
  /* Platz für Icon */
  margin: .35em 0;
}

ul li::before {
  content: "\f0da";
  /* fa-caret-right */
  font-family: "Font Awesome 7 Free";
  font-weight: 900;
  /* solid style */
  position: absolute;
  left: 0;
  top: 0.15em;
  color: var(--main-red);
  font-size: .95em;
  line-height: 1;
}

/* Keine Caret-Icons im Hauptmenü */
.main-menu ul li {
  padding-left: 0;
}

.main-menu ul li::before {
  content: none;
}


@media (max-width: 800px) {

  /* Mobile Nav */
  .menu-toggle {
    display: inline-block;
  }

  .main-menu-inner {
    gap: 0.5rem;
  }

  .main-menu ul {
    display: none;
    flex-direction: column;
    gap: 0;
    width: 100%;
    background: var(--navbar-background);
    position: absolute;
    top: 100%;
    left: 0;
    padding: 0.5rem 0;
    border-bottom: 2px solid var(--main-red);
  }

  .main-menu.open ul {
    display: flex;
  }

  .main-menu li {
    border-top: 1px solid #ddd;
  }

  .main-menu a {
    display: block;
    padding: 0.9rem 1.25rem;
  }

  .main-menu a:before {
    display: none;
  }

  /* Toggle animation to an X */
  .main-menu.open .menu-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .main-menu.open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .main-menu.open .menu-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .accordion summary {
    grid-template-columns: 28px 1fr 24px;
  }

  .accordion .acc-meta {
    display: none;
  }

  .accordion .acc-panel {
    padding-left: 40px;
  }

  .acc-row {
    grid-template-columns: 1fr;
  }

 
}