﻿/* ========================================================================== 
   KLEINEHEXE â€“ TUTORIAL LAYOUT
   ========================================================================== */

/* ========================================================================== 
   1) NUR DIE 3 FESTEN GRAFIKEN â€“ HIER IN DER sheet.css Ã„NDERN
   --------------------------------------------------------------------------
   Nur diese drei Grafiken werden Ã¼ber die CSS gesteuert:
   1. Tutoriale-Kopf
   2. Material-Grafik
   3. by-KleineHexe-Schriftzug

   ALLE anderen Bilder â€“ fertiges Tutorialbild, Galerie und Bilder in den
   einzelnen Punkten â€“ stehen DIREKT in der index.html.
   Dort Ã¤nderst du:
   - src="..."    = Bilddatei
   - width="..."  = Breite
   - height="..." = HÃ¶he
   ========================================================================== */

:root {
  /* Tutoriale-Kopf */
  --bild-kopf-datei: url("images/kopf-tutoriale.png");
  --bild-kopf-breite: 1500px;
  --bild-kopf-hoehe: 440px;

  /* Material-Grafik */
  --bild-material-datei: url("images/material.png");
  --bild-material-breite: 200px;
  --bild-material-hoehe: 183px;

  /* by-KleineHexe-Schriftzug */
  --bild-signatur-datei: url("images/signatur-kleinehexe.png");
  --bild-signatur-breite: 300px;
  --bild-signatur-hoehe: 100px;
}

/* ========================================================================== 
   2) GRUNDDESIGN
   ========================================================================== */

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #76151c #090a0c;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-y: scroll;
  background:
    radial-gradient(circle at 50% 0, rgba(133, 0, 9, .20), transparent 40rem),
    url("images/hgbig.jpg") center top repeat,
    #050607;
  background-attachment: fixed;
  color: #202020;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.75;
}

/* Schmale passende Browser-Scrollbar */
body::-webkit-scrollbar {
  width: 10px;
}

body::-webkit-scrollbar-track {
  background: #090a0c;
}

