/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Nunito', sans-serif;
}

@font-face {
  font-family: 'Nunito';
  src: url('assets/fonts/Nunito-Regular.ttf') format('truetype');
  font-weight: 400;
}

@font-face {
  font-family: 'Nunito';
  src: url('assets/fonts/Nunito-SemiBold.ttf') format('truetype');
  font-weight: 600;
}
@font-face {
  font-family: 'Nunito';
  src: url('assets/fonts/Nunito-Bold.ttf') format('truetype');
  font-weight: 800;
}

@font-face {
  font-family: 'Indie Flower';
  src: url('assets/fonts/IndieFlower-Regular.ttf') format('truetype');
  font-weight: 400;
}

html{
  scroll-behavior: smooth;
}

body {
  line-height: 1.6;
  /*background: url("assets/images/background.jpg") no-repeat center center fixed;
  background-size: cover;*/
  background-color: #f2e7d5;
  color: #222;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #98B7CC;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 2rem;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo img {
  height: 80px;
}

.navbar span {
	font-weight: bold;
	font-size: 1.5rem;
}

.nav-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  background-color: #fafafa;
  border: none;
  padding: 1rem 2rem;
  font-weight: bold;
  text-decoration: none;
  color: #222;
  cursor: pointer;
  border-radius: 5px;
}

.btn:hover {
  background-color: #f7922f;
  color: white;
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  height: 85vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  text-align: center;
}

.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero-content {
  width: 800px;
  max-width: 80%;
  background-color: #98B7CCBB;
  margin-top: 120px;
  margin-bottom:20px;
  padding: 40px 40px;
  border-radius: 10px;
  
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  
  
}

.hero_image{
	width: 100%;
}

.hero_title {
  
  font-size: clamp(2rem, 5vw, 6rem);
  line-height: clamp(2rem, 5vw, 6rem);
  font-weight: 800;
  margin-top:0rem;
  margin-bottom:2.5rem;
}

.start-button {
  background: none;
  border: none;
  max-width:400px;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}


.start-button:hover {
  transform: scale(1.1);
}

.start-button img{
	width:100%;
}

/* Carousel Section */
.carousel {
  padding: 2rem;
  overflow: hidden;
  position: relative;
  width: 90vw;
  left: 50%;
  transform: translateX(-50%);
}

.carousel-track {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.carousel-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

main {
	margin-top: 4rem;
	width: 900px;
	max-width: 85%;
}

section h2 {
  margin-bottom: 1rem;
  font-size: 2.6rem;
  color: #222;
  font-family: 'Indie Flower', cursive;
}

.mainpage p {
  margin: 0.5rem auto; 
  text-align: center;
  margin: 1rem auto; 
  padding: 1rem 1.5rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.downloads {
	scroll-margin-top: 100px;
	margin-top:30px;
}

.downloads a {
  color: #222;
  text-decoration: none;
  font-weight: bold;
}

.downloads a:hover {
  text-decoration: underline;
}


.download-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 0 auto;
  box-sizing: border-box;
  max-width: 900px;  
}

.tile {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding: 0.6rem;
  width: 100%;
  aspect-ratio:1;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tile.bg1{
  background-image: url('assets/images/Download_Info.jpg');
}
.tile.bg2{
  background-image: url('assets/images/Download_Raetsel.jpg');
}
.tile.bg3{
  background-image: url('assets/images/Download_Spielkarten.jpg');
}
.tile.bg4{
  background-image: url('assets/images/Download_Urkunde.jpg');
}
.tile.bg5{
  background-image: url('assets/images/Video_Heizen.jpg');
}
.tile.bg6{
  background-image: url('assets/images/Video_Lueften.jpg');
}

.tile:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.tile span {
  display: block;
  padding: 0.1rem;
  margin-bottom:2rem;
  width: 100%;
}

.logo-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo-container img {
  width: 180px;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
}

.logos hr {
  border: none;
  border-top: 2px solid #555;
  margin: 2rem auto;
  max-width: 1200px;
}

footer {
  margin: 2rem 0;
  font-size: 0.9rem;
  color: #555;
}

footer a {
  color: #0077ff;
  text-decoration: none;
  margin-left: 0.5rem;
}

footer a:hover {
  text-decoration: underline;
}

.technical {
	scroll-margin-top: 100px;
	margin-top:50px;
}

ul {
  margin-left: 20px;
}
li{
	text-align: left; 
	margin-left: 1rem;
}
.note {
  background: #f9f9f9;
  padding: 10px;
  border-left: 4px solid #3498db;
  margin: 15px 0;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom:20px;
}
.col {
  background: #fafafa;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.textcontainer{
  margin: 0.5rem auto; 
  text-align: center;
  margin: 1rem auto; 
  padding: 1rem 1.5rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.textcontainer p {
  margin: 1rem auto; 
}

.textcontainer li{
  margin: 0.5rem 5rem; 
}

/* Responsive Design */
@media (max-width: 1500px) {
  .btn {
	padding:0.4rem 1rem;
  }
}

@media (max-width: 980px) {
  .nav-buttons {
	  display:none;
  }
}



@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }

  .cta img {
    width: 200px;
  }

  .logo-container img {
    width: 120px;
  }
  
  .download-tiles {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
  
  .hero_title {
    margin-top:2rem;
    margin-bottom:2rem;
  }
}

@media (max-height: 570px) {
    .hero_image{
	  display:none;	
	}
	.hero_title{
	  display:none;	
	}
}
  
 @media (max-width: 530px) {
  .download-tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}
