/* Hans Raab Umweltpreis – Stylesheet
   Desktop (ab 960px) entspricht dem bisherigen Muse-Desktop-Layout,
   darunter dem bisherigen Muse-Handy-Layout (phone/). */

@font-face {
  font-family: 'Rotis Sans';
  src: url('../fonts/rotis-sans.woff2') format('woff2'), url('../fonts/rotis-sans.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Rotis Serif';
  src: url('../fonts/rotis-serif.woff2') format('woff2'), url('../fonts/rotis-serif.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --gold: #9E7820;
  --gold-light: #B07C18;
  --dark: #26292A;
  --olive: #3B3B32;
  --grey: #B2B9C2;
  --silver: #D6D9DA;
  --sans: 'Rotis Sans', Arial, 'Helvetica Neue', Helvetica, sans-serif;
  --serif: 'Rotis Serif', Times, 'Times New Roman', Georgia, serif;
  --header-h: 196px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #FFFFFF;
  color: var(--olive);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 16px;
  line-height: 25px;
}
p, h1, h2, h3, ul { margin: 0; padding: 0; }
h1, h2, h3 { font-size: inherit; line-height: inherit; font-weight: 500; }
ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color .5s ease, background-color .5s ease; }
::selection { color: #FFFFFF; background: #167CD8; }

.wrap { position: relative; max-width: 1171px; margin: 0 auto; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: #FFFFFF;
}
.site-header .wrap { height: 100%; }

/* Logo: SVG enthält viel Weissraum, daher wie bei Muse beschnitten */
.logo {
  position: absolute;
  top: 45px; left: 66px;
  width: 194px; height: 105px;
  overflow: hidden;
}
.logo img { width: 275px; height: 275px; max-width: none; margin: -77px 0 0 -40px; }

.main-nav {
  position: absolute;
  top: 124px; right: 85px;
  display: flex;
  gap: 32px;
}
/* Breiten der Muse-Menüfelder, Text darin zentriert */
.main-nav a { text-align: center; }
.main-nav a:nth-child(1) { min-width: 53px; }
.main-nav a:nth-child(2) { min-width: 97px; }
.main-nav a:nth-child(3) { min-width: 82px; }
.main-nav a:nth-child(4) { min-width: 169px; }
.main-nav a:nth-child(5) { min-width: 72px; }
.main-nav a {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 25px;
  color: var(--olive);
  white-space: nowrap;
}
.main-nav a:hover { color: var(--grey); }
.main-nav a.active { color: var(--gold); }

.menu-toggle, .mobile-nav { display: none; }

/* ---------- Hero-Slideshow ---------- */
.hero {
  position: relative;
  margin-top: var(--header-h);
  height: 845px;
  overflow: hidden;
  background: var(--dark);
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 3s ease;
}
.slide.active { opacity: 1; z-index: 1; }
.slide img {
  width: 100%; height: 100%;
  max-width: none;
  object-fit: cover;
  transform-origin: center center;
}
.slide.active img, .slide.leaving img { animation: burns 25s ease forwards; }
.slide.leaving { z-index: 0; }
.slide-mobile { display: none; }
@keyframes burns { from { transform: scale(1); } to { transform: scale(1.5); } }
@media (prefers-reduced-motion: reduce) {
  .slide { transition: none; }
  .slide.active img, .slide.leaving img { animation: none; }
}

/* ---------- Inhaltsbereiche ---------- */
.section { position: relative; }
.anchor { position: absolute; left: 0; top: 0; }

.grid {
  display: grid;
  /* Spaltenraster der Muse-Seite (Summe 1171px) */
  grid-template-columns: 132fr 300fr 53fr 300fr 30fr 270fr 86fr;
  align-items: start;
}
.col-1 { grid-column: 2; }
.col-2 { grid-column: 4; }
.col-3 { grid-column: 6; }
.col-2 .narrow, .col-2.narrow { max-width: 270px; }

.section h2 {
  font-family: var(--serif);
  font-size: 25px;
  line-height: 35px;
}
.text p + p { margin-top: 25px; }

/* Hans Raab */
#sec-hansraab { background: var(--dark); color: var(--grey); min-height: 1350px; padding-top: 557px; }
#sec-hansraab .col-3 { margin-top: 7px; }
#sec-hansraab .col-3 .text { margin-top: 23px; }
#sec-hansraab .anchor { top: 302px; }
#sec-hansraab .portrait-mobile { display: none; }

/* Bildbänder (Hintergrund steht beim Scrollen still) */
.band { background: center center / cover no-repeat; }
.band-1 { height: 790px; background-image: url('../images/sonnenblume.jpg'); }
.band-2 { height: 1095px; background-image: url('../images/tropfen2.jpg'); }
.band-3 { height: 1021px; background-image: url('../images/tropfen1.jpg'); }
@media (hover: hover) and (pointer: fine) {
  .band { background-attachment: fixed; }
}

/* Der Preis */
#sec-umweltpreis { background: var(--gold); color: var(--silver); min-height: 1032px; padding: 207px 0 60px; }
#sec-umweltpreis .anchor { top: -47px; }
#sec-umweltpreis .col-3 { color: #FFFFFF; }
.award-heading { margin: 25px 0 18px; }
.award-entry { margin-bottom: 24px; }
.award-entry:last-child { margin-bottom: 32px; }
.award-title { color: #FFFFFF; }
.award-link { line-height: 22px; }
.award-link a { color: #C9C9C9; text-decoration: underline; }
.award-link a:hover { color: var(--dark); }

/* Preisträger werden */
#sec-preistraeger { background: var(--grey); color: var(--olive); min-height: 886px; padding: 255px 0 60px; }
#sec-preistraeger .anchor { top: 11px; }
.pdf-links a { color: var(--gold); text-decoration: underline; }
.pdf-links a:hover { color: #FFFFFF; }
a.link { color: var(--gold); text-decoration: underline; }
a.link:hover { color: #000000; }

/* Kontakt */
#sec-kontakt { background: #3B3B32; color: var(--grey); min-height: 590px; padding-top: 77px; }
#sec-kontakt .anchor { top: -322px; }
#sec-kontakt .grid { grid-template-columns: 132fr 300fr 53fr 182fr 18fr 182fr 18fr 270fr 16fr; }
#sec-kontakt .col-k1 { grid-column: 4; }
#sec-kontakt .col-k2 { grid-column: 6; }
#sec-kontakt .col-k3 { grid-column: 8; }
#sec-kontakt .text { line-height: 24px; }
#sec-kontakt .text p + p { margin-top: 0; }
#sec-kontakt .mail a { color: var(--grey); }
#sec-kontakt .mail a:hover { color: var(--gold-light); }

/* ---------- Footer ---------- */
.site-footer { min-height: 473px; padding-top: 32px; font-size: 15px; line-height: 18px; color: var(--olive); }
.site-footer .wrap { height: 30px; }
.site-footer .to-top {
  position: absolute; left: 15.46%; top: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--gold);
  color: #FFFFFF;
  font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}
.site-footer .to-top:hover { background: var(--olive); }
.site-footer .to-top svg { width: 10px; height: 10px; }
.site-footer .f-home { position: absolute; left: 19.21%; top: 6px; }
.site-footer .f-impressum { position: absolute; left: 45.86%; top: 6px; }
.site-footer .f-datenschutz { position: absolute; left: 54.31%; top: 6px; }
.site-footer .f-copy { position: absolute; left: 67.12%; top: 6px; white-space: nowrap; }
.site-footer a:hover { color: var(--gold); }

/* ---------- Rechtliche Seiten ---------- */
.legal { max-width: 800px; margin: 0 auto; padding: calc(var(--header-h) + 4px) 20px 100px; }
.legal h1 { font-family: var(--serif); font-size: 36px; line-height: 1.2; color: var(--gold); margin-bottom: 40px; }
.legal h3 { font-family: var(--serif); font-size: 20px; line-height: 1.3; color: var(--gold); margin: 30px 0 15px; }
.legal p { margin-bottom: 15px; }
.legal strong { font-weight: 500; }
.legal ul { margin-bottom: 15px; }
.legal a { color: var(--gold); }
.legal a:hover { text-decoration: underline; }
.legal-page .site-footer { min-height: 0; padding-bottom: 60px; }

/* =========================================================
   Handy / Tablet: Layout wie bisher im Ordner phone/
   ========================================================= */
@media (max-width: 959px) {
  :root {
    --header-h: 125px;
    --inset-l: max(24px, 18.7vw);   /* 71px bei 380px Breite */
    --inset-r: max(24px, 10.5vw);   /* 40px bei 380px Breite */
  }
  html { scroll-padding-top: var(--header-h); }

  .site-header { height: var(--header-h); }
  .logo { top: 17px; left: 2px; width: 175px; height: 103px; }
  .logo img { width: 250px; height: 115px; margin: -9px 0 0 -30px; }

  .main-nav { display: none; }

  .menu-toggle {
    display: block;
    position: absolute;
    top: 0; right: 0;
    width: 157px; height: 123px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .menu-toggle span {
    position: absolute;
    right: 39px;
    width: 21px; height: 3px;
    background: #000000;
    transition: transform .3s ease, opacity .3s ease;
  }
  .menu-toggle span:nth-child(1) { top: 78px; }
  .menu-toggle span:nth-child(2) { top: 85px; }
  .menu-toggle span:nth-child(3) { top: 92px; }
  .menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .mobile-nav {
    display: block;
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    z-index: 99;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    background: #EDEDED;
    border-top: 1px solid #7F7F7F;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
  }
  .menu-open .mobile-nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity .3s ease, transform .3s ease;
  }
  .mobile-nav a {
    display: block;
    height: 50px;
    padding: 13px 0 0 var(--inset-l);
    font-family: var(--serif);
    font-size: 19px;
    line-height: 23px;
    color: var(--olive);
  }
  .mobile-nav a + a { border-top: 1px solid var(--gold); }
  .mobile-nav a:hover, .mobile-nav a:focus-visible { background: var(--gold); border-color: var(--gold); }

  .hero { height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h)); min-height: 400px; }
  .slide-desktop { display: none; }
  .slide-mobile { display: block; }

  .band { display: none; }
  .anchor { top: 0 !important; }

  .grid { display: block; padding: 0 var(--inset-r) 0 var(--inset-l); }
  .grid > * { max-width: 600px; }
  .col-2 .narrow, .col-2.narrow { max-width: none; }

  .section { min-height: 0 !important; padding: 61px 0 60px !important; }
  .section h2 { font-size: 21px; line-height: 29px; }

  /* Hans Raab */
  #sec-hansraab .grid { display: flex; flex-direction: column; }
  #sec-hansraab .col-1 { order: 1; }
  #sec-hansraab .col-3 { display: contents; }
  #sec-hansraab .portrait-desktop { display: none; }
  #sec-hansraab .portrait-mobile { display: block; order: 2; width: 280px; margin-top: 25px; }
  #sec-hansraab .col-2 { order: 3; margin-top: 25px; }
  #sec-hansraab .col-3 .text { order: 4; margin-top: 25px; }

  /* Der Preis */
  #sec-umweltpreis { color: #E7E7E1; }
  #sec-umweltpreis .col-1 h2 { color: #E7E7E1; }
  #sec-umweltpreis .col-2 { margin-top: 27px; }
  #sec-umweltpreis .col-3 { margin-top: 32px; color: #E7E7E1; }
  .award-title { color: #E7E7E1; }
  .award-link a { color: var(--olive); }
  .award-link a:hover { color: #FFFFFF; }

  /* Preisträger werden */
  #sec-preistraeger { color: var(--dark); }
  #sec-preistraeger .col-2 { margin-top: 60px; }
  #sec-preistraeger .col-3 { margin-top: 25px; }
  .pdf-links a { color: var(--gold-light); }

  /* Kontakt */
  #sec-kontakt .grid { display: block; }
  #sec-kontakt .col-k1 { margin-top: 38px; }
  #sec-kontakt .col-k2, #sec-kontakt .col-k3 { margin-top: 24px; }

  /* Footer */
  .site-footer { min-height: 0; padding: 30px var(--inset-r) 40px var(--inset-l); }
  .site-footer .wrap {
    height: auto;
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 12px 20px;
  }
  .site-footer .wrap > * { position: static; }
  .site-footer .to-top { flex: none; }
  .site-footer .f-copy { flex-basis: 100%; white-space: normal; }

  .legal { padding: calc(var(--header-h) + 40px) var(--inset-r) 60px var(--inset-l); }
  .legal h1 { font-size: 28px; margin-bottom: 30px; }
}
