/* Kleine UX-Details ohne Framework-Magie */
:root {
  --nav-height: 72px;
}

html {
  scroll-behavior: smooth; /* Fallback, zusätzlich JS für Offset */
}

body {
  padding-top: var(--nav-height); /* fixed-top navbar Platz machen */
}

/* Hero */
.hero-section {
  margin-top: calc(-1 * var(--nav-height));
  padding-top: var(--nav-height);
  min-height: 100vh; /* oder calc(100vh - var(--nav-height)) wenn du willst */
  position: relative;
}

.section-pad {
  padding: 5rem 0;
}

/* Optional: aktive Nav visuell klarer */
.navbar .nav-link.active {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* Transparente Navbar mit vertikalem Verlauf */
.navbar-glass {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.99) 0%,
    rgba(255, 255, 255, 0.75) 60%,
    rgba(255, 255, 255, 0.55) 100%
  );
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Nav-Link-Farben sauber halten */
.navbar-glass .nav-link,
.navbar-glass .navbar-brand {
  color: #111;
}

.navbar-glass .nav-link:hover,
.navbar-glass .nav-link.active {
  color: #000;
}

.navbar-glass.is-scrolled {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0.75)
  );
}



.btn-primary {
  --bs-btn-color: #3a2f25;
  --bs-btn-bg: #d6bfa6;
  --bs-btn-border-color: #d6bfa6;

  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: #355f6b;
  --bs-btn-hover-border-color: #355f6b;

  --bs-btn-active-color: #ffffff;
  --bs-btn-active-bg: #2b4e58;
  --bs-btn-active-border-color: #2b4e58;

  --bs-btn-focus-shadow-rgb: 53,95,107;
}



/* ---------- HERO GRADIENT BACKGROUND ---------- */
:root{
  --hero-bg: #f6f8ff;
  --hero-blue: rgba(90, 120, 255, 0.35);
  --hero-cyan: rgba(120, 200, 255, 0.35);
  --hero-purple: rgba(160, 120, 255, 0.25);
}

/* Wenn du wegen fixed-top Navbar noch kein Offset hast, brauchst du das:
   body { padding-top: 72px; }
   (Nicht doppelt setzen, falls schon vorhanden.)
*/

.hero-section{
  /* damit der Hero nicht unter der fixed Navbar klebt */
  min-height: calc(100vh - 72px);
  position: relative;
  overflow: hidden;
}

/* Gradient nur wenn hero-gradient gesetzt ist */
.hero-gradient::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;

  background:
    /* großer Haupt-Glow links */
    radial-gradient(
      900px 700px at 8% 65%,
      rgba(80, 110, 255, 0.45),
      transparent 60%
    ),

    /* Akzent rechts oben */
    radial-gradient(
      600px 500px at 85% 25%,
      rgba(120, 220, 255, 0.45),
      transparent 55%
    ),

    /* violetter Kontrast-Punkt */
    radial-gradient(
      480px 420px at 35% 15%,
      rgba(170, 120, 255, 0.35),
      transparent 55%
    ),

    /* subtiler Light Sweep */
    linear-gradient(
      140deg,
      rgba(255,255,255,0.65) 0%,
      rgba(255,255,255,0.15) 40%,
      rgba(255,255,255,0.0) 65%
    ),

    /* Basis */
    linear-gradient(
      180deg,
      #f7f9ff 0%,
      #eef2ff 100%
    );

  /* bewusst wenig Blur */
  filter: blur(12px);
  transform: scale(1.04);
}


/* Inhalt über dem ::before */
.hero-gradient > .container{
  position: relative;
  z-index: 1;
}

/* Optional: besserer Kontrast im Hero */
.hero-gradient h1{
  color: #0b1220;
}
.hero-gradient .lead{
  color: rgba(11, 18, 32, 0.75);
}

/* Deine btn-outline-light ist auf hellem BG oft mies lesbar:
   Option A: mach sie dunkel im Hero
*/
.hero-gradient .btn-outline-light{
  --bs-btn-color: #0b1220;
  --bs-btn-border-color: rgba(11, 18, 32, 0.35);
  --bs-btn-hover-bg: rgba(11, 18, 32, 0.06);
  --bs-btn-hover-border-color: rgba(11, 18, 32, 0.5);
  --bs-btn-hover-color: #0b1220;
}

/* Card im Hero etwas “glassy”, passt zum Background */
.hero-gradient .card{
  background: rgba(255,255,255,0.70);
  border-color: rgba(0,0,0,0.08);
  backdrop-filter: blur(14px);
}

/* Mobile: weniger Layer, damit es nicht matschig wird */
@media (max-width: 768px){
  .hero-section{
    min-height: calc(100vh - 64px);
  }

  .hero-gradient::before{
    background:
      radial-gradient(520px 520px at 50% 80%, var(--hero-cyan), transparent 70%),
      linear-gradient(180deg, #f8faff 0%, #eef3ff 100%);
    filter: blur(22px);
    transform: scale(1.05);
  }
}


/* HERO MIT BACKGROUND IMAGE */
.hero-section {
  min-height: calc(100vh - var(--nav-height, 72px));
  color: #fff;
  position: relative;
}

/* Hero mit Hintergrundbild + Overlay */
.hero-bg {
  background-image:
    linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.65)),
    url("../img/holz-art-ist.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}



/* Typewriter */
#typewriter {
  white-space: nowrap;
}

