/* ============================================
   ALUMNI SANS PINSTRIPE BOTANICAL ILLUSTRATION WEBSITE
   Main Stylesheet
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #9CAF88;
  --secondary: #6E8B74;
  --hover: #2F4F3E;
  --accent-light: #B0C6A8;
  --white: #FFFFFF;
  --gray-light: #F5F5F5;
  --gray-dark: #333333;
  --font-main: 'ALUMNI SANS PINSTRIPE', sans-serif;
}

html {
  scroll-behavior: smooth;
}

html, body {
  height: 100%;
  font-family: var(--font-main), sans-serif;
  background-color: var(--white);
}

body {
  margin: 0;
  padding: 0;
}

.hero-page, .section-illustrationen, .section-workshops, .section-club, .section-about, .section-shop, .section-cafe-spiral, .section-botanischer-garten, .section-endemiten-kalkalpen, .section-kuenstlerische-illustrationen {
  position: relative;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow: hidden;
}

.hero-page { background-image: url('assets/beach.JPG'); }
.section-illustrationen { background-image: url('assets/Hepatica.JPG'); }
.section-workshops { background-image: url('assets/mörser.JPG'); }
.section-club { background-image: url('assets/55369360_Unknown.JPG'); }
.section-about { background-image: url('assets/forest.JPG'); }
.section-shop { background-color: #f4f4f4; }
.section-cafe-spiral { background-image: url('assets/clours.JPG'); }
.section-botanischer-garten { background-image: url('assets/botanischergarten2.JPG'); }
.section-endemiten-kalkalpen { background-image: url('assets/hochschwab.JPG'); }
.section-kuenstlerische-illustrationen { background-image: url('assets/beach2.JPG'); }

.hero-page::after,
.section-illustrationen::after,
.section-workshops::after,
.section-club::after,
.section-about::after,
.section-shop::after,
.section-cafe-spiral::after,
.section-botanischer-garten::after,
.section-endemiten-kalkalpen::after,
.section-kuenstlerische-illustrationen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 0;
  pointer-events: none;
}

.hero-side-nav {
  position: fixed;
  top: 30px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 3;
}

.nav-item {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  color: #fff;
  text-decoration: none;
  padding: 8px 7px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.4);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.24s ease;
}

.nav-item:hover,
.nav-item:focus-visible {
  background-color: rgba(46, 79, 62, 0.95);
  color: #fff;
  transform: rotate(180deg) scale(1.05);
}

.nav-item.active {
  background-color: rgba(46, 79, 62, 0.95);
  color: #fff;
}

.hero-content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 24px;
}

.hero-content h1 {
  font-size: 3.4rem;
  margin: 0;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.8);
}

.hero-content p {
  font-size: 1.2rem;
  max-width: 720px;
  margin-top: 14px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* ============================================
   SIDEBAR NAVIGATION (alt, wird nicht genutzt)
   ============================================ */

.top-nav { display: none; }

.sidebar, .sidebar-image, .sidebar-nav { display: none; }

main { margin: 0; width: 100%; padding-top: 0; }




/* ============================================
   MAIN CONTENT AREA
   ============================================ */

main {
  margin-left: 0;
  width: 100%;
  min-height: 100vh;
  padding: 0;
}

.page-section {
  padding: 50px;
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============================================
   HOME PAGE
   ============================================ */

.hero-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  margin-bottom: 40px;
  border-radius: 8px;
}

.hero-image.hero-fullscreen {
  height: 100vh;
  border-radius: 0;
}

.hero-wrap {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  margin: 0;
}

#home {
  background: url('assets/beach.JPG') center center/cover scroll;
  min-height: 100vh;
  color: white;
  position: relative;
}

#home::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
}

.hero-wrap {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
  padding: 20px;
  max-width: 900px;
  text-align: center;
  background: rgba(0,0,0,0.35);
  border-radius: 8px;
}

#home::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 0;
}


.hero-overlay h1 {
  font-size: 48px;
  margin-bottom: 12px;
}

