/* =========================================================
   Baumgeist Orakel – Pflegeleichtes CSS
   Struktur:
   1. Design Tokens
   2. Basis
   3. Layout / Hintergrund
   4. Header & Navigation
   5. Hero-Bereich
   6. Orakel-Box
   7. Formulare & Buttons
   8. Canvas
   9. Antwort & Audio-Player
   10. Inhaltsseiten
   11. Responsive
   ========================================================= */

/* ---------------------------------------------------------
   1. Design Tokens
   --------------------------------------------------------- */
:root {
  /* Farben */
  --color-deep: #07150b;
  --color-dark: #102819;
  --color-moss: #25462a;
  --color-fern: #3f6d3a;
  --color-leaf: #77a25b;
  --color-mist: #e6efd6;
  --color-gold: #d5b861;
  --color-wood: #6c4828;
  --color-text-dark: #142515;
  --color-white-soft: #f3f8df;
  --color-button-text: #fff8d6;

  /* Transparenzen */
  --shadow-strong: rgba(0, 0, 0, 0.38);
  --shadow-soft: rgba(0, 0, 0, 0.25);
  --panel-dark: rgba(5, 16, 8, 0.72);
  --panel-green: rgba(16, 40, 25, 0.92);
  --border-gold: rgba(213, 184, 97, 0.36);
  --border-gold-strong: rgba(213, 184, 97, 0.65);

  /* Schriften */
  --font-decorative: Georgia, 'Times New Roman', serif;
  --font-readable: Arial, sans-serif;

  /* Größen */
  --site-width: 1120px;
  --content-width: 850px;
  --header-padding: 18px;
  --stage-padding-bottom: 60px;
  --canvas-size: 250px;

  /* Radien */
  --radius-pill: 999px;
  --radius-small: 12px;
  --radius-medium: 18px;
  --radius-large: 24px;
  --radius-xl: 30px;
  --radius-image: 22px;

  /* Schatten */
  --shadow-panel: 0 18px 60px rgba(0, 0, 0, 0.35);
  --shadow-hero: 0 24px 70px var(--shadow-strong);
  --shadow-button: 0 8px 20px rgba(0, 0, 0, 0.25);
  --shadow-canvas: 0 18px 40px rgba(0, 0, 0, 0.5);
}

/* ---------------------------------------------------------
   2. Basis
   --------------------------------------------------------- */
* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--color-mist);
  font-family: var(--font-decorative);
  background:
    radial-gradient(circle at 50% 0%, rgba(119, 162, 91, 0.38), transparent 32%),
    linear-gradient(135deg, #07150b, #122b18 45%, #051007);
}

button {
  cursor: pointer;
  font-family: var(--font-decorative);
}

label {
  display: block;
  margin-bottom: 10px;
  color: #f4e6a2;
  font-weight: bold;
}

textarea {
  width: 100%;
  min-height: 170px;
  padding: 16px;
  resize: vertical;
  border: 1px solid rgba(213, 184, 97, 0.45);
  border-radius: var(--radius-medium);
  background: #edf5dc;
  color: var(--color-text-dark);
  font-family: var(--font-readable);
  font-size: 1.05rem;
}

/* ---------------------------------------------------------
   3. Layout / Hintergrund
   --------------------------------------------------------- */
.forestShell {
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(rgba(7, 21, 11, 0.38), rgba(7, 21, 11, 0.95)),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.025) 0 1px,
      transparent 1px 72px
    );
}

.oracleStage {
  max-width: 90%;
  margin: 0 auto;
  padding: 16px 18px var(--stage-padding-bottom);
}

/* ---------------------------------------------------------
   4. Header & Navigation
   --------------------------------------------------------- */
.treeHeader {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--site-width);
  margin: 0 auto;
  padding: var(--header-padding);
}

.treeLogo {
  color: var(--color-white-soft);
  text-decoration: none;
  font-size: 1.45rem;
  font-weight: bold;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 12px #000;
}