.cursor {
  display: inline-block;
  margin-left: 2px;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.course-image-wrap {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.holzart-image {
  width: 100%;
  height: auto;
  border-radius: .25rem;
  object-fit: cover;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.courses-table th,
.courses-table td {
  vertical-align: middle;
}

.courses-table .btn {
  white-space: nowrap;
}

.course-side {
  overflow: hidden;
  min-height: 420px;
}

/* beide Panels liegen übereinander */
.course-panel {
  position: absolute;
  inset: 0;
  transform: translateX(100%);
  transition: transform 0.45s ease;
}

/* aktives Panel sichtbar */
.course-panel.is-active {
  transform: translateX(0);
}

/* Bild initial sichtbar */
#courseImage {
  transform: translateX(0);
}

/* Formular Styling */
.course-form {
  background: rgba(0, 0, 0, 0.85);
  height: 100%;
  color: #fff;
}

.footer-link {
  color: rgba(255,255,255,.65);
  text-decoration: none;
}

.footer-link:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-icon {
  font-size: 1.25rem;
}

.footer-icon:hover {
  color: #fff;
}


/* Instagram Style Feed */

/* Wrapper: zentriert + ~50% Screen */
.ig-profile-wrap{
  width: min(50vw, 980px);
  min-width: 720px;           /* damit Stats + Button nicht gequetscht werden */
  margin: 0 auto;             /* zentrieren */
}

/* Wenn du auf kleineren Screens nicht scrollen willst */
@media (max-width: 900px){
  .ig-profile-wrap{
    width: 92vw;
    min-width: 0;
  }
}

.ig-profile{
  background: #efefef;
  padding: 22px 28px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

/* LEFT */
.ig-left{
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 260px;
}

.ig-avatar-ring{
  padding: 4px;
  border-radius: 50%;
  background: conic-gradient(
    #feda75,#fa7e1e,#d62976,#962fbf,#4f5bd5,#feda75
  );
}

.ig-avatar{
  width: 86px;
  height: 86px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
}

.ig-name{
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 4px;
  color: #111 !important;
}

.ig-username{
  font-size: 1.05rem;
  color: #7a7a7a !important;
}

/* RIGHT */
.ig-right{
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: auto;
}

@media (max-width: 768px){

  .ig-right{
    flex-wrap: wrap;
    gap: 16px;
  }

  .ig-follow-btn{
    width: 100%;
    justify-content: center;
    margin-top: 8px;
  }

}

/* NUR Profil-Header Stats sichtbar erzwingen (nicht Grid Overlay) */
.ig-profile .ig-stats,
.ig-profile .ig-stats *{
  opacity: 1 !important;
  visibility: visible !important;
  color: #111 !important;
  font-size: inherit !important;
}

/* Layout der Stats */
.ig-stats{
  display: flex;
  gap: 34px;
  align-items: center;
}

.ig-stat{
  text-align: center;
  min-width: 86px;
}

.ig-stat-number{
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
}

.ig-stat-label{
  font-size: 1.05rem;
  color: #7a7a7a !important;
}

/* Follow Button */
.ig-follow-btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #1d9bf0;
  color: #fff !important;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s ease;
}

.ig-follow-btn:hover{
  background: #1787d4;
}

/* Responsive: Stats auf mobile ausblenden oder umbrechen */
@media (max-width: 900px){
  .ig-profile{
    flex-wrap: wrap;
  }
  .ig-right{
    width: 100%;
    justify-content: space-between;
  }
  .ig-stats{
    gap: 22px;
  }
}

#instagram { background: #fff; }

.ig-header p { color: rgba(0,0,0,.55); }

.ig-item{
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 0px;
  background: #f6f6f6;
  isolation: isolate;
  box-shadow: 0 10px 25px rgba(0,0,0,.06);
  transition: transform .18s ease, box-shadow .18s ease;
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.ig-img{
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform .28s ease;
  filter: saturate(1.02);
}

/* Overlay */
.ig-overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: flex-end;   /* Text unten */
  padding: 16px;
  transition: background .22s ease;
}

.ig-overlay-content{
  width: 100%;
  color: #fff;

  opacity: 0;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease;
}

/* Stats oben im Textblock */
.ig-overlay-stats{
  display: flex;
  gap: 18px;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 0.95rem;
}

.ig-overlay-text{
  font-size: 0.9rem;
  line-height: 1.35;
}

.ig-overlay-text strong{
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}

/* Hover Effekt */
@media (hover: hover) and (pointer: fine){
  .ig-item:hover .ig-overlay{
    background: rgba(0,0,0,.45);
  }
  .ig-item:hover .ig-overlay-content{
    opacity: 1;
    transform: translateY(0);
  }
}

/* Keyboard focus */
.ig-item:focus-visible{
  outline: 3px solid rgba(13,110,253,.35);
  outline-offset: 3px;
}

/* Touch devices: kein künstlicher Hover-Zirkus */
@media (hover: none){
  .ig-item{ box-shadow: 0 8px 20px rgba(0,0,0,.06); }
}




