/* === FONTS === */
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/plus-jakarta-sans.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/plus-jakarta-sans-italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 20px; scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 300;
  color: #222;
  background: #fff;
  line-height: 1.75;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* === INTRO OVERLAY === */
#aw-intro {
  position: fixed; inset: 0;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s ease;
}
#aw-intro img {
  max-width: 260px;
  animation: aw-pulse 1.5s ease-in-out;
}
#aw-intro.aw-intro-hide {
  opacity: 0;
  pointer-events: none;
}
@keyframes aw-pulse {
  0% { opacity: 0; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.02); }
  100% { opacity: 1; transform: scale(1); }
}

/* === LAYOUT WRAPPER === */
#aw-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
#aw-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  opacity: 1;
  transition: opacity 0.35s ease;
}
#aw-main.aw-fade-out { opacity: 0; }
#aw-main.aw-fade-in  { opacity: 1; }

/* === HEADER === */
#aw-header {
  padding: 18px 0;
  background: #fff;
  position: sticky; top: 0;
  z-index: 100;
  box-shadow: 0 8px 18px 19px #fff;
}
body.page-start #aw-header { box-shadow: none; }
.aw-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* === LOGO === */
.aw-logo {
  flex-shrink: 0;
}
.aw-logo img {
  height: 70px;
  width: auto;
  object-fit: contain;
  margin-left: -10px;
}

/* === NAVIGATION === */
#aw-nav ul {
  display: flex;
  gap: clamp(18px, calc(-12.8px + 3.2vw), 32px);
  align-items: center;
}
#aw-nav a {
  font-size: clamp(0.55rem, calc(-1.6px + 1.4vw), 0.9rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #222;
  transition: color 0.2s;
  white-space: nowrap;
}
#aw-nav a:hover,
#aw-nav a.active {
  color: #e07825;
}

/* === BURGER (mobile) === */
#aw-burger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 4px;
}
#aw-burger span {
  display: block; width: 24px; height: 2px;
  background: #222;
  transition: all 0.25s;
}
#aw-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#aw-burger.open span:nth-child(2) { opacity: 0; }
#aw-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === HERO (Startseite) === */
.aw-hero {
  width: 100%;
}
.aw-hero-img {
  width: 100%;
  height: calc(100vh - 108px - 105px);
  object-fit: cover;
  object-position: center;
  display: block;
}

/* === CONTENT SECTION (2-column) === */
.aw-content-section {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1280px;
  flex: 1;
  width: 100%;
  margin: 0 auto;
  padding: 60px 40px;
}
.aw-content-text {
  flex: 1;
}
.aw-content-image {
  flex: 1;
}
.aw-content-image img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* === SIMPLE SECTION (Links, Kontakt, Impressum, Datenschutz) === */
.aw-simple-section {
  max-width: 1280px;
  flex: 1;
  width: 100%;
  margin: 0 auto;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* === PAGE TITLES === */
.aw-page-title {
  font-size: 3.2rem;
  font-weight: 700;
  font-style: italic;
  color: #e07825;
  margin-bottom: 36px;
  line-height: 1.15;
}

/* === CONTENT TEXT === */
.aw-content-text p,
.aw-simple-section p { margin-bottom: 22px; font-size: 1.15rem; }
.aw-content-text ul { margin: 14px 0 22px 22px; list-style: disc; }
.aw-content-text li { margin-bottom: 8px; font-size: 1.15rem; }
.aw-content-text strong,
.aw-simple-section strong { font-weight: 700; }

/* === LEGAL PAGES === */
.aw-legal h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 28px 0 10px;
  color: #222;
}

/* === LINKS PAGE === */
.aw-links-list { margin-top: 20px; }
.aw-links-list li { margin-bottom: 14px; }
.aw-links-list a {
  font-size: 1.15rem;
  color: #e07825;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}
.aw-links-list a:hover { opacity: 0.75; }

/* === KONTAKT INFO === */
.aw-kontakt-info {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.aw-kontakt-info p { margin-bottom: 0; }
.aw-kontakt-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}
.aw-kontakt-row svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: calc((1.15rem * 1.75 - 18px) / 2); }
.aw-kontakt-row > div { display: flex; flex-direction: column; gap: 2px; }
.aw-kontakt-icon-spacer { flex-shrink: 0; width: 18px; }
.aw-kontakt-info a {
  color: #e07825;
  transition: opacity 0.2s;
}
.aw-kontakt-info a:hover { opacity: 0.75; }

