/* general
-------------------------------------------------------- 
*/
html {
  scroll-behavior: smooth;
}

body{
  margin:0;
  padding:0;
  background: radial-gradient(circle at top, #1b2b4d 0%, #0a1220 28%, #050b14 65%, #02070d 100%);
  font-family: "Segoe UI", Helvetica, Arial, sans-serif;
  color:#eaf2ff;
  line-height:1.6;
  overflow-y: scroll;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(126, 217, 255, 0.06), transparent 30%, rgba(167, 119, 255, 0.08) 70%, transparent),
    radial-gradient(circle at 20% 20%, rgba(127, 231, 217, 0.09), transparent 20%),
    radial-gradient(circle at 80% 15%, rgba(90, 118, 255, 0.16), transparent 25%);
  pointer-events: none;
  z-index: 0;
}

h1,h2,h3{margin-top:0;line-height:1.1;}
img {border:0; max-width:100%; display:block;}
a { color: #cfe4ff; text-decoration:none; }
a:hover   { text-decoration:none; color:#8ad3ff; }

* { box-sizing: border-box; }

/* page structure
-------------------------------------------------------- 
*/
header#top,
div#content,
footer#bottom {
  position: relative;
  z-index: 2;
}

header#top,
div#content {margin:0 auto;width:960px;}
.start-page { width:min(1180px, 92vw); }

div#content{padding:2rem 0 2.5rem 0; overflow:auto;}
#content::after { content:""; display:block; clear:both; }
.start-page { overflow: visible;}

/*two columns */
article {width:730px;float:left;}
aside {float:left;width:230px;}

/* footer */
footer#bottom {
  font: normal 0.8em Arial, Helvetica, sans-serif;
  color: #d9ecff;
  padding:18px 20px 24px 20px;
  margin:0 auto;
  width:940px;
  background: rgba(17, 23, 36, 0.8);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.35);
  backdrop-filter: blur(16px);
}

/* the log text */
.logga {font-family: "Segoe UI", sans-serif;font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 800; letter-spacing: -0.04em;}

/* navigation menu
-------------------------------------------------------- 
*/
nav.navmenu {
  font-family: "Segoe UI", arial;
  font-weight: 700;
  padding: 12px 14px;
  background: rgba(10, 16, 26, 0.75);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 38px rgba(0,0,0,0.25);
  border-radius: 16px;
  margin-top: 1rem;
  display:flex;
  gap:0.7rem;
  flex-wrap:wrap;
}
nav.navmenu a {
  padding:10px 16px;
  text-decoration:none;
  border:1px solid transparent;
  color:#e8f3ff;
  border-radius:12px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
nav.navmenu a::before {
  content: "";
  position: absolute;
  inset:0;
  background: linear-gradient(135deg, rgba(127,231,217,0.18), rgba(138,180,255,0.18));
  opacity:0;
  transition: opacity 0.25s ease;
}
nav.navmenu a:hover::before,
nav.navmenu a:hover {
  opacity: 1;
}
nav.navmenu a:hover {
  background: rgba(138, 211, 255, 0.12);
  border-color: rgba(138, 211, 255, 0.35);
  transform: translateY(-1px);
}

/* figure & figcaption
-------------------------------------------------------- 
*/
figure {border:1px solid rgba(255,255,255,0.08);padding:0;margin:1em; background: rgba(255,255,255,0.04); border-radius: 20px; overflow:hidden; box-shadow: 0 18px 36px rgba(0,0,0,0.18);}
figcaption {font-style:normal;font-size:0.95rem;padding:0.7rem 1rem; color:#dfeeff; background: rgba(10,12,18,0.4);}

figure.right{margin-right:1em;}
figure.top{margin-top:0;}

/* Misc classes
-------------------------------------------------------- 
*/
.right {float:right;}
.left {float:left;}

#eltonbild1 {
  height: 340px;
  width: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.06) brightness(0.92);
}

/* highlight current choice in navigation menu
--------------------------------------------------------
*/
body#start a#start-,
body#comments a#comments-,
body#exercises a#exercises-,
body#viewsource a#viewsource- {
  background: linear-gradient(135deg, #b4d8ff, #7fe7d9);
  border:1px solid rgba(255,255,255,0.25);
  color:#062033;
  box-shadow: 0 12px 24px rgba(127, 231, 217, 0.18);
}

/* start page additions
--------------------------------------------------------
*/
.start-page article {
  width:100%;
  float:none;
}

.start-article {
  background: rgba(14, 19, 27, 0.7);
  border:1px solid rgba(255,255,255,0.08);
  border-radius: 30px;
  padding: 2rem;
  box-shadow:
    0 30px 65px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.12);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.start-article::before {
  content: "";
  position: absolute;
  inset: -30% auto auto -10%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(126, 217, 255, 0.18), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.hero-panel {
  display:grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 2rem;
  align-items:center;
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin:0 0 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color:#8ad3ff;
  font-weight: 700;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 4vw, 4.4rem);
  margin-bottom: 1rem;
  letter-spacing: -0.06em;
  text-shadow: 0 0 28px rgba(138, 180, 255, 0.3);
}