.treeLogo span {
  color: var(--color-gold);
}

.treeNav {
  display: flex;
  gap: 12px;
}

.treeNav a {
  padding: 10px 14px;
  border: 1px solid rgba(213, 184, 97, 0.35);
  border-radius: var(--radius-pill);
  background: rgba(8, 25, 12, 0.55);
  color: #edf6dd;
  text-decoration: none;
  box-shadow: inset 0 0 12px rgba(213, 184, 97, 0.08);
}

.treeNav a:hover {
  background: rgba(63, 109, 58, 0.72);
}

.treeBurger {
  display: none;
  padding: 7px 12px;
  border: 1px solid rgba(213, 184, 97, 0.7);
  border-radius: var(--radius-small);
  background: linear-gradient(135deg, var(--color-moss), #0e2414);
  color: #fff;
  font-size: 1.5rem;
}

/* ---------------------------------------------------------
   5. Hero-Bereich
   --------------------------------------------------------- */
.heroPanel {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 32px;
  align-items: center;
  padding: 32px;
  border: 1px solid rgba(213, 184, 97, 0.38);
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, var(--panel-green), rgba(7, 21, 11, 0.78));
  box-shadow:
    var(--shadow-hero),
    inset 0 0 60px rgba(119, 162, 91, 0.09);
}

.spiritFrame {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin: auto;
  padding: 16px;
  border-radius: 32px;
  background: linear-gradient(135deg, #8a6a31, #294d2f 45%, #140b06);
  box-shadow: 0 18px 45px #000;
}

.imageAura {
  position: absolute;
  inset: -22px;
  border-radius: 38px;
  background: radial-gradient(circle, rgba(119, 162, 91, 0.45), transparent 68%);
  filter: blur(12px);
}

.spiritImg {
  position: relative;
  display: block;
  width: 100%;
  border: 3px solid rgba(241, 224, 147, 0.45);
  border-radius: var(--radius-image);
}

.eyebrow {
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
}

.heroText h1 {
  margin: 10px 0 18px;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1;
  text-shadow: 0 4px 22px #000;
}

.heroText p {
  font-size: 1.13rem;
  line-height: 1.65;
}

/* ---------------------------------------------------------
   6. Orakel-Box
   --------------------------------------------------------- */
.oracleBox {
  display: grid;
  grid-template-columns: 1fr 300px 1fr;
  gap: 20px;
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  background: var(--panel-dark);
  box-shadow: var(--shadow-panel);
}

.questionPanel,
.canvasPanel,
.answerPanel {
  padding: 20px;
  border: 1px solid rgba(213, 184, 97, 0.28);
  border-radius: var(--radius-large);
  background: linear-gradient(180deg, rgba(37, 70, 42, 0.78), rgba(9, 28, 13, 0.88));
  box-shadow: inset 0 0 35px rgba(0, 0, 0, 0.25);
}

.canvasPanel {
  text-align: center;
}

/* ---------------------------------------------------------
   7. Formulare & Buttons
   --------------------------------------------------------- */
.buttonRow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.buttonRow button,
.againButton,
.contentButton {
  padding: 11px 16px;
  border: 1px solid var(--border-gold-strong);
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #315d34, #17351d);
  color: var(--color-button-text);
  box-shadow: var(--shadow-button);
}

.mainButton {
  width: 100%;
  padding: 18px;
  border: 2px solid rgba(246, 221, 124, 0.8);
  border-radius: var(--radius-image);
  background: radial-gradient(circle at 50% 0%, #8aaa5d, #2a532f 55%, #102617);
  color: #fff;
  font-size: 1.2rem;
  text-shadow: 0 2px 6px #000;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.mainButton:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.againButton {
  width: 100%;
  margin-top: 12px;
}

.contentButton {
  display: inline-block;
  margin-top: 15px;
  text-decoration: none;
}

/* ---------------------------------------------------------
   8. Canvas
   --------------------------------------------------------- */
.canvasHint,
.seedInfo {
  color: #dce8c9;
  font-size: 0.95rem;
}

#treeCanvas {
  width: var(--canvas-size);
  height: var(--canvas-size);
  max-width: 100%;
  border: 8px solid #6f542d;
  border-radius: 50%;
  background: #3b2615;
  box-shadow:
    0 0 0 6px rgba(213, 184, 97, 0.22),
    var(--shadow-canvas);
  touch-action: none;
  border-radius:50%;
  cursor: crosshair;
}

#treeOracleCanvas{
    width:250px;
    height:250px;
    max-width:100%;
    border-radius:50%;
    cursor:crosshair;
    touch-action:none;
}