/* === CONTACT FORM === */
.aw-form { margin-top: 20px; }
.aw-form-group { margin-bottom: 22px; }
.aw-form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: #555;
}
.aw-form-group input,
.aw-form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  color: #222;
  background: #fafafa;
  transition: border-color 0.2s, background 0.2s;
}
.aw-form-group input:focus,
.aw-form-group textarea:focus {
  outline: none;
  border-color: #e07825;
  background: #fff;
}
.aw-form-group textarea { resize: vertical; min-height: 140px; }
.aw-form-actions { display: flex; align-items: center; gap: 20px; }
.aw-btn {
  padding: 13px 36px;
  background: #e07825;
  color: #fff;
  border: none; border-radius: 3px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.aw-btn:hover { background: #c5681e; }
.aw-btn:active { transform: scale(0.98); }
.aw-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.aw-form-msg {
  font-size: 0.92rem;
  font-weight: 600;
}
.aw-form-msg.ok { color: #2e7d32; }
.aw-form-msg.err { color: #c62828; }

/* === FOOTER === */
#aw-footer {
  padding: 28px 0;
  background: #fff;
  box-shadow: 0 -8px 18px 19px #fff;
}
.aw-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.aw-footer-left {
  display: flex; align-items: center; gap: 20px;
}
.aw-doterra-logo {
  height: 48px; width: auto;
}
.aw-social {
  display: flex; align-items: center; gap: 12px;
}
.aw-social a {
  color: #333;
  transition: color 0.2s;
  display: flex; align-items: center;
}
.aw-social a:hover { color: #e07825; }
.aw-footer-right {
  display: flex; gap: 24px;
}
.aw-footer-right a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #777;
  transition: color 0.2s;
}
.aw-footer-right a:hover { color: #e07825; }

/* === RESPONSIVE === */

/* --- Burger ab 900px --- */
@media (max-width: 900px) {
  html { font-size: 18px; }

  /* Header — über dem Overlay */
  #aw-header { padding: 12px 0; z-index: 210; }
  .aw-header-inner { padding: 0 20px; }
  .aw-logo { position: relative; z-index: 220; }

  /* Burger */
  #aw-burger {
    display: flex;
    position: relative;
    z-index: 212;
  }
  #aw-burger span { width: 28px; height: 2.5px; }
  #aw-burger.open span { background: #222; }

  /* Nav-Container */
  #aw-nav { position: static; }

  /* Body-Lock: iOS scrollt sonst den Hintergrund statt das Menü */
  body.burger-open {
    position: fixed;
    width: 100%;
    overflow: hidden;
  }

  /* Overlay: Flex-Container, kein eigener Scroll */
  #aw-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 201;
    background: #fff;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
  }
  #aw-nav-overlay.open {
    opacity: 1;
    pointer-events: all;
  }
  /* Gradient-Maske oben: scrollte Items verschwinden hinter weißem Fade */
  #aw-nav-overlay::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 95px;
    background: linear-gradient(to bottom, #fff 50%, transparent 100%);
    pointer-events: none;
    z-index: 2;
  }

  /* Nav-Liste: flex-start + definierte Höhe → iOS scrollt zuverlässig von oben */
  #aw-nav-list {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: clamp(110px, 28vh, 240px);
    padding-bottom: 80px;
    gap: clamp(20px, calc(9px + 3.448vw), 40px);
  }
  #aw-nav-list li { text-align: center; }
  #aw-nav a {
    font-size: clamp(16px, calc(11px + 1.552vw), 25px);
    letter-spacing: 0.18em;
    color: #222;
    display: block;
    padding: 6px 0;
  }
  #aw-nav a.active,
  #aw-nav a:hover { color: #e07825; }

  /* Footer unten im Overlay sichtbar */
  body.burger-open #aw-footer {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 202;
    background: #fff;
  }

  /* Content */
  .aw-content-section {
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    padding: 40px 20px;
  }
  .aw-content-image { order: -1; }
  .aw-simple-section { padding: 40px 20px; }
  .aw-page-title { font-size: 2.4rem; margin-bottom: 24px; }

  /* Hero */
  .aw-hero-img {
    height: calc(100vh - 95px - 52px);
    min-height: 200px;
  }

  /* Footer */
  #aw-footer { padding: 10px 0; }
  .aw-footer-inner {
    padding: 0 20px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .aw-footer-left { flex-direction: row; align-items: center; gap: 12px; }
  .aw-doterra-logo { height: 30px; }
  .aw-social a svg { width: 22px; height: 22px; }
  .aw-footer-right { gap: 14px; }
  .aw-footer-right a { font-size: 0.72rem; }
}

/* --- Mobile (600px) --- */
/* --- Landscape / geringe Höhe (Burger-Nav 2-spaltig) --- */
@media (max-width: 900px) and (max-height: 600px) {
  #aw-nav-list {
    padding-top: 70px;
    padding-bottom: 20px;
    gap: 4px;
  }
  #aw-nav a {
    font-size: 13px;
    letter-spacing: 0.10em;
    padding: 10px 0;
  }
}

@media (max-width: 600px) {
  html { font-size: 17px; }
  .aw-content-section { padding: 36px 20px; gap: 24px; }
  .aw-simple-section { padding: 36px 20px; }
  .aw-page-title { font-size: 2rem; }
}

/* --- Klein (480px) --- */
@media (max-width: 480px) {
  html { font-size: 16px; }
  #aw-header { padding: 10px 0; }
  .aw-header-inner { padding: 0 16px; position: relative; justify-content: center; }
  .aw-logo img { height: 50px; margin-left: 0; }
  #aw-burger { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); }
  .aw-page-title { font-size: 1.75rem; }
  .aw-content-section, .aw-simple-section { padding: 28px 16px; gap: 20px; }
  /* Startseite: Flex-Kette für pixelgenaue Hero-Höhe */
  body.page-start #aw-page { height: 100vh; overflow: hidden; }
  body.page-start #aw-main { flex: 1; min-height: 0; overflow: hidden; }
  body.page-start .aw-hero { flex: 1; min-height: 0; overflow: hidden; }
  body.page-start .aw-hero-img { width: 100%; height: 100%; }

  /* Footer fix unten */
  #aw-footer {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 99;
  }
  #aw-footer {
    padding: 10px 0 max(10px, env(safe-area-inset-bottom));
    background: #fff;
  }
  .aw-footer-inner { padding: 0 16px; flex-direction: column; align-items: center; gap: 6px; }
  .aw-footer-left { flex-direction: row; align-items: center; gap: 12px; }
  .aw-doterra-logo { height: 30px; }
  .aw-social a svg { width: 22px; height: 22px; }
  .aw-footer-right { flex-direction: row; align-items: center; gap: 14px; }
  .aw-footer-right a { font-size: 0.7rem; }

  /* Platz für fixed Footer im Content */
  #aw-main { padding-bottom: 120px; }

  /* Startseite: Hero geht über fixed Footer — kein extra Padding nötig */
  body.page-start #aw-main { padding-bottom: 0; }
}
