/* ================= Fonts ================= */
@font-face {
  font-family: "Avenir";
  src: url("/assets/fonts/AvenirNextLTPro-Demi.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Avenir";
  src: url("/assets/fonts/AvenirNext-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Brandon Grot W01 Light";
  src: url("/assets/fonts/Brandon Grot W01 Light.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

/* ================= Base Colors ================= */
:root {
  --base-lightgreen: #d6e8cb; /* #a7d7a9; calm, friendly, healthy */
  --base-white: #ffffff; /* clarity, clean, airy */
  --base-lightgray: #f2f2f2; /* section separation, clean structure */
  --base-beige: #fcf1dc;

  /* Accent Colors */
  --accent-darkgreen: #273a27; /*#253425; #192219;*/
  /* --accent-darkgreen: #19202c; */
  --accent-aikido-red: #c65c5c; /* call-to-action, attention */
  --accent-anthracite: #302e2b; /* text on light backgrounds, elegant */

  --overlay-color: rgba(0, 0, 0, 0.5);
}

/* ================= Global ================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Avenir, "Arial", sans-serif;
  font-weight: 400;
}

html {
  scroll-behavior: smooth;
}

body {
  line-height: 1.6;
  color: var(--accent-anthracite);
  background-color: var(--base-white);
}

h1,
h2,
h3 {
  font-family: "Brandon Grot W01 Light", "Arial", sans-serif;
  color: var(--base-white);
}

h1 {
  font-size: 56px;
  text-align: center;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2.5rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--accent-aikido-red);
  position: relative;
}

h3 {
  font-size: 1.75rem;
  color: var(--accent-aikido-red);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

p,
ul {
  margin-bottom: 1rem;
  font-size: 18px;
}

a {
  color: var(--accent-darkgreen);
  text-decoration: none;
}

a:hover {
  color: var(--accent-aikido-red);
}

.beige {
  color: var(--base-beige);
}

.center {
  text-align: center;
}

/* ================= Header ================= */

header {
  /* position: sticky;
  top: 0; */
  position: fixed;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--accent-darkgreen);
  color: var(--base-white);
  padding: 2rem;
  box-shadow: 0 8px 15px -5px rgba(0, 0, 0, 0.3);
  z-index: 100;
}

header img.logo {
  flex-shrink: 0;
  width: 250px;
  height: fit-content;
}

img {
  max-width: 100%;
  object-fit: contain;
}

/* Top Bar */
/* .top-bar {
  background: var(--accent-darkgreen);
  color: var(--base-white);
  padding: 6px 20px;
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.top-bar img {
  width: 16px;
  vertical-align: middle;
  margin-right: 6px;
}

.top-bar-left span {
  margin-right: 15px;
}

.top-bar a {
  color: var(--base-white);
  text-decoration: none;
}

.top-bar a:hover {
  color: var(--accent-aikido-red);
} */

/* ================= Navigation ================= */
nav {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

nav ul {
  padding-left: 0;
  margin: 0;
  list-style-type: none;
  display: flex;
  gap: 1rem;
}

nav a {
  color: var(--base-white);
  position: relative;

  padding: 0 0.5rem 0.2rem;
  font-size: 18px;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 1px;
  background-color: var(--base-white);
  transition: width 0.3s ease-in-out;
}

nav a:hover {
  color: var(--base-white);
}

nav a:hover::after {
  width: 100%;
}

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: white;
  margin: 6px 0;
  transition: 0.3s;
  transition:
    transform 0.3s ease,
    opacity 0.2s ease;
}

/* X-Animation */
.burger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ================= Sections ================= */
section {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8rem 4rem;
  scroll-margin: 90px;
}

.bg-anthra {
  background-color: var(--accent-anthracite);
}
.bg-green {
  background-color: var(--accent-darkgreen);
}
.bg-red {
  background-color: var(--accent-aikido-red);
}
.bg-beige {
  background-color: var(--base-beige);
}
.bg-green-light {
  background-color: var(--base-lightgreen);
}

#hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden; /* wichtig */
  padding: 0;
}

.parallax-bg {
  position: absolute;
  top: -10%; /* etwas größer für Bewegungsspielraum */
  left: 0;
  width: 100%;
  height: 120%;
  background-image: url("/assets/images/garten.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  will-change: transform;
}

#hero-section .overlay {
  background-color: var(--overlay-color);
  width: 100%;
  height: 100%;
}

#hero-section .overlay-text {
  width: 75%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--base-white);
  margin: 0 auto;
}

#hero-section .overlay-text div {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  text-align: center;
}

#hero-section .overlay-text .contact {
  /* align-self: flex-end;*/
}