.hero-overlay p {
  font-size: 20px;
  max-width: 500px;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.content-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.content-item:hover {
  transform: translateY(-5px);
}

.content-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.content-placeholder {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, var(--light-blue), var(--primary-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 18px;
  border-radius: 8px;
}

/* ============================================
   ILLUSTRATIONS PAGE
   ============================================ */

.illustrations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.flip-card {
  width: 100%;
  height: 360px;
  perspective: 1200px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner,
.flip-card:focus-within .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.flip-card-front img,
.flip-card-back img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.flip-card-front .card-text,
.flip-card-back .card-text {
  padding: 18px;
  background: #fff;
  color: #333;
  line-height: 1.5;
}

.flip-card-back {
  background-color: #f8f8f8;
  transform: rotateY(180deg);
}

.flip-card:hover,
.flip-card:focus-within {
  transform: translateY(-5px);
}

/* ============================================
   WORKSHOPS PAGE
   ============================================ */

.workshops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 60px;
  margin-top: 40px;
  width: 80%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.workshop-card {
  position: relative;
  height: 350px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.workshop-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.workshop-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.4);
  color: var(--white);
  padding: 20px;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  z-index: 2;
}

/* ============================================
   CLUB PAGE
   ============================================ */

.club-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.club-content p {
  margin-bottom: 20px;
  font-size: 16px;
  color: var(--gray-dark);
}

.club-content h2 {
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--primary);
  font-size: 24px;
}

.dates-list {
  background-color: var(--gray-light);
  padding: 20px;
  border-left: 4px solid var(--primary-blue);
  border-radius: 4px;
  margin-top: 20px;
}

.date-item {
  padding: 10px 0;
  color: var(--gray-dark);
  border-bottom: 1px solid #ddd;
}

.date-item:last-child {
  border-bottom: none;
}

/* ============================================
   ABOUT PAGE
   ============================================ */

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  max-width: 1000px;
}

.about-image {
  width: 100%;
  height: 400px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.about-text {
  line-height: 1.8;
}

.about-text h1 {
  font-size: 32px;
  color: var(--primary-blue);
  margin-bottom: 20px;
}

.about-text p {
  font-size: 16px;
  color: var(--gray-dark);
  margin-bottom: 15px;
}

/* ============================================
   SHOP PAGE
   ============================================ */

.shop-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.shop-content h1 {
  font-size: 32px;
  color: var(--primary-blue);
  margin-bottom: 20px;
}

.shop-content p {
  font-size: 18px;
  color: var(--gray-dark);
  margin-bottom: 30px;
}

.shop-button {
  display: inline-block;
  background-color: var(--primary-blue);
  color: var(--white);
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.shop-button:hover {
  background-color: var(--hover);
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background-color: rgba(46, 125, 50, 0.87);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 1001;
}

.back-to-top.show {
  display: flex;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background-color: var(--hover);
  outline: 2px solid #fff;
}

/* ============================================
   PAGE TITLES
   ============================================ */

h1 {
  font-size: 36px;
  color: var(--primary);
  margin-bottom: 30px;
}

h2 {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 20px;
}

/* ============================================
   SECTION OVERLAY
   ============================================ */

.section-overlay {
  position: absolute;
  top: 0;
  right: 0;
  width: 33.33%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 40px;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  z-index: 1;
}

.section-overlay h1 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: white;
}

.section-overlay p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 15px;
  color: white;
}

.section-overlay a {
  color: #ffffff;
  text-decoration: underline;
}

.section-overlay a:hover,
.section-overlay a:focus-visible {
  color: #e8f5e1;
}

.illustrationen-overlay {
  top: 50%;
  left: 50%;
  right: auto;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  align-items: center;
  text-align: center;
  padding: 0;
}

