/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0D0D0D;
  --bg-card: #1A1A1A;
  --red: #C0392B;
  --red-hover: #E74C3C;
  --text: #B0B0B0;
  --headline: #F0EDE8;
  --border: #2D2D2D;
  --font-head: sans-serif;
  --font-body: sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: .85rem 2rem;
  border-radius: 4px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .05em;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}

.btn--primary {
  background: var(--red);
  color: #fff;
  border: 2px solid var(--red);
}

.btn--primary:hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
}

.btn--ghost {
  background: transparent;
  color: var(--headline);
  border: 2px solid var(--border);
}

.btn--ghost:hover {
  border-color: var(--red);
  color: var(--red);
}

.btn--small {
  padding: .5rem 1.2rem;
  font-size: .85rem;
  background: var(--red);
  color: #fff;
  border-radius: 4px;
  font-family: var(--font-head);
  font-weight: 600;
  transition: background .2s;
}

.btn--small:hover {
  background: var(--red-hover);
}

.btn--bukido {
  padding: .5rem 1.2rem;
  font-size: .85rem;
  /* background: var(--red);  <-- Diese Zeile würde ich löschen, da background-color sie überschreibt */
  background-color: var(--bg);
  border-radius: 4px;
  font-family: var(--font-head);
  font-weight: 600;
  transition: all .2s; /* "all" animiert Hintergrund UND Farbe */
  color: #C0392B !important;
  border: 1px solid #C0392B; /* Optional: Ein feiner roter Rahmen gibt Struktur */
}

.btn--bukido:hover {
  background-color: #C0392B !important; /* Hintergrund wird beim Hovern Rot */
  color: #FFFFFF !important;            /* Schrift wird beim Hovern Weiß */
  cursor: pointer;
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13, 13, 13, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  max-width: 1100px; /* Behalte dies bei, damit der Inhalt nicht am Bildschirmrand klebt */
  margin: 0 auto;
  padding: 1rem 1.5rem; /* Das 1.5rem sorgt für einen kleinen Puffer links */
  display: flex;
  align-items: center;
  justify-content: space-between; /* Drückt Logo nach links, Menü nach rechts */
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 1rem; /* Abstand zwischen Bild und BUKIDO */
  margin-left: 0; /* Sicherstellen, dass kein Außenabstand links ist */
}

.nav__links {
  display: flex;
  gap: 2rem; /* Abstand zwischen den einzelnen Menüpunkten */
  margin-left: auto; /* Zusätzliche Sicherheit: Schiebt die Links nach rechts */
}

.nav__logo-img {
/* Die Höhe ist der entscheidende Anker für die Navigation */
    height: 32px; 
    width: auto;
    display: block;
    
    /* Verhindert, dass das Bild verzerrt wird */
    object-fit: contain;
}

.nav__logo:hover .nav__logo-img {
  transform: scale(1.05); /* Dezenter Effekt beim Hover */
}

/* CSS für das Kanji – füge das in deine style.css */
.kanji {
  font-family: 'Noto Serif JP', serif;
  font-size: 2.4rem;
  font-weight: 400;
  color: #C0392B;
  line-height: 1;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, .3);
  display: inline-block;
}

.nav__logo-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--headline);
  letter-spacing: .12em;
}

.nav__links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links a {
  color: var(--text);
  font-size: .9rem;
  transition: color .2s;
}

.nav__links a:hover {
  color: var(--headline);
}

.nav__burger {
  display: none;
  background: none;
  border: none;
  color: var(--headline);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== SECTION HELPERS ===== */
.section__eyebrow {
  font-family: var(--font-head);
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .5rem;
}

.section__title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--headline);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section__sub {
  color: var(--text);
  font-size: 1.05rem;
  max-width: 600px;
  margin-bottom: 3rem;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 1.5rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  gap: 3rem;
}

.hero__bg-kanji {
  position: fixed;
  top: 50%;
  right: -5vw;
  transform: translateY(-50%);
  font-size: clamp(20rem, 40vw, 50rem);
  color: rgba(192, 57, 43, .04);
  font-family: serif;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  flex: 1;
  max-width: 600px;
}

