/* ---------------------------------------------------
   Base Styles
--------------------------------------------------- */

html, body {
  min-height: 100vh; /* wichtig für iOS Safari */
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: #f5f7fa;
  color: #1a1a1a;
  font-size: 16px;
}

@media (max-width: 700px) {
  body {
    font-size: 17px;
  }
}

/* ---------------------------------------------------
   Header
--------------------------------------------------- */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 1.2rem;
  background: white;
  border-bottom: 1px solid #d0d7de;
  position: sticky;
  top: 0;
  z-index: 10;
}

/* Rechte Gruppe: DE/EN + Menü */
header .right {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  order: 2;
}

.logo {
  font-weight: 600;
  font-size: 1.2rem;
  order: 1;
}

/* Navigation */

nav {
  display: flex;
  gap: 1.5rem;
}

nav a {
  text-decoration: none;
  color: #1a1a1a;
  font-weight: 500;
}

/* Hamburger Button */

#menu-toggle {
  display: none;
  font-size: 1.4rem;
  padding: 0.25rem 0.4rem;
  cursor: pointer;
  order: 2;
  transform: translateX(6px); /* leicht nach rechts verschoben */
}

@media (max-width: 700px) {
  nav {
    display: none;
    flex-direction: column;
    background: white;
    position: absolute;
    top: 75px; /* weiter unten, damit es nicht kollidiert */
    right: 20px;
    padding: 1rem;
    border: 1px solid #d0d7de;
    border-radius: 8px;
  }

  #menu-toggle {
    display: block;
  }
}

/* Language Switch */

#lang-toggle {
  padding: 0.15rem 0.45rem;
  background: #e3eef5;
  border: 1px solid #d0d7de;
  border-radius: 14px;
  cursor: pointer;
  font-size: 0.75rem;
  white-space: nowrap;
  order: 1;
  margin-right: 0.3rem;
}

#lang-toggle:hover {
  background: #d6e4ee;
}

/* ---------------------------------------------------
   Main Content
--------------------------------------------------- */

main {
  max-width: 900px;
  margin: 0.5rem auto;
  padding: 0.8rem;
}

/* Mobile Typography */

@media (max-width: 600px) {
  h1 {
    font-size: 1.45rem;
    margin-top: 0.2rem;
  }

  h2 {
    font-size: 1.15rem;
  }

  .brand-title {
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
  }

  .aes-sub {
    font-size: 0.8rem;
    letter-spacing: 0.2px;
    margin-top: 0.1rem;
  }

  .content p,
  .content div {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .content h4 {
    font-size: 1rem;
    margin-top: 1rem;
  }
}

/* ---------------------------------------------------
   Swipable Slider
--------------------------------------------------- */

.slider {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 1rem;
  touch-action: pan-y; /* wichtig für iOS */
}

.slider-track {
  display: flex;
  transition: transform 0.3s ease;
}

.slider img {
  width: 100%;
  flex-shrink: 0;
  border-radius: 10px;
  user-select: none;
  pointer-events: none;
}

.slider-dots {
  text-align: center;
  margin-top: 0.5rem;
}

.slider-dots span {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #ccc;
  border-radius: 50%;
  margin: 0 4px;
}

.slider-dots .active {
  background: #2a6f97;
}

/* ---------------------------------------------------
   Project Cards
--------------------------------------------------- */

.project-card {
  background: white;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border: 1px solid #d0d7de;
}

.project-card img {
  width: 100%;
  border-radius: 8px;
}

.tags {
  margin-top: 0.5rem;
}

.tag {
  display: inline-block;
  background: #e3eef5;
  color: #2a6f97;
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
  margin-right: 0.3rem;
  font-size: 0.8rem;
}

/* ---------------------------------------------------
   Footer
--------------------------------------------------- */

footer {
  text-align: center;
  padding: 2rem 1rem;
  color: #555;
  font-size: 0.9rem;
  line-height: 1.4rem;
}

.footer-line {
  margin: 0.2rem 0;
}

/* ---------------------------------------------------
   Tag Cloud
--------------------------------------------------- */

.tag-cloud {
  margin: 1rem 0 2rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-cloud .tag-item {
  padding: 0.3rem 0.7rem;
  background: #e3eef5;
  color: #2a6f97;
  border-radius: 5px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.tag-cloud .tag-item:hover {
  background: #c9dce9;
}

.tag-cloud .tag-item.active {
  background: #2a6f97;
  color: white;
}

/* ---------------------------------------------------
   AES Branding Colors
--------------------------------------------------- */

.brand-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  line-height: 1.1;
}

.aes-a { color: #b48a5a; }
.aes-e { color: #7a8a99; }
.aes-s { color: #c8c8c8; }

.aes-sub {
  display: block;
  font-size: 0.95rem;
  font-weight: 400;
  color: #1a1a1a;
  margin-top: 0.2rem;
}