.illustrationen-link {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.illustrationen-link:hover,
.illustrationen-link:focus-visible {
  background: rgba(46, 79, 62, 0.95);
  transform: translateY(-1px);
}

.endemiten-overlay {
  top: 50%;
  left: 50%;
  right: auto;
  width: min(880px, 90%);
  height: auto;
  transform: translate(-50%, -50%);
  align-items: center;
  text-align: center;
}

/* ============================================
   CAFE SPIRAL PAGE
   ============================================ */

.section-cafe-spiral .cafe-overlay {
  top: 50%;
  left: 50%;
  right: auto;
  width: min(900px, 90%);
  height: auto;
  transform: translate(-50%, -50%);
  align-items: center;
  text-align: center;
  padding: 36px;
  border-radius: 14px;
}

.section-cafe-spiral .cafe-overlay .termine-btn {
  align-self: center;
}

.cafe-gallery {
  position: relative;
  z-index: 1;
  background: #f8f5ef;
  padding: 72px 40px;
}

.cafe-gallery-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.cafe-gallery-item {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.cafe-gallery-item img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.endemiten-gallery {
  position: relative;
  z-index: 1;
  padding: 0;
  margin: 0;
}

.endemiten-gallery-grid {
  width: 100%;
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.endemiten-gallery-item {
  margin: 0;
  padding: 0;
}

.endemiten-gallery-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ============================================
   WORKSHOPS OVERLAY
   ============================================ */

.workshops-overlay {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  z-index: 1;
  margin-bottom: 24px;
}

.workshops-overlay h1 {
  font-size: 2rem;
  margin-bottom: 0;
  color: white;
  text-align: center;
}

/* ============================================
   WORKSHOPS LINK
   ============================================ */

.workshop-link {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  text-decoration: none;
  color: inherit;
  display: block;
  z-index: 3;
}

.workshop-link:hover .workshop-text,
.workshop-link:focus-visible .workshop-text {
  background: rgba(0, 0, 0, 0.55);
}

/* ============================================
   TERMINE BUTTON
   ============================================ */

.termine-btn {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  touch-action: manipulation;
  position: relative;
  z-index: 3;
  transition: background-color 0.3s ease;
  margin-top: 20px;
}

.termine-btn:hover {
  background-color: var(--hover);
}

/* ============================================
   MODAL
   ============================================ */

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  position: relative;
  background-color: #fefefe;
  margin: 15% auto;
  padding: 28px 24px 24px;
  border: 1px solid #d8e4d3;
  width: 80%;
  max-width: 620px;
  border-radius: 14px;
  color: #2f3b2f;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  text-align: center;
}

.modal-content h2 {
  margin-bottom: 10px;
  color: #2f4f3e;
}

.modal-content p {
  margin-bottom: 12px;
}

.modal-content ul {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.modal-content li {
  background: #eef4ea;
  border: 1px solid #d9e5d3;
  border-radius: 10px;
  padding: 10px 12px;
  line-height: 1.4;
  text-align: center;
}

.close {
  position: absolute;
  top: 10px;
  right: 12px;
  color: #6a7869;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

.close:hover,
.close:focus {
  color: #2f4f3e;
  text-decoration: none;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  body {
    padding-top: 0;
    padding-bottom: 0;
  }

  .hero-page,
  .section-illustrationen,
  .section-workshops,
  .section-club,
  .section-about,
  .section-cafe-spiral,
  .section-botanischer-garten,
  .section-endemiten-kalkalpen,
  .section-kuenstlerische-illustrationen {
    background-attachment: scroll !important;
    background-size: cover !important;
    background-position: center center !important;
    min-height: 100vh;
    min-height: 100dvh;
  }

  .hero-side-nav {
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    flex-direction: row;
    gap: 6px;
    padding: calc(10px + env(safe-area-inset-top)) 10px 8px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 1002;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .hero-side-nav .nav-item {
    flex: 0 0 auto;
  }

  .hero-side-nav::-webkit-scrollbar {
    height: 0;
  }

  .sidebar {
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    z-index: 1000;
  }

  .sidebar-image {
    width: 42px;
    height: 52px;
    margin-bottom: 0;
  }

  .sidebar-nav {
    flex-direction: row;
    gap: 8px;
  }

  .nav-item {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 12px;
    padding: 7px 10px;
    min-width: max-content;
    white-space: nowrap;
    letter-spacing: 0.02em;
  }

  .nav-item:hover,
  .nav-item:focus-visible {
    transform: scale(1.03);
  }

  main {
    margin-left: 0;
    width: 100%;
    margin-top: 60px;
  }

  .page-section {
    padding: 24px 16px;
  }

  .section-overlay {
  .section-overlay,
  .illustrationen-overlay,
  .endemiten-overlay,
  .section-cafe-spiral .cafe-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    transform: none !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    padding: 20px !important;
    overflow-y: auto !important;
    z-index: 2 !important;
    box-sizing: border-box !important;
  }

  .section-overlay h1 {
    font-size: 1.5rem;
  }

  .section-overlay p {
    font-size: 1rem;
    line-height: 1.55;
  }

  .hero-content {
    padding: 18px 16px;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1.05rem;
  }

  .section-cafe-spiral .cafe-overlay {
  .illustrationen-link {
    font-size: 0.95rem;
    padding: 8px 14px;
  }

  .cafe-gallery {
    padding: 44px 16px;
  }

  .cafe-gallery-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .cafe-gallery-item img {
    height: 320px;
  }

  .workshops-overlay {
    position: static;
    padding: 20px;
  }

  .workshops-overlay h1 {
    font-size: 1.5rem;
  }

  .workshops-grid {
    width: 92%;
    gap: 18px;
  }

  .workshop-link {
    top: 0;
    bottom: 0;
    display: flex;
    align-items: flex-end;
    touch-action: manipulation;
  }

  .workshop-card {
    min-height: 300px;
  }

  .modal-content {
    width: 92%;
    margin: 22% auto;
    padding: 22px 16px 18px;
  }

  .back-to-top {
    bottom: 14px;
  }

  .hero-image {
    height: 220px;
  }

  .about-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-image {
    height: 280px;
  }

  .illustrations-grid,
  .workshops-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  body {
    padding-top: 0;
    padding-bottom: 0;
  }

  .sidebar {
    height: 56px;
    padding: 6px 10px;
  }

  .sidebar-image {
    width: 36px;
    height: 44px;
  }

  .nav-item {
    font-size: 11px;
    padding: 6px 9px;
  }

  .hero-side-nav {
    gap: 6px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .hero-image {
    height: 180px;
  }

  h1 {
    font-size: 20px;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .workshop-card {
    height: 300px;
  }

  .workshop-text {
    font-size: 16px;
    padding: 16px 12px;
  }

  .back-to-top {
    right: 12px;
  }
}