.hero__eyebrow {
  font-family: var(--font-head);
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  color: var(--headline);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero__title--accent {
  color: var(--red);
}

.hero__sub {
  font-size: 1.1rem;
  color: var(--text);
  max-width: 480px;
  margin-bottom: 2.5rem;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Decorative books */
.hero__visual {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 280px;
  height: 320px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero__brushstroke {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(192, 57, 43, .18) 0%, transparent 70%);
  border-radius: 50%;
}

.hero__books {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.book {
  border-radius: 3px 6px 6px 3px;
  box-shadow: inset -4px 0 8px rgba(0, 0, 0, .4), 2px 8px 24px rgba(0, 0, 0, .5);
}

.book--1 {
  width: 42px;
  height: 200px;
  background: linear-gradient(180deg, #8B1A1A, #5C1111);
}

.book--2 {
  width: 36px;
  height: 240px;
  background: linear-gradient(180deg, #C0392B, #922B21);
}

.book--3 {
  width: 50px;
  height: 180px;
  background: linear-gradient(180deg, #2C2C2C, #1A1A1A);
  border: 1px solid #3a3a3a;
}

.book--4 {
  width: 38px;
  height: 220px;
  background: linear-gradient(180deg, #7B241C, #4A1511);
}

/* ===== TOOLS SECTION ===== */
.tools {
  padding: 6rem 0;
  border-top: 1px solid var(--border);
}

.tools__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  transition: border-color .2s, transform .2s;
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}

.tool-card:hover {
  border-color: var(--red);
  transform: translateY(-3px);
}

.tool-card:hover::before {
  transform: scaleX(1);
}

.tool-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.tool-card__name {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--headline);
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.tool-card__badge {
  font-size: .65rem;
  background: var(--red);
  color: #fff;
  padding: .15rem .5rem;
  border-radius: 20px;
  letter-spacing: .05em;
  font-weight: 600;
  vertical-align: middle;
}

.tool-card__desc {
  font-size: .9rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.tool-card__link {
  color: var(--red);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .9rem;
  transition: color .2s;
}

.tool-card__link:hover {
  color: var(--red-hover);
}

/* ===== ABOUT ===== */
.about {
  padding: 2rem 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about__inner {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.about__kanji {
  font-size: clamp(8rem, 15vw, 14rem);
  color: rgba(192, 57, 43, .15);
  font-family: serif;
  line-height: 1;
  flex-shrink: 0;
  user-select: none;
}

.about__text p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.about__text .btn {
  margin-top: 1rem;
}

/* === Hintergrund Logo === */
.hero__bg-tool-logo {
    position: absolute;
    /* Nutze die gleiche Positionierung wie bei .hero__bg-kanji */
    top: 90%;
    left: 5%; 
    transform: translateY(-50%);
    
    /* WICHTIG: Definiere eine feste Größe, da das Bild sonst unsichtbar 
       oder riesig sein könnte, anders als eine Schriftgröße */
    height: 60vh; 
    opacity: 0.1; /* Die schwache Sichtbarkeit, die Sie wollten */
    z-index: 1;
}

.hero__bg-tool-logo img {
    height: 100%;
    width: auto;
    display: block;
}

.hero__bg-tool-logo-landscape {
    position: absolute;
    /* Nutze die gleiche Positionierung wie bei .hero__bg-kanji */
    top: 120%;
    left: -20%; 
    transform: translateY(-50%);
    
    /* WICHTIG: Definiere eine feste Größe, da das Bild sonst unsichtbar 
       oder riesig sein könnte, anders als eine Schriftgröße */
    height: 60vh; 
    opacity: 0.1; /* Die schwache Sichtbarkeit, die Sie wollten */
    z-index: 1;
}

.hero__bg-tool-logo-landscape img {
    height: 40%;
    width: auto;
    display: block;
}

/* ===== FOOTER ===== */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.footer__links {
  display: flex;
  gap: 1.5rem;
}

.footer__links a {
  font-size: .85rem;
  color: var(--text);
  transition: color .2s;
}

.footer__links a:hover {
  color: var(--headline);
}

.footer__copy {
  font-size: .8rem;
  color: #555;
}

/* ===== LEGAL PAGES ===== */
.legal-page {
  padding: 8rem 0 6rem;
  min-height: 80vh;
}

.legal-page h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--headline);
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--headline);
  margin: 2rem 0 .5rem;
}

.legal-page p,
.legal-page li {
  margin-bottom: .75rem;
  max-width: 700px;
}

.legal-page a {
  color: var(--red);
}

.legal-page a:hover {
  color: var(--red-hover);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 6rem;
  }

  .hero__cta {
    justify-content: center;
  }

  .hero__sub {
    margin: 0 auto 2.5rem;
  }

  .hero__visual {
    width: 200px;
    height: 220px;
  }

  .book--1 {
    height: 140px;
  }

  .book--2 {
    height: 170px;
  }

  .book--3 {
    height: 130px;
  }

  .book--4 {
    height: 155px;
  }

  .about__inner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .about__kanji {
    font-size: 6rem;
  }

  .nav__links {
    display: none;
  }

  .nav__burger {
    display: block;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}


/* ===== HERO SUB-PAGES ===== */
.hero--sub {
  min-height: 40vh;
  padding: 8rem 1.5rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* ===== HERO SUB-PAGES Zweispaltiger Titel für Medien ===== */
.hero--sub .hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.hero-split {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2rem;
  align-items: center; /* center statt start – hält Video vertikal mittig zum Text */
}

@media (max-width: 768px) {
  .hero-split {
    grid-template-columns: 1fr;
  }
  .hero-split__media {
    order: -1; /* Video erscheint mobil ÜBER dem Text */
  }
  .hero-split__text h1 {
    white-space: normal; /* WICHTIG: Erlaubt den Zeilenumbruch auf dem Handy */
  }
}

.hero-split__media {
  position: relative;
  z-index: 1; /* Hebt das Video über eventuelle Text-Überhänge */
}

.hero-split__media video {
  width: 100%;
  min-width: 280px;
  border-radius: 8px;
  display: block; /* Verhindert kleine Abstände unter dem Video */
  pointer-events: auto; /* Stellt sicher, dass Klicks durchgehen */
}

.hero-split__text h1 {
  /*white-space: nowrap; verhindert Zeilenumbruch in der H1 */
}

/* ===== FEATURE ROWS (Community) ===== */
.feature-row {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border);
}

.feature-row--reverse {
  flex-direction: row-reverse;
}

.feature-row__icon {
  font-size: 4rem;
  flex-shrink: 0;
  width: 80px;
  text-align: center;
  margin-top: .5rem;
}

.feature-row__text h2 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--headline);
  margin-bottom: .75rem;
}

.feature-row__text p {
  margin-bottom: .75rem;
}

.feature-row__tip {
  background: rgba(192, 57, 43, .1);
  border-left: 3px solid var(--red);
  padding: .75rem 1rem;
  border-radius: 0 4px 4px 0;
  font-size: .9rem;
  margin: 1rem 0;
}

.feature-list {
  list-style: none;
  margin: .75rem 0 1rem;
}

.feature-list li {
  padding: .4rem 0 .4rem 1.2rem;
  position: relative;
  font-size: .95rem;
}

.feature-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--red);
}

.community-cta {
  text-align: center;
  padding: 4rem 0 2rem;
}

.community-cta .section__sub {
  margin: 0 auto 2rem;
  max-width: 600px;
}

.community-cta p:not(.section__eyebrow) {
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

/* ===== TOOL DETAIL ===== */
.tool-detail {
  padding: 3rem 0 6rem;
}

.tool-detail__section {
  max-width: 760px;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.tool-detail__section h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--headline);
  margin-bottom: .75rem;
}

.tool-detail__section p {
  margin-bottom: .5rem;
}

.tool-detail__back {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ===== TOOL CARD LINK STYLE ===== */
a.tool-card {
  display: block;
  cursor: pointer;
  text-decoration: none;
}

a.tool-card:hover {
  text-decoration: none;
}

.tool-card--community {
  border-color: rgba(192, 57, 43, .3);
}


/* ===== RESPONSIVE ADDITIONS ===== */
@media (max-width: 768px) {

  .feature-row,
  .feature-row--reverse {
    flex-direction: column;
    gap: 1.5rem;
  }

  .feature-row__icon {
    width: auto;
  }

  .tool-detail__back {
    flex-direction: column;
  }
}

/* ============================================================
   PRICING – Grid & Cards
   ============================================================ */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
}

.price-card {
    background: #1A1A1A;
    border: 1px solid #2D2D2D;
    border-radius: 12px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.price-card:hover {
    border-color: #555;
    transform: translateY(-3px);
}

/* Highlighted Card (Best Deal) */
.price-card--featured {
    border: 2px solid #ffb800;
}

.price-card--featured:hover {
    border-color: #ffb800;
}

/* Badge "Best Deal" */
.price-card__badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffb800;
    color: #000;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Titel */
.price-card__title {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

/* Preis */
.price-card__price {
    font-family: var(--font-head);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #fff;
}

.price-card__price span {
    font-size: 1rem;
    font-weight: 400;
    color: #888;
}

/* Preis-Variante: Text statt Zahl (z.B. "Auf Anfrage") */
.price-card__price--text {
    font-size: 1.5rem;
}

/* Preis-Variante: farbig (z.B. "Pay-per-Use") */
.price-card__price--accent {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffb800;
}

/* Feature-Liste */
.price-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    flex-grow: 1;
    color: #CCC;
    line-height: 1.6;
}

.price-card__features li {
    margin-bottom: 1rem;
}

.price-card__features li:last-child {
    margin-bottom: 0;
}

/* Hinweis-Zeile (z.B. Kosten-Info) */
.price-card__note {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #2D2D2D;
    font-style: italic;
    font-size: 0.9rem;
    color: #888;
}

/* CTA-Button immer am Ende der Card */
.price-card .btn {
    width: 100%;
    text-align: center;
    margin-top: auto;
}

/* Hinweis-Banner (z.B. Friends-only Warnung) */
.pricing-notice {
    background: rgba(255, 184, 0, 0.1);
    border: 1px solid #ffb800;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 3rem;
    text-align: center;
}

.pricing-notice p {
    color: #ffb800;
    margin: 0;
    font-weight: 600;
}


/* ============================================================
   PRICING – Responsive
   ============================================================ */

@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .price-card {
        padding: 1.75rem;
    }

/* ============================================================
   Email-Garbling
   ============================================================ */

      /* CSS-Fallback: E-Mail rückwärts, per CSS gespiegelt */
  .email-css-fallback {
    display: inline-block;
    unicode-bidi: bidi-override;
    direction: rtl;
  }
  .email-js { display: none; }
}

/* ============================================================
   STATS BAR
   ============================================================ */

.stats-bar {
    padding: 2.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
}

.stats-bar__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.stats-bar__number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--headline);
    line-height: 1.1;
}

.stats-bar__label {
    display: block;
    font-size: 0.85rem;
    color: var(--text);
    margin-top: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 640px) {
    .stats-bar__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */

.testimonials {
    padding: 4rem 0;
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.75rem 2rem;
    margin: 0;
}

.testimonial-card__quote {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    font-style: italic;
    margin-bottom: 1.25rem;
}

.testimonial-card__author {
    font-size: 0.875rem;
    color: var(--headline);
}

.testimonial-card__author strong {
    color: var(--headline);
}

.testimonial-card__meta {
    color: var(--text);
}

@media (max-width: 640px) {
    .testimonials__grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   PRICE CARD TAGLINE
   ============================================================ */

.price-card__tagline {
    font-size: 0.875rem;
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */

.img-zoomable {
    cursor: zoom-in;
    transition: opacity 0.15s;
}

.img-zoomable:hover {
    opacity: 0.85;
}

.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.lightbox-overlay.is-open {
    display: flex;
}

.lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
    cursor: zoom-out;
}
