/* ==========================================================
   Wirtschaftsingenieure – HTL Hollabrunn
   Farben: Blau aus der Abteilungsgrafik (#0063a5)
   ========================================================== */

/* Schrift lokal eingebunden (Open Sans) – keine externen Server */
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/open-sans-v44-latin-regular.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/open-sans-v44-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/open-sans-v44-latin-700.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("../fonts/open-sans-v44-latin-800.woff2") format("woff2"); }

:root {
  --blue: #0063a5;
  --blue-dark: #004a7c;
  --navy: #0d2338;
  --blue-light: #e6f0f8;
  --yellow: #f5c400;
  --red: #e30613;
  --text: #1c2a38;
  --muted: #5b6b7b;
  --bg: #ffffff;
  --bg-soft: #f3f5f8;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(13, 35, 56, .12);
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }

[hidden] { display: none !important; }

a { color: var(--blue); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Kopfzeile ---------- */
.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.logo-link {
  display: inline-flex;
  border-radius: 4px;
}
.logo-link:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }

.logo {
  height: 48px;
  width: auto;
}

/* YouTube-Link rechts oben */
.yt-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 16px 8px 12px;
  border: 1.5px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  transition: background .25s, border-color .25s;
}
.yt-link:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .6); }
.yt-link:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.yt-ico { width: 28px; height: 20px; flex: 0 0 auto; animation: yt-pulse 2.8s ease-in-out infinite; }
.yt-ico-bg   { fill: #ff0033; }
.yt-ico-play { fill: #fff; }

.yt-arrow {
  width: 16px; height: 16px; flex: 0 0 auto;
  animation: yt-nudge 2.8s ease-in-out infinite;
}
.yt-link:hover .yt-arrow { animation: none; transform: translateX(5px); transition: transform .25s; }

/* leichte Animation: Icon „atmet“, Pfeil schiebt kurz nach rechts */
@keyframes yt-pulse {
  0%, 70%, 100% { transform: scale(1); }
  80%           { transform: scale(1.12); }
  90%           { transform: scale(.98); }
}
@keyframes yt-nudge {
  0%, 70%, 100% { transform: translateX(0); }
  82%           { transform: translateX(5px); }
}
.yt-ico, .yt-arrow { transform-box: fill-box; transform-origin: center; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  padding: 72px 0 150px;
  /* Unterkante als Sheddach – wie die Fabrikhalle in der Animation */
  clip-path: polygon(0 0, 100% 0, 100% 100%,
    83.3% calc(100% - 60px), 83.3% 100%,
    66.6% calc(100% - 60px), 66.6% 100%,
    50% calc(100% - 60px), 50% 100%,
    33.3% calc(100% - 60px), 33.3% 100%,
    16.6% calc(100% - 60px), 16.6% 100%,
    0 calc(100% - 60px));
}

.hero h1 {
  margin: 0 0 28px;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.05;
  font-weight: 800;
  hyphens: manual;
}

.claims {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  max-width: 860px;
}

.claims li {
  position: relative;
  padding-left: 2.2em;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.claims li::before {
  content: "…";
  position: absolute;
  left: 0;
  top: -.05em;
  font-weight: 800;
  color: var(--yellow);
}

.claims strong { font-weight: 700; }

/* ---------- Animation (überlappt die Hero-Unterkante) ---------- */
.flow {
  margin-top: -110px;
  padding-bottom: 64px;
  position: relative;
  z-index: 2;
}

.flow-stage {
  margin: 0;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.scene-wrap { width: 100%; }
.scene { width: 100%; height: auto; display: block; }

/* ---------- Ausbildungsschwerpunkte ---------- */
.focus {
  background: var(--bg-soft);
  padding: 64px 0 120px;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: stretch;
  max-width: 1040px;
}

.focus-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 40px 40px;
  border-top: 6px solid var(--blue);
}
.focus-card--log { border-top-color: var(--yellow); }

.focus-label {
  margin: 0;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
  color: var(--muted);
}

.focus-card h2 {
  margin: 2px 0 16px;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1.15;
  color: var(--blue);
  hyphens: none;
  white-space: nowrap;
}

/* ---------- PDF-Ordner ---------- */
.pdf-folder { margin-bottom: 14px; }

.folder-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 6px 18px 6px 12px;
  border: 0;
  border-radius: 10px;
  background: var(--blue-light);
  color: var(--blue-dark);
  font: inherit;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.focus-card--log .folder-btn { color: #7a5d00; }
.folder-btn:hover { background: #d5e6f4; transform: translateY(-2px); }
.folder-btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.focus-card--log .folder-btn { background: #fdf3cc; }
.focus-card--log .folder-btn:hover { background: #fbe9a3; }

.folder-ico { width: 36px; height: 30px; overflow: visible; }
.folder-back  { fill: var(--blue-dark); }
.folder-sheet { fill: #fff; transform: translateY(4px); transition: transform .3s ease; }
.folder-front {
  fill: var(--blue);
  transform-origin: 24px 38px;
  transition: transform .3s ease;
}
.focus-card--log .folder-back  { fill: #c99a00; }
.focus-card--log .folder-front { fill: var(--yellow); }

.folder-btn[aria-expanded="true"] .folder-sheet { transform: translateY(-3px); }
.folder-btn[aria-expanded="true"] .folder-front { transform: skewX(-14deg) scaleY(.82); }

/* Aufklappen mit weicher Höhe (grid 0fr -> 1fr) */
.pdf-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease;
}
.pdf-panel.is-open { grid-template-rows: 1fr; }
.pdf-panel-inner { overflow: hidden; min-height: 0; }

.pdf-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 6px;
  border: 1px solid #dfe6ee;
  border-radius: var(--radius);
  background: #fafcfe;
}
.pdf-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 4px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.pdf-list a::before {
  content: "PDF";
  flex: 0 0 auto;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: #fff;
  background: var(--red);
  border-radius: 3px;
  padding: 2px 5px;
}
.pdf-list a:hover { background: var(--blue-light); color: var(--blue); }
.pdf-size {
  margin-left: auto;
  font-size: .8rem;
  font-weight: 400;
  color: var(--muted);
  white-space: nowrap;
}
.pdf-list.is-empty::before {
  content: "Noch keine PDFs vorhanden.";
  display: block;
  padding: 8px 10px;
  color: var(--muted);
  font-size: .95rem;
}

/* ---------- Liste ---------- */
.arrow-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.arrow-list li {
  position: relative;
  padding: 10px 0 10px 34px;
  border-bottom: 1px solid #e3e8ee;
  font-weight: 600;
}
.arrow-list li:last-child { border-bottom: 0; }

.arrow-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--blue-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12h11M13 7l5 5-5 5' fill='none' stroke='%230063a5' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
  transition: transform .2s;
}
.arrow-list li:hover::before { transform: translateY(-50%) translateX(4px); }

/* ---------- Abschluss (Blau wie der Hero, Oberkante als Sheddach) ---------- */
.closing {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  margin-top: -60px;
  padding: 130px 0 96px;
  text-align: center;
  clip-path: polygon(0 0, 16.66% 60px, 16.66% 0, 33.33% 60px, 33.33% 0, 50% 60px, 50% 0,
    66.66% 60px, 66.66% 0, 83.33% 60px, 83.33% 0, 100% 60px, 100% 100%, 0 100%);
}

.closing-line {
  margin: 0;
  font-weight: 800;
  line-height: 1.15;
  font-size: clamp(1.6rem, 4.2vw, 3rem);
}
.closing-line--2 {
  margin-top: 14px;
  color: var(--yellow);
}

/* ---------- Zusatzqualifikationen (Rad) ---------- */
.zq {
  margin: 72px auto 0;
  max-width: 680px;
}

.zq-title {
  margin: 0 0 20px;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
}
.zq-title span { display: block; font-size: 1rem; font-weight: 700; color: var(--yellow); }

.zq-wheel { display: block; width: 100%; height: auto; overflow: visible; }

.zq-ring      { fill: rgba(5, 25, 45, .28); }
.zq-ring-line { fill: none; stroke: rgba(255, 255, 255, .35); stroke-width: 1.5; }
.zq-div       { stroke: rgba(255, 255, 255, .55); stroke-width: 2; }

.zq-seg-bg {
  fill: rgba(255, 255, 255, .07);
  transition: fill .25s ease;
}
.zq-seg:nth-child(odd) .zq-seg-bg { fill: rgba(255, 255, 255, .12); }
.zq-seg:hover .zq-seg-bg { fill: rgba(255, 255, 255, .24); }

.zq-label {
  fill: #fff;
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 17px;
}
.zq-class {
  fill: var(--yellow);
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .06em;
}

.zq-center {
  fill: #fff;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .25));
}
.zq-center-sub {
  fill: var(--blue);
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 15px;
}
.zq-center-wi {
  fill: var(--blue);
  font-family: "Open Sans", sans-serif;
  font-weight: 800;
  font-size: 66px;
  letter-spacing: -.02em;
}

/* Segmente erscheinen nacheinander, sobald das Rad sichtbar wird */
.js .zq .zq-seg {
  opacity: 0;
  transition: opacity .5s ease;
  transition-delay: calc(var(--i) * 90ms + .2s);
}
.js .zq.is-visible .zq-seg { opacity: 1; }

/* Liste: für Screenreader immer, sichtbar nur am Handy (statt des Rads) */
.zq-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.zq-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .1);
  text-align: left;
}
.zq-list li + li { margin-top: 8px; }
.zq-item-name { font-weight: 700; }
.zq-item-class {
  flex: 0 0 auto;
  font-size: .85rem;
  font-weight: 700;
  color: var(--yellow);
  white-space: nowrap;
}

@media (min-width: 641px) {
  .zq-title,
  .zq-list {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}
@media (max-width: 640px) {
  .zq { margin-top: 48px; }
  .zq-wheel { display: none; }
}

/* ---------- Einblenden beim Scrollen (per JS) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .claims li.reveal:nth-child(2) { transition-delay: .1s; }
.js .claims li.reveal:nth-child(3) { transition-delay: .2s; }
.js .claims li.reveal:nth-child(4) { transition-delay: .3s; }
.js .focus-card--log.reveal { transition-delay: .15s; }
.js .closing-line--2.reveal { transition-delay: .2s; }

/* Bewegung reduzieren, wenn gewünscht */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .pdf-panel, .folder-sheet, .folder-front { transition: none; }
  .js .zq .zq-seg { opacity: 1; transition: none; }
  .yt-ico, .yt-arrow { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .focus-grid { grid-template-columns: 1fr; max-width: 560px; gap: 24px; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .container { padding: 0 16px; }
  .header-inner { min-height: 56px; }
  .logo { height: 40px; }
  .yt-link { padding: 6px 12px 6px 10px; font-size: .9rem; gap: 8px; }

  .hero {
    padding: 36px 0 96px;
    clip-path: polygon(0 0, 100% 0, 100% 100%,
      75% calc(100% - 28px), 75% 100%,
      50% calc(100% - 28px), 50% 100%,
      25% calc(100% - 28px), 25% 100%,
      0 calc(100% - 28px));
  }
  .hero h1 { font-size: clamp(2rem, 10vw, 2.6rem); margin-bottom: 20px; }
  .claims { gap: 10px; }
  .claims li { padding-left: 1.8em; font-size: 1.02rem; }

  .flow { margin-top: -70px; padding-bottom: 40px; }
  .flow .container { padding: 0 8px; }
  .flow-stage { padding: 6px; }

  .focus { padding: 40px 0 80px; }
  .focus-card { padding: 24px 20px 26px; }
  .focus-card h2 { font-size: clamp(1.35rem, 7vw, 1.6rem); }
  .arrow-list li { padding: 9px 0 9px 32px; }

  .closing {
    margin-top: -28px;
    padding: 76px 0 64px;
    clip-path: polygon(0 0, 25% 28px, 25% 0, 50% 28px, 50% 0, 75% 28px, 75% 0, 100% 28px, 100% 100%, 0 100%);
  }
}
