header, nav, section, footer {display: block; }

header {	clear: both;
			background-color: #fcfcfc;
			height: auto;
			margin-top: 3px;
			padding: 5px;
			border: 1px solid transparent;}

/*
div {	background-image: url('Bilder/WorkSafetyWallpaper-faded.png');
        background-size: cover;
        background-position: center;
        background-repeat:no-repeat;
}
*/
footer {	font-family: sans-serif;
			clear: both;
			background-color: #fcfcfc;
			width: auto;
			border-top: 1px solid black;
		}

h1		{	font-family: sans-serif;
			font-size: 25pt;
			color: #212121;
			background-color: transparent;
			border: 2px solid transparent;
			line-height: 1.5em;
			word-spacing: 0.5em;
			letter-spacing: 0.2em;
			padding-left: 1em;
			text-align: center}

h2		{	font-family: sans-serif;
			font-size: 15pt;
			color: #212121;
			background-color: transparent;
			border: 1px solid transparent;
			line-height: 1.5em;
			word-spacing: 0.5em;
			letter-spacing: 0.1em;
			padding-left: 1em;
			text-align: end}

p 		{	font-family: sans-serif;
			font-size: 12pt;
			color: #212121;
			background-color: transparent;
			border: 3px solid transparent;
			line-height: 1.5em;
			word-spacing: 0.2em;
			letter-spacing: 0.1em;
			padding-left: 1em;
			text-align: center}

format_page_headline {
    		font-family: sans-serif;
			line-height: 1.3em;
			word-spacing: 0.2em;
			letter-spacing: 0.1em;
			padding-left: 1em;
			text-align: center
}

textarea {
    width: clamp(250px, 80w, 600px)
}
/*
article {
    background-image: url('Bilder/WallpaperWeb-Concrete-size8.png');
    background-size: cover;
    background-position: right;
    background-repeat:no-repeat;
}        
*/
section {	clear: both;
            background-color: transparent;
            background-image: url('Bilder/WallpaperWeb-Concrete.png');
            background-size: auto;
            background-position: right;
            background-repeat:repeat;
}


/*
.sticky_headerbox {
	position: -webkit-sticky;
	position: sticky;
	top: -5px;
	width: auto
}
*/

.box_head_float { float: left;
			 width: 70%;
			 height: auto;
			background-color: #fcfcfc;
			margin-top: 3px;
			padding: 5px;
			border: 1px solid transparent;
		 }

.endfloat { clear: left; }