#what-is .info-text {
  padding: 2rem;
  padding-left: 4rem;
}

#what-is .info-text img {
  width: 100px;
  float: right;
  margin: 0 0 1rem 1rem;
}

#what-is img {
  width: 50%;
  max-width: 500px;
  object-fit: cover;
}

#what-is button {
  align-self: flex-end;
}

.flex-container {
  display: flex;
  max-width: 1300px;
  width: 100%;
}

.info-text {
  padding: 4rem;
}

.quote-section {
  padding: 6rem 4rem;
}

.quote-section .flex-container {
  flex-direction: column;
  align-items: center;
}

.quote-section .quote {
  font-size: 2rem;
  margin-bottom: 2rem;
  position: relative;
}

.quote-section .quote::before {
  content: "";
  display: block;
  position: absolute;
  width: 3rem;
  height: 3rem;
  top: -1rem;
  left: -4rem;
  background-image: url("/assets/icons/quote-marks.png");
  background-repeat: no-repeat;
  background-size: contain;
}

.quote-section .author {
  margin-bottom: 1rem;
}

section#history {
  padding: 0;
}

section#history p {
  /* color: var(--base-beige); */
}

section#history img {
  object-fit: cover;
}

section#history h2 {
  color: var(--base-beige);
}

section#history button {
  color: var(--base-beige);
  background-color: var(--accent-darkgreen);
}

section#about-me {
  flex-direction: column;
}

section#about-me .flex-container {
  gap: 4rem;
  margin-bottom: 6rem;
}

section#about-me .info-text {
  padding: 0;
}

section#about-me .flex-image {
  display: flex;
  justify-content: center;
  align-self: flex-start;
}

section#about-me .flex-image img#john {
  max-width: 500px;
  border: 10px solid var(--accent-darkgreen);
}

section#about-me img:last-child {
  max-width: 100px;
  height: fit-content;
  align-self: flex-end;
}

/* Videos */
.video-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
}

/* Card */
.video-card {
  position: relative;
  display: block;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: #111;
  /* box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22); */
  transform: translateZ(0); /* smoother */
}

.video-card img {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1.02);
  transition: transform 0.45s ease;
}

/* subtle gradient overlay */
.video-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 70% at 50% 30%, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.55)), linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.05));
  opacity: 0.9;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

/* UI container */
.video-ui {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 18px;
  z-index: 1;
}

/* Play pill (glassmorphism style) */
.play-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

/* white circle behind triangle */
.play-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
}

/* red triangle */
.play-triangle {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid #ff0000;
}

/* pill text */
.play-text {
  font-size: 14px;
  letter-spacing: 0.2px;
  opacity: 0.95;
}

/* title */
.video-title {
  font-size: 18px;
  font-weight: 650;
  line-height: 1.2;
  text-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
  text-align: center;
}

/* Hover: modern + subtle */
.video-card:hover img {
  transform: scale(1.05);
}
.video-card:hover::after {
  opacity: 1;
}
/* .video-card:hover {
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
} */

.video-card:hover .video-title {
  color: #fff;
}

.video-card:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.6);
  outline-offset: 4px;
  border-radius: 18px;
}

/* School/ What to expect */
section#school .flex-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Text */
section#school h2,
section#school h3 {
  text-align: center;
}

section#school p {
  text-align: center;
  /* max-width: 800px; */
  margin-bottom: 2.5rem;
  color: var(--base-beige);
}

/* Gallery (dein Original, leicht verfeinert) */
.gallery {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 4rem;
  margin-bottom: 2rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.4s ease;
  border: 3px solid var(--base-beige);
}

section#dojo .gallery img {
  border: 3px solid var(--accent-aikido-red);
}

section#dojo .flex-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

section#dojo p {
  text-align: center;
}

section#why-aikido {
  position: relative;
}

section#why-aikido .flex-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bambus {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 18rem;
}

/* Benefits Liste */
.benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  max-width: 700px;
  text-align: center;
}

.benefits li {
  margin-bottom: 0.75rem;
}

/* ---- Classes Section ---- */
.classes-section {
  background: var(--accent-darkgreen);
  padding: 8rem 4rem;
}

.classes-container {
  max-width: 1300px;
  margin: auto;
}

.classes-container h2 {
  text-align: center;
}

.classes-container h3 {
  margin-bottom: 1rem;
  font-weight: 600;
}

.intro {
  color: var(--base-beige);
  text-align: center;
  margin-bottom: 40px;
  padding: 0 1rem;
}

/* GRID LAYOUT */
.classes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* ---- CARD STYLE ---- */
.schedule-card,
.location-card {
  background: var(--base-beige);
  padding: 1.5rem;
}

