* {
  box-sizing: border-box;
}

html {
    scroll-padding-top: 100px;
    
}

body {
  margin: 0;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  background: white;
  box-shadow: 0 4px 4px -2px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15vw;
  height: 250px; /* Startgröße */
  transition: height 0.3s;
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: flex-start;
}

header a {
    height: 100%;
}
header.small {
  height: 80px; /* Zielgröße */
}

.logo {
  height: 100%;
  transition: height 0.3s;
}

header nav a {
  position: relative; /* Wichtig für den Pseudo-Selektor */
  margin-left: 20px;
  text-decoration: none;
  color: black;
  font-weight: bold;
}

header nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px; /* leicht unter dem Text */
  width: 0;
  height: 2px; /* Dicke der Linie */
  background-color: #e5007d; /* Farbe der Linie */
  transition: width 0.3s ease;
}

header nav a:hover::after {
  width: 100%;
}

main {
  margin-top: 250px; /* Platz für großen Header */
  padding-left: 20vw;
  padding-right: 20vw;
  padding-bottom: 5vh;
  box-shadow: 0 4px 4px -2px rgba(0,0,0,0.2);
}

.campaign_logo {
    width: 100%;
    margin-top: 5px;
}

main a {
    color: #e5007d;
}

.article_header {
  background-color: #e5007d;
  color: #ffed00;
}

.article_footer {
  background-color: #ffed00;
  color: #e5007d
}

.raster {
    grid-template-columns:1fr 1fr 1fr;
    justify-content: end;
    gap: 1vw;
    

}


.portrait {
    width: 100%;
}

.profil {
    width: 19vw;
  
}

.smlogo {
    height: 26px;
}

footer {
    padding-left: 20vw;
}

/* Tablet */
    @media (max-width: 992px) {
        
        header {
        position: fixed;
        top: 0;
        width: 100%;
        background: white;
        box-shadow: 0 4px 4px -2px rgba(0,0,0,0.2);
        
        padding: 0 15vw;
        padding-bottom: 2vh;
        height: 20vh;
        transition: 0;
        z-index: 0;

        display: flex;
        align-items: center;
        justify-content: flex-start;
        flex-direction: column;

        

        }

        header.small {
         height: 20vh;
}
        .logo {
            height: 10vh;
        }
        
        nav {
            display: flex;
            flex-direction: column;
        }

        .raster {
            grid-template-columns:1fr;
            justify-content: end;
            gap: 1vw;
      }

      .profil {
    width: 100%;
    }

    html {
    scroll-padding-top: 20vh;
}

    main {
        margin-top: 20vh; /* Platz für großen Header */
        
        box-shadow: 0 4px 4px -2px rgba(0,0,0,0.2);
    }

    }

    /* Smartphone */
        @media (max-width: 600px) {
        
        header {
        position: fixed;
        top: 0;
        width: 100%;
        background: white;
        box-shadow: 0 4px 4px -2px rgba(0,0,0,0.2);
        
        padding: 0 15vw;
        padding-bottom: 2vh;
        height: 21vh;
        transition: 0;
        z-index: 0;

        display: flex;
        align-items: center;
        justify-content: flex-start;
        flex-direction: column;

        

        }

        header.small {
         height: 21vh;
}
        .logo {
            height: 10vh;
        }
        
        nav {
            display: flex;
            flex-direction: column;
        }

        .raster {
            grid-template-columns:1fr;
            justify-content: end;
            gap: 1vw;
      }

      .profil {
    width: 100%;
    }

    html {
    scroll-padding-top: 20vh;
}

    main {
    margin-top: 22vh; /* Platz für großen Header */
    padding-left: 2vw;
    padding-right: 2vw;
    box-shadow: 0 4px 4px -2px rgba(0,0,0,0.2);
}



    }

/* Hamburger-Button */
.hamburger {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: transparent;
  cursor: pointer;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  margin: 6px auto; background: #000;
  transition: transform .25s, opacity .25s;
}
.hamburger.open span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2){ opacity: 0; }
.hamburger.open span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

/* Smartphone */
@media (max-width: 600px) {
  header {
    flex-direction: row;      /* NICHT mehr column */
    justify-content: space-between;
    align-items: center;
    height: 64px;
    padding: 0 12px;
  }
  .logo { height: 60px; }
  .hamburger { display: block; }

  header nav {
    position: fixed;
    top: 64px; left: 0; right: 0;
    display: none;
    flex-direction: column;
    background: #fff;
    box-shadow: 0 8px 16px rgba(0,0,0,.12);
    padding: 12px 16px;
  }
  header nav.open { display: flex; }
  header nav a { margin: 10px 4px; font-weight: 700; }

  html { scroll-padding-top: 72px; }
  main { margin-top: 72px; padding: 0 4vw; }
}

@media (min-width: 993px) {
  header {
    /* ursprüngliche Desktop-Werte */
    height: 250px;
    padding: 0 15vw;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  header.small { height: 80px; }

  /* Logo in Desktop wieder voll im Header skalieren */
  .logo { height: 100%; }

  /* Navi darf auf Desktop kein Dropdown sein */
  header nav {
    position: static;
    top: auto; left: auto; right: auto;
    display: flex !important;         /* überschreibt mobile display:none */
    flex-direction: row;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  /* Hamburger auf Desktop ausblenden */
  .hamburger { display: none !important; }
}