nav ul { background-color: #4794cd; padding: .5em; list-style-type: none; }
nav li { font-family: sans-serif; color: #2e2e2e; background-color: #4794cd; display: inline-block; }
nav a { display: inline-block; padding: .2em 1em; }

.wrapper {
    display: flex; /* Flexbox für Side-by-Side Layout */
/*    position: -webkit-sticky;*/
	flex-direction: row;
    min-height: 100vh; /* Volle Höhe */
}

/* Sidebar Styling */
.sidebar {
    position: static;
    width:  120px;
    background-color: #4794cd;
    color: #4794cd;
    padding: 10px;
}

.sidebar h2 {
    text-align: left;
    color: #fcfcfc;
}

.sidebar ul {
    position: -ms-page;
    list-style-type: none; /* Keine Punkte */
    padding: 1em;
}
.menuebar ul {
    background-color: #fcfcfc;
    position: static;
    list-style-type: none; /* Keine Punkte */
    padding: .2em 1em;
}

.sidebar li a {
    display: inline-block; /* Gesamte Zeile klickbar */
    color: #fcfcfc;
    width:  60px;
    padding: 10px;
    text-decoration: none;
    border-bottom: 2px solid #2e2e2e;
}

.menuebar li a {
    display: inline-block; /* Gesamte Zeile klickbar */
    color: #fcfcfc;
    width:  auto;
    padding: 10px;
    text-decoration: none;
    border-bottom: 2px solid #2e2e2e;
}

/* Grundlayout Navbar */
.navbar {
  order: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 10px;
  position: relative;
  z-index: 9999;
  background: #ffffff;
}

.nav-menu {
  position: fixed;
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

/* Hamburger Icon */
.hamburger {
  font-size: 28px;
  cursor: pointer;
  display: none;
  z-index: 10001;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Hover Effekt */
nav a:hover { background-color: gold; }

.article2spaltig {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
}
.articlegrafik {
    flex:2;
    align-content: center;
}

.articlegrafik img {
    max-width: auto;
    height: auto;
}
.articletext {
    float: left;
    flex:1;
}

.MainSectionOdd {
    flex:1;
    flex-direction: row;
    width:  100%;
    padding: 2px;
    border-bottom: 5px solid #fbfbfb;
    margin-top: 2px;
    margin-bottom: 2px;
}

.MainSectionEven {
    flex:1;
    flex-direction: row;
    width:  100%;
    padding: 2px;
    border-bottom: 5px solid #fbfbfb;
    margin-top: 2px;
    margin-bottom: 2px;
} 

.msg {
    width: 100%;
    max-height: 120px;
    max-width: 600px;
}

.swiper {
  width: 100%;
  max-width: 900px;
  height: 450px;
  margin: 40px auto;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* HERO SLIDER */
.hero {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.heroSwiper {
  order: 1;  width: 100%;
  height: 90vh; /* fast volle Bildschirmhöhe */
}

.hero-slide {
  position: relative;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* dunkler Overlay */
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

/* Text im Bild */
.hero-text {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  color: white;
  z-index: 2;
  max-width: 500px;
}

.hero-text h1 {
  font-size: 50px;
  margin-bottom: 10px;
}

.hero-text p {
  font-size: 22px;
  margin-bottom: 20px;
}

.hero-btn {
  background: #ff6600;
  color: white;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}
/* Hintergrund Overlay */
.modal {
  display: none; /* wichtig */
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

/* Fenster */
.modal-content {
  background: white;
  padding: 30px;
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
  position: relative;
  animation: popup 0.3s ease;
}

/* Schließen Button */
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  cursor: pointer;
}

/* Close-Listenelement darf keinen Platz verbrauchen */
.close-item {
  list-style: none;
  position: absolute;
  top: 20px;
  right: 25px;
}

/* Das eigentliche X */
.close-menu {
  font-size: 30px;
  cursor: pointer;
  color: #333;
}

.close-menu:hover {
  transform: scale(1.2);
}

/* Portfolio Grid */
.portfolio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 50px;
}

.project img {
  width: 100%;
  cursor: pointer;
  border-radius: 10px;
  transition: 0.3s;
}

.project img:hover {
  transform: scale(1.05);
}

/* kleine Animation */
@keyframes popup {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Responsive Anpassung: Menü nach oben, wenn Bildschirm klein */
@media (max-width: 600px) {
    .wrapper {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
    }
    
    .article2spaltig {
        flex-direction: column;
        font-family: monospace;
    }
    
    .msg {
        max-width: 400px;
    }
    
  .swiper {
    height: 250px;   /* kleiner auf Handy */
    margin: 20px auto;
  }

  .swiper-button-prev,
  .swiper-button-next {
    transform: scale(0.7); /* kleinere Pfeile */
  }

  .heroSwiper {
    order: 2;
    height: 70vh;
  }

  .navbar {
  order: 1;
}
  .hero-text {
    left: 5%;
    right: 5%;
  }

  .hero-text h1 {
    font-size: 28px;
  }

  .hero-text p {
    font-size: 16px;
  }

    .hamburger {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%; /*starte ausserhalb*/
    height: 100vh;
    width: 40vw;            /* 40% Bildschirmbreite */
    min-width: 260px;
    max-width: 420px;

    background: rgba(255,255,255,0.88);  /* Transparenz */
    backdrop-filter: blur(10px);         /* Glas Effekt ✨ */

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;

    box-shadow: -10px 0 30px rgba(0,0,0,0.2);
    transition: right 0.35s ease;
    z-index: 10000;
  }
/*
  .nav-menu li {
    padding: 15px 0;
  }
*/
  /* Klasse die per JS aktiviert wird */
/*  .nav-menu.active {
    display: flex;
  }
*/
    /* Aktiver Zustand -> fährt rein */
  .nav-menu.active {
    right: 0;
  }

  .nav-menu li {
    list-style: none;
  }

  .nav-menu a {
    font-size: 22px;
    text-decoration: none;
    color: #222;
  }

  
}