/* ---------------------------------------------------------
   9. Antwort & Audio-Player
   --------------------------------------------------------- */
.speechBox {
  min-height: 74px;
  margin: 16px 0;
  padding: 16px;
  border: 1px solid rgba(213, 184, 97, 0.32);
  border-radius: var(--radius-medium);
  background: rgba(4, 12, 6, 0.7);
  line-height: 1.5;
}

.woodPlayer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 2px solid rgba(213, 184, 97, 0.42);
  border-radius: var(--radius-medium);
  background: linear-gradient(135deg, #7a502c, #3b2312);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.3);
}

#playAgainBtn {
  min-width: 48px;
  height: 48px;
  border: 1px solid #f3d978;
  border-radius: 50%;
  background: #253f23;
  color: #fff;
  font-size: 1.15rem;
}

.playerText {
  flex: 1;
}

.progressOuter {
  height: 12px;
  margin: 8px 0;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.42);
}

.progressInner {
  width: 0%;
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, #93bf66, #f0d77c);
}

/* ---------------------------------------
	Adsense
-----------------------------------------*/

/* ==========================================
   Google Adsense
========================================== */

.adsense{
    width:100%;
    margin:35px auto;
    padding:18px;

    text-align:center;

    border-radius:24px;

    background:linear-gradient(
        135deg,
        rgba(20,46,25,.88),
        rgba(8,22,12,.92)
    );

    border:1px solid rgba(213,184,97,.25);

    box-shadow:
        0 12px 30px rgba(0,0,0,.25),
        inset 0 0 25px rgba(255,255,255,.03);
}

/* Abstand zwischen mehreren Anzeigen */

.adsense + .adsense{
    margin-top:45px;
}

/* Responsive */

@media (max-width:860px){

    .adsense{
        margin:28px auto;
        padding:14px;
        border-radius:18px;
        width:100%;
    }

}

/* --------------------------------------
Weblinks
---------------------------------------*/

/* ==========================================
   Weitere Orakel
========================================== */

.webLinks{
    margin:30px 0;
    padding:0;
    list-style:none;
}

.webLinks li{
    margin:0 0 12px;
}

.webLinks a{
    display:block;
    padding:14px 18px;

    color:var(--mist);
    text-decoration:none;

    background:rgba(37,70,42,.55);

    border:1px solid rgba(213,184,97,.25);
    border-radius:16px;

    transition:
        background .2s ease,
        transform .15s ease,
        border-color .2s ease;
}

.webLinks a:hover{
    background:rgba(63,109,58,.85);
    border-color:rgba(213,184,97,.55);
    transform:translateX(4px);
}

.webLinks strong{
    display:block;
    margin-bottom:4px;
    color:var(--gold);
    font-size:1.08rem;
}

.webLinks span{
    display:block;
    color:#d7e7d0;
    font-size:.96rem;
    line-height:1.5;
}

@media (max-width:860px){

    .webLinks a{
        padding:12px 16px;
    }

    .webLinks strong{
        font-size:1rem;
    }

}


/* ---------------------------------------------------------
   10. Inhaltsseiten
   --------------------------------------------------------- */
.contentPage {
  max-width: var(--content-width);
  margin: 40px auto;
  padding: 34px;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  background: rgba(7, 21, 11, 0.78);
  line-height: 1.7;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.34);
}

.contentPage h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
}