body::-webkit-scrollbar-thumb {
  border: 2px solid #090a0c;
  border-radius: 8px;
  background: linear-gradient(180deg, #8a1922, #3a0c11);
}

a {
  color: inherit;
}

/* Die komplette Seite UND der Innenbereich sind 1500 px breit. */
.seite {
  width: 1500px;
  max-width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  background: transparent;
  box-shadow: 0 0 65px rgba(0, 0, 0, .95);
}

/* ========================================================================== 
   3) BILDER
   ========================================================================== */

/* Nur fÃ¼r die 3 festen CSS-Grafiken */
.css-bild {
  display: block;
  margin-inline: auto;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.bild-kopf {
  width: var(--bild-kopf-breite);
  height: var(--bild-kopf-hoehe);
  max-width: 100%;
  background-image: var(--bild-kopf-datei);
  background-size: 100% 100%;
}

.bild-material {
  width: var(--bild-material-breite);
  height: var(--bild-material-hoehe);
  max-width: 100%;
  background-image: var(--bild-material-datei);
  background-size: contain;
}

.material-link {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
}

.material-link .bild-material {
  transition: transform .18s ease, filter .18s ease;
}

.material-link:hover .bild-material {
  transform: scale(1.03);
  filter: brightness(1.08);
}

.bild-signatur {
  width: var(--bild-signatur-breite);
  height: var(--bild-signatur-hoehe);
  max-width: 100%;
  margin-top: 25px;
  background-image: var(--bild-signatur-datei);
}

/* ----------------------------------------------------------
   Tutorialbilder aus der index.html
   Breite und HÃ¶he werden DIREKT am <img>-Tag geÃ¤ndert.
   Auf einem 1500-px-Bildschirm werden diese Werte 1:1 benutzt.
   ---------------------------------------------------------- */
.tutorial-bild,
.titel-bild,
.galerie-bild {
  display: block;
  max-width: 100%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

.titel-bild {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 22px auto 18px;
  object-fit: contain;
}

.tutorial-bild {
  margin-top: 25px;
  margin-bottom: 25px;
  border: 1px solid #bbb;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
  object-fit: contain;
}

.ergebnis-bild {
  margin-top: 28px;
  margin-bottom: 18px;
  border-color: #651218;
  outline: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .32);
}

.galerie-bild {
  margin-top: 12px;
  margin-bottom: 4px;
}

/* ========================================================================== 
   4) HEADER + NAVIGATION + SCHMALER GOTHICRAHMEN
   ========================================================================== */

.kopfbereich {
  background: #000;
}

/*
   Der Gothicrahmen liegt auf der vollen 1500-px-Seitenbreite und damit
   bÃ¼ndig mit dem Header. Der eigentliche Tutorialinhalt bleibt 1250 px breit
   und sitzt mittig innerhalb dieses Rahmens.
*/
.inhalt-rahmen {
  position: relative;
  width: 1500px;
  max-width: 100%;
  min-height: calc(100vh - var(--bild-kopf-hoehe));
  margin: 0 auto;
  padding: 0 0 20px;
  border-top: 3px double #651018;
  border-bottom: 3px double #651018;
  background:
    linear-gradient(90deg,
      rgba(87, 12, 18, .42) 0,
      transparent 26px,
      transparent calc(100% - 26px),
      rgba(87, 12, 18, .42) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.025),
    inset 0 12px 20px rgba(0,0,0,.20),
    inset 0 -12px 20px rgba(0,0,0,.20);
}

/*
   Gothic-Rahmen auf der vollen 1500-px-Breite.
   Keine Symbole: der Look entsteht nur durch dunkles Metall,
   rote Kanten und ein schmales rauten-/spitzenartiges Muster.
*/
.inhalt-rahmen::before,
.inhalt-rahmen::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 18px;
  z-index: 5;
  pointer-events: none;
  border-left: 1px solid #26070a;
  border-right: 1px solid #7d151e;
  background:
    repeating-linear-gradient(135deg,
      transparent 0 7px,
      rgba(134, 20, 29, .88) 7px 9px,
      transparent 9px 16px),
    repeating-linear-gradient(45deg,
      transparent 0 7px,
      rgba(72, 10, 16, .92) 7px 9px,
      transparent 9px 16px),
    linear-gradient(90deg,
      #050506 0 2px,
      #3b090e 2px 4px,
      #0d0b0d 4px 7px,
      #74121a 7px 9px,
      #141014 9px 12px,
      #3b090e 12px 14px,
      #050506 14px 18px);
  box-shadow:
    0 0 12px rgba(0,0,0,.95),
    inset 0 0 0 1px rgba(255,255,255,.035),
    inset 0 0 10px rgba(0,0,0,.70);
}

.inhalt-rahmen::before {
  left: 0;
}

.inhalt-rahmen::after {
  right: 0;
  transform: scaleX(-1);
}

.hauptnavigation {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
  width: 1250px;
  max-width: 100%;
  margin: 0 auto;
  padding: 10px 0;
  border: 0;
  background: transparent;
  font-family: Arial, Helvetica, sans-serif;
}

/* ========================================================================== 
   5) 1250-PX-INNENBEREICH
   --------------------------------------------------------------------------
   Kein seitliches Padding am Ã¤uÃŸeren Innenbereich. Dadurch stehen wirklich
   die kompletten 1250 px fÃ¼r den Tutorial-Inhaltsbereich zur VerfÃ¼gung.
   ========================================================================== */

.layout {
  width: 1250px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 0 55px;
  text-align: center;
  background: transparent;
}

.tutorial {
  width: 1250px;
  max-width: 100%;
  margin: 0 auto;
  min-width: 0;
  text-align: center;
}

/* ========================================================================== 
   6) TITELBEREICH
   ========================================================================== */

.titelbereich {
  width: 100%;
  margin: 0 0 30px;
  padding: 42px 30px 36px;
  text-align: center;
  border-top: 1px solid #4b1115;
  border-bottom: 1px solid #4b1115;
  background:
    radial-gradient(circle at top center, rgba(127, 16, 24, .20), transparent 35rem),
    #12171b;
}

.kategorie {
  margin: 0 0 4px;
  color: #c24a51;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.titelbereich h1 {
  margin: 0;
  color: #f3f3f3;
  font-size: clamp(34px, 4vw, 64px);
  font-weight: 400;
  line-height: 1.15;
  text-shadow: 0 0 20px rgba(198, 29, 40, .28);
}

.untertitel {
  margin: 12px 0 0;
  color: #b9bec2;
}

/* ========================================================================== 
   7) HINWEISE / MATERIAL / FILTER / ABSCHLUSS
   --------------------------------------------------------------------------
   Auch diese Bereiche sind jetzt rund umrandet. Die AbstÃ¤nde dazwischen sind
   transparent, damit der Seitenhintergrund sichtbar bleibt.
   --------------------------------------------------------------------------
   Diese Bereiche dÃ¼rfen weiterhin abgegrenzt sein. Sie nutzen aber die volle
   Innenbreite, damit die Seite insgesamt einheitlich bleibt.
   ========================================================================== */

.karte {
  width: 100%;
  margin: 16px 0;
  overflow: hidden;
  border: 1px solid rgba(190, 37, 47, .55);
  border-radius: 12px;
  background: #ececec;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .16);
  scroll-margin-top: 18px;
}

.kartenkopf,
.punktkopf {
  width: 100%;
  padding: 7px 18px;
  text-align: center;
  border-bottom: 1px solid #9b1d24;
  color: #fff;
  font-size: 18px;
  line-height: 1.35;
  background:
    linear-gradient(90deg, #14191d 0%, #681117 42%, #8d1820 50%, #681117 58%, #14191d 100%);
  text-shadow: 0 1px 2px #000;
}

.karteninhalt {
  width: 100%;
  padding: 22px 42px 26px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .18)),
    #e7e7e7;
}

.karteninhalt p:first-child {
  margin-top: 0;
}

.karteninhalt p:last-child {
  margin-bottom: 0;
}

.markierung {
  color: #b30e18;
  font-weight: 700;
}


.karte-hinweis {
  box-shadow: 0 4px 12px rgba(0, 0, 0, .16);
}

.material-raster {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
  justify-items: center;
  text-align: center;
}

.material-liste {
  display: inline-block;
  margin: 0 0 22px;
  padding-left: 0;
  list-style-position: inside;
  text-align: center;
}

.kleiner-hinweis {
  color: #666;
  font-size: 14px;
}

.filter-liste p {
  margin: 4px 0;
}

/* ========================================================================== 
   8) TUTORIALPUNKTE â€“ KEINE EINZELNEN KARTEN MEHR
   --------------------------------------------------------------------------
   Alle Punkte liegen direkt im gleichen 1500-px-Innenbereich.
   Es gibt nur eine klare Ãœberschriftsleiste zur Trennung der Punkte.
   GroÃŸe Bilder kÃ¶nnen dadurch den gesamten Innenbereich nutzen.
   ========================================================================== */

.punkt {
  width: 100%;
  margin: 16px 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(190, 37, 47, .55);
  border-radius: 12px;
  background: #e7e7e7;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .10);
  scroll-margin-top: 18px;
}

/* Der Balken der einzelnen Punkte ist bewusst schmal. */
.punktkopf {
  margin: 0;
  border-top: 0;
}

.punktinhalt {
  width: 100%;
  margin: 0;
  padding: 26px 0 38px;
  text-align: center;
  background: #e7e7e7;
}

/* Texte bleiben angenehm lesbar, Bilder dÃ¼rfen trotzdem bis 1500 px breit sein. */
.punktinhalt > p {
  width: min(1320px, calc(100% - 80px));
  margin-left: auto;
  margin-right: auto;
}

.punktinhalt > p:first-child {
  margin-top: 0;
}

.punktinhalt > p:last-child {
  margin-bottom: 0;
}

/* ========================================================================== 
   9) ABSCHLUSS + FOOTER
   ========================================================================== */

.abschluss .karteninhalt {
  text-align: center;
}

.fertig-text {
  font-size: 20px;
}

.uebersetzung-design {
  margin: 30px 0 4px;
  color: #7b1017;
  font-size: 22px;
  font-weight: 700;
}

.fussbereich {
  display: flex;
  justify-content: center;
  gap: 10px;
  width: 1250px;
  max-width: 100%;
  margin: 0 auto;
  padding: 12px 20px 8px;
  text-align: center;
  border: 0;
  color: #777f85;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  background: transparent;
}

/* Obere Tutorial-Buttons und Homebutton: gleiche kleine Optik */
.hauptnavigation a,
.home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  min-height: 31px;
  padding: 5px 14px;
  border: 1px solid rgba(190, 37, 47, .58);
  border-radius: 6px;
  color: #f2f2f2;
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .025em;
  background: linear-gradient(180deg, #6e141b, #2a0b0e);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 3px 10px rgba(0,0,0,.35);
  transition: .2s ease;
}

.hauptnavigation a:hover,
.home-button:hover {
  border-color: #d4434d;
  background: linear-gradient(180deg, #8b1a23, #3a0d12);
  color: #fff;
}

/* ========================================================================== 
   10) KLEINERE BILDSCHIRME
   ========================================================================== */

@media (max-width: 1499px) {
  /* Auf kleineren Monitoren dÃ¼rfen die Index-Bilder verkleinert werden,
     damit die Seite nicht seitlich auseinanderlÃ¤uft. Auf 1500 px und grÃ¶ÃŸer
     gelten exakt die width-/height-Werte aus der index.html. */
  .tutorial-bild,
  .titel-bild,
  .galerie-bild {
    max-width: 100%;
    height: auto;
  }

  .karteninhalt {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 980px) {
  .layout {
    padding-top: 0;
    padding-bottom: 40px;
  }

  .bild-material {
    margin-top: 10px;
  }

  .punktinhalt > p {
    width: calc(100% - 36px);
  }
}

@media (max-width: 650px) {
  .titelbereich,
  .karteninhalt {
    padding-left: 18px;
    padding-right: 18px;
  }

  .inhalt-rahmen::before,
  .inhalt-rahmen::after {
    width: 9px;
  }

  .hauptnavigation {
    padding-left: 10px;
    padding-right: 10px;
  }

  .hauptnavigation a {
    width: auto;
    text-align: center;
  }

  .bild-signatur {
    height: min(var(--bild-signatur-hoehe), 34vw);
  }
}
