/* GLOBAL */
:root {
  --primary: #1F4E8C;
  --accent: #3A7BD5;
  --light: #ffffff;
  --bg: #f4f7ff;
  --text: #1a1a1a;
  --shadow: rgba(0,0,0,0.12);
}

body {
  margin: 0;
  font-family: "Arial", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* HEADER */
header {
  background: var(--light); 
  padding: 20px;
  text-align: center;
}

header a {
  color: var(--light);
  font-size: 1.8rem;
  font-weight: bold;
  text-decoration: none;
}

header img.logo {
  height: 70px;        /* Gröanpassen */
  width: auto;
  display: block;
  margin: 0 auto;      /* zentriert */
}

/* NAVIGATION */
nav {
  background: var(--light);
  padding: 12px 20px;
  box-shadow: 0 2px 6px var(--shadow);
  display: flex;
  justify-content: center;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* MENU LIST */
nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

nav ul li a {
  color: var(--primary);
  text-decoration: none;
  font-weight: bold;
}

nav ul li a:hover {
  color: var(--accent);
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  position: absolute;
  right: 20px;   /* X sitzt rechts oben */
  top: 10%;

}

.hamburger span {
  height: 3px;
  width: 28px;
  background: var(--primary);
  margin-bottom: 5px;
  border-radius: 5px;
}

/* Hamburger wird zu X */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* MOBILE MENU */
@media (max-width: 900px) {

  nav ul {
    display: none;
    flex-direction: column;
    background: var(--light);
    width: 100%;
    padding: 20px 0;
    text-align: center;
  }

  nav ul.show {
    display: flex;
  }

  .hamburger {
    display: flex;
  }
}

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--light);
  padding: 90px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 25px;
}

.btn {
  background: var(--light);
  color: var(--primary);
  padding: 14px 30px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  font-size: 1.1rem;
  transition: 0.2s;
}

.btn:hover {
  background: #e8f0ff;
  transform: translateY(-2px);
}

/* SECTIONS */
.section {
  padding: 60px 20px;
  text-align: center;
}

.section h2 {
  color: var(--primary);
  font-size: 2.2rem;
  margin-bottom: 20px;
}

/* CARDS */
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.card {
  background: var(--light);
  width: 300px;
  padding: 22px;
  border-radius: 10px;
  box-shadow: 0 3px 10px var(--shadow);
  text-align: left;
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  color: var(--primary);
}

/* GALLERY */
.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  padding: 40px 20px;
}

.gallery img {
  width: 330px;
  height: 230px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 12px var(--shadow);
  transition: 0.3s;
}

.gallery img:hover {
  transform: scale(1.03);
}

/* CONTACT */
.contact-box {
  background: var(--light);
  padding: 30px;
  max-width: 500px;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 3px 10px var(--shadow);
}

/* FOOTER */
footer {
  background: var(--primary);
  color: var(--light);
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}