.linkList a {
  color: #f1dc89;
}

/* -----------------------------
	Baum Orakel
----------------------------- */

/* ==========================================
   Baum-Orakel Ergebnis
========================================== */

.treeMessageShort{
    max-width:760px;
    margin:24px auto;
    padding:18px 24px;

    text-align:center;
    font-size:1.15rem;
    line-height:1.7;
    font-weight:600;

    color:#fff6d0;

    background:linear-gradient(
        135deg,
        rgba(63,109,58,.96),
        rgba(27,53,24,.94)
    );

    border:1px solid rgba(213,184,97,.45);
    border-radius:20px;

    box-shadow:
        inset 0 0 18px rgba(255,255,255,.05),
        0 10px 25px rgba(0,0,0,.28);
}

.treeMessageLong{
    max-width:900px;
    margin:24px auto 0;
    padding:28px;

    font-size:1.08rem;
    line-height:1.9;

    color:#edf3df;

    background:rgba(9,22,12,.88);

    border:1px solid rgba(213,184,97,.35);
    border-radius:26px;

    box-shadow:
        0 16px 40px rgba(0,0,0,.35),
        inset 0 0 30px rgba(255,255,255,.03);
}

.treeMessageLong strong{
    display:block;
    margin-bottom:14px;

    font-size:1.55rem;
    text-align:center;
    color:var(--gold);

    text-shadow:0 2px 10px rgba(0,0,0,.6);
}

.treeMessageLong em{
    font-style:normal;
    color:#eef6e6;
}

@media (max-width:860px){

    .treeMessageShort{
        font-size:1.12rem;
        line-height:1.75;
        padding:18px;
    }

    .treeMessageLong{
        font-size:1.10rem;
        line-height:1.85;
        padding:20px;
    }

    .treeMessageLong strong{
        font-size:1.35rem;
    }

}

/* ---------------------------------------------------------
   11. Responsive
   --------------------------------------------------------- */
@media (max-width: 860px) {
  .treeBurger {
    display: block;
  }

  .treeNav {
    position: absolute;
    z-index: 10;
    top: 66px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    padding: 14px;
    border: 1px solid rgba(213, 184, 97, 0.4);
    border-radius: var(--radius-medium);
    background: rgba(7, 21, 11, 0.98);
  }

  .treeNav.isOpen {
    display: flex;
  }

  .treeNav a {
    text-align: center;
  }

  .treeLogo {
    font-size: 1.16rem;
  }

  .heroPanel {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .oracleBox {
    grid-template-columns: 1fr;
  }

  .buttonRow button {
    flex: 1 1 150px;
  }

  textarea {
    min-height: 135px;
  }
  .heroPanel{
          grid-template-columns:1fr;
          padding:22px;
      }
  
      .spiritFrame{
              width:min(92vw, 400px);
              margin:0 auto 24px;
              padding:12px;
          }
      
          .spiritImg{
              display:block;
              width:100%;
              height:auto;
              border-radius:20px;
    }
    .treeResultFrame{
      width:100%;
      max-width:500px;
      margin:0 auto 24px;
      padding:14px;
      border-radius:28px;
      background:linear-gradient(135deg,#876432,#294b2b);
      box-shadow:0 18px 40px rgba(0,0,0,.35);
    }
    
    .treeResultImage{
      display:block;
      width:100%;
      height:auto;
      border-radius:18px;
	}
}

@media (max-width: 420px) {
  .treeHeader,
  .oracleStage {
    padding-right: 12px;
    padding-left: 12px;
  }

  .heroPanel,
  .oracleBox {
    padding: 16px;
    border-radius: var(--radius-image);
  }

  .questionPanel,
  .canvasPanel,
  .answerPanel {
    padding: 15px;
  }

  .buttonRow {
    display: grid;
    grid-template-columns: 1fr;
  }

  .buttonRow button,
  .mainButton,
  .againButton {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  #treeCanvas {
    width: 230px;
    height: 230px;
  }
}