.hero-copy p {
  font-size: 1.05rem;
  color: #dfeeff;
  margin-bottom: 1.5rem;
  max-width: 62ch;
}

.hero-actions {
  display:flex;
  gap:1rem;
  flex-wrap:wrap;
}

.primary-btn,
.secondary-btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  font-weight:700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.primary-btn {
  background: linear-gradient(135deg, #7fe7d9, #8ab4ff);
  color:#0a1020;
  box-shadow: 0 18px 30px rgba(127, 231, 217, 0.22);
}

.secondary-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  color:#ebf5ff;
}

.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-2px) scale(1.01);
}

.portrait-figure {
  margin:0;
  border-radius: 24px;
  position: relative;
  transform: perspective(1200px) rotateY(-8deg) rotateX(4deg);
  box-shadow: 0 24px 40px rgba(0,0,0,0.28);
}

.feature-grid {
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:1.2rem;
  margin-top:2rem;
  position: relative;
  z-index: 1;
}

.feature-card {
  background: rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding:1.5rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 12px 24px rgba(0,0,0,0.12);
}

.card-icon {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.8rem;
  margin-bottom:1rem;
  background: linear-gradient(135deg, rgba(127,231,217,0.22), rgba(138,180,255,0.18));
  border:1px solid rgba(138,180,255,0.22);
  color:#bbebff;
  font-weight:800;
  font-size:0.9rem;
}

.feature-card h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  margin:0;
  color:#d7e8ff;
}

.ambient-background {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-grid {
  position: absolute;
  inset: -15% -10% -10% -10%;
  background-image:
    linear-gradient(rgba(160, 190, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160, 190, 255, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 90%);
  transform: perspective(900px) rotateX(62deg) translateY(25%);
  opacity: 0.65;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.08;
  transition: opacity 0.9s ease, filter 0.9s ease, transform 0.9s ease;
  box-shadow: inset 0 0 25px rgba(255,255,255,0.04), 0 0 28px rgba(138,180,255,0.08);
  will-change: transform, opacity;
}

.orb-one { width: 420px; height: 420px; background: radial-gradient(circle at 35% 35%, rgba(126, 217, 255, 0.9), rgba(126, 217, 255, 0.18) 30%, transparent 70%); top: 6%; left: 8%; }
.orb-two { width: 540px; height: 540px; background: radial-gradient(circle at 35% 35%, rgba(166, 125, 255, 0.7), rgba(166, 125, 255, 0.12) 35%, transparent 72%); top: 12%; right: 4%; }
.orb-three { width: 380px; height: 380px; background: radial-gradient(circle at 35% 35%, rgba(127, 231, 217, 0.7), rgba(127, 231, 217, 0.12) 30%, transparent 70%); bottom: 3%; left: 18%; }
.orb-four { width: 480px; height: 480px; background: radial-gradient(circle at 50% 50%, rgba(90, 118, 255, 0.75), rgba(90, 118, 255, 0.1) 35%, transparent 72%); bottom: -9%; right: 18%; }

.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  transition: opacity 0.9s ease, transform 0.9s ease;
  will-change: opacity, transform;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.page-transition-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  z-index: 10001;
  transition: opacity 0.7s ease;
}
.page-transition-overlay.is-visible {
  opacity: 1;
}

.intro-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.96);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.intro-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.intro-panel {
  width: min(620px, 80vw);
  background: rgba(11,17,27,0.8);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 30px 60px rgba(0,0,0,0.45);
  backdrop-filter: blur(16px);
  text-align: center;
}

.intro-label {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8ec7ff;
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.intro-text {
  color: #edf7ff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.3rem;
}

.loading-bar {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
}

.loading-bar span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #7fe7d9, #8ab4ff, #c5a5ff);
  border-radius: inherit;
  transition: width 0.12s linear;
}

/* New intro visuals (logo + subtext) */
.intro-logo {
  font-size: clamp(2rem, 6vw, 3.6rem);
  font-weight: 900;
  color: #eaf7ff;
  letter-spacing: -0.02em;
  text-shadow: 0 0 36px rgba(138,180,255,0.26);
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  animation: introLogoIn 900ms cubic-bezier(.2,.9,.2,1) forwards;
}

.intro-subtext {
  margin-top: 0.6rem;
  color: #aeddff;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  animation: introSubIn 900ms 350ms cubic-bezier(.2,.9,.2,1) forwards;
}

@keyframes introLogoIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes introSubIn {
  to { opacity: 1; transform: translateY(0); }
}

.intro-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent 40%);
  pointer-events: none;
}

@media (max-width: 820px) {
  .hero-panel,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .start-article {
    padding: 1.25rem;
  }

  #eltonbild1 {
    height: 260px;
  }

  .intro-panel {
    width: min(90vw, 600px);
    padding: 1.25rem;
  }
}