/* TABLE */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
}

.schedule-table th {
  background: var(--base-lightgreen);
  padding: 10px;
  border-bottom: 1px solid white;
}

.schedule-table td {
  padding: 10px;
  border-bottom: 1px solid var(--base-lightgray);
  border-bottom: 1px solid white;
}

/* NOTE */
.note {
  margin-top: 15px;
  font-size: 0.9rem;
  opacity: 0.85;
}

/* MAP STYLING */
.map-wrapper {
  margin-top: 20px;
  width: 100%;
  height: 260px;
  border-radius: 10px;
  overflow: hidden;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 850px) {
  .classes-grid {
    grid-template-columns: 1fr;
  }
}

/* Contact */
section#contact {
  padding: 0;
}

section#contact .flex-text {
  padding: 8rem 4rem;
}

section#contact .flex-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

section#contact .flex-text img {
  width: 2rem;
}

.contact-container {
  padding: 1rem;
  border: 1px dashed #fff;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-item:first-child {
  margin-bottom: 1rem;
}

section#contact h2,
section#contact p {
  color: var(--base-beige);
}

section#contact a {
  color: var(--base-white);
}

section#contact a:hover {
  color: var(--base-lightgreen);
}

#contact-h {
  scroll-margin-top: 150px;
}

/* ================= Buttons ================= */
.btn {
  display: inline-block;
  padding: 0.75rem 3rem;
  border-radius: 2em;
  background-color: var(--accent-aikido-red);
  color: var(--base-beige);
  text-decoration: none;
  border: none;
  width: fit-content;
  transition:
    background-color 0.1s ease-in-out,
    transform 0.1s ease-in-out;
}

.btn:hover {
  background-color: rgb(146, 87, 87);
  /* transform: scale(1.02); */
  color: var(--base-white);
}

/* Modern Footer Layout */
.footer {
  background: var(--accent-darkgreen);
  color: var(--base-white);
  padding: 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2rem;
}

/* Columns */
.footer-col {
  flex: 1;
}

.footer-col h4 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: var(--base-white);
}

.footer .logo {
  width: 200px;
}

.footer a {
  width: 2rem;
  color: var(--base-white);
}

.footer a:hover {
  color: var(--base-lightgreen);
}

/* Social Icons */
.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a:hover {
  opacity: 0.8;
}

/* Footer bottom line */
.footer-copy {
  text-align: center;
  margin-top: 30px;
  font-size: 0.9rem;
  opacity: 0.85;
}

@media (max-width: 1024px) {
  header {
    padding: 1.5rem;
  }

  header img.logo {
    width: 180px;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 26px;
  }

  h3 {
    font-size: 22px;
  }

  p,
  ul {
    font-size: 16px;
  }

  .info-text {
    padding: 2rem;
  }

  #hero-section .overlay-text div {
    font-size: 1rem;
  }

  .btn {
    padding: 0.5rem 2rem;
  }

  section {
    padding: 4rem 2rem;
  }

  .flex-container {
    flex-direction: column;
    /* gap: 2rem !important; */
  }

  .flex-container.reverse-mobile {
    flex-direction: column-reverse;
  }

  .burger {
    display: block;
  }

  nav.menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 280px;
    background-color: var(--accent-darkgreen);
    box-shadow: -8px 0 10px -4px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    transition: transform 0.4s ease;
    padding: 5rem 2rem;
    flex-direction: column;
    z-index: 1000;
  }

  nav.menu ul {
    flex-direction: column;
    gap: 1.5rem;
  }

  nav.menu.open {
    transform: translateX(0);
  }

  #what-is .info-text {
    padding: 1rem;
  }

  #what-is .info-text img {
    width: 50px;
  }

  #what-is img {
    width: 100%;
    align-self: center;
  }

  .quote-section {
    padding: 4rem 1rem;
  }

  .quote-section .quote::before {
    display: none;
  }

  .quote-section .quote {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  section#about-me .flex-container {
    gap: 2rem;
    margin-bottom: 2rem;
  }

  section#about-me .flex-image img#john {
    max-width: 100%;
  }

  section#about-me .flex-image {
    align-self: center;
  }

  .gallery {
    gap: 2rem;
  }

  section#why-aikido {
    padding-bottom: 10rem;
  }

  .bambus {
    width: 8rem;
  }

  #classes {
    padding: 4rem 0 0;
  }

  .schedule-card {
    overflow-x: scroll;
  }

  .classes-grid {
    gap: 0;
  }

  section#contact .flex-text {
    padding: 4rem 2rem;
  }
}
