:root {
  --bg-deep: #13151a;
  --bg-panel: rgba(24, 26, 32, 0.88);
  --bg-card: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.08);
  --text: #eceae6;
  --text-muted: rgba(236, 234, 230, 0.68);
  --accent: #c4a882;
  --accent-soft: rgba(196, 168, 130, 0.1);
  --footer-bg: #181a20;
  --radius: 14px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --font-sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "Cascadia Code", "Consolas", monospace;
  --content-max: 720px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  overflow-x: hidden;
}

#math-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  backdrop-filter: blur(14px);
  background: rgba(19, 21, 26, 0.9);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.brand span {
  color: var(--accent);
}

#menu {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.menubutton,
.h2button,
footer button {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.menubutton:hover,
.h2button:hover,
footer button:hover {
  background: var(--accent-soft);
  border-color: rgba(196, 168, 130, 0.3);
}

.layout {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.parallax-layer {
  will-change: transform;
}

.hero {
  padding: 2.5rem 0 2rem;
  max-width: var(--content-max);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-tagline {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 56ch;
}

.section-divider {
  height: 1px;
  margin: 2.5rem 0;
  background: linear-gradient(90deg, transparent, rgba(196, 168, 130, 0.25), transparent);
}

.accordion-section {
  max-width: var(--content-max);
  margin-bottom: 1rem;
}

.accordion-section.parallax-section {
  will-change: transform;
}

.h2button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.25rem;
  font-weight: 700;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  text-align: left;
  text-decoration: none;
}

.h2button::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.h2button.h2buttonrotated::after {
  transform: rotate(-135deg);
}

.page {
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}

.page.hidden {
  max-height: 0 !important;
  opacity: 0;
  pointer-events: none;
}

.page:not(.hidden) {
  max-height: 5000px;
  opacity: 1;
}

.card {
  background: var(--bg-panel);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 0.75rem 0 1rem;
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.card p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

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

.card .menubutton {
  display: inline;
  font-size: inherit;
  padding: 0.15rem 0.6rem;
  vertical-align: baseline;
}

.githublink {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  margin-top: 0.5rem;
  transition: opacity 0.2s;
}

.githublink:hover {
  opacity: 0.8;
}

.external-link {
  position: relative;
  width: 14px;
  height: 14px;
  display: inline-block;
  flex-shrink: 0;
}

.external-link .box {
  width: 100%;
  height: 100%;
  background: var(--bg-deep);
  border: 2px solid var(--accent);
  border-radius: 3px;
}

.external-link .arrow {
  position: absolute;
  top: -4px;
  right: -4px;
  border-right: 2px solid var(--accent);
  border-top: 2px solid var(--accent);
  width: 10px;
  height: 10px;
}

.external-link .arrowline {
  transform: rotate(45deg);
  width: 2px;
  height: 12px;
  background: var(--accent);
  position: absolute;
  top: -4px;
  right: 1px;
}

.external-link .corner {
  width: 8px;
  height: 8px;
  position: absolute;
  top: 0;
  right: 0;
  background: var(--bg-deep);
}

#mail {
  display: inline-block;
  margin-left: 0.5rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--accent);
  text-decoration: underline;
}

#lock {
  position: relative;
  height: 200px;
  width: 120px;
  margin: 1.5rem auto 0;
  border: none;
  background: transparent;
  display: block;
  cursor: pointer;
}

#lock.checked .arch {
  transition: top 0.5s ease;
  transition-delay: 0.4s;
  top: 8px;
}

#lock.checked .archarm {
  transition: top 0.5s ease;
  transition-delay: 0.4s;
  top: 62px;
}

#lock.checked .keyhole {
  animation: barrelRoll 0.4s linear;
}

.arch {
  width: 90px;
  height: 68px;
  border: 12px solid #b8a88e;
  border-bottom: none;
  border-top-left-radius: 45px 45px;
  border-top-right-radius: 45px 45px;
  position: absolute;
  transition: top 0.5s ease;
  top: 42px;
  left: 15px;
}

.archarm {
  border-left: 12px solid #b8a88e;
  height: 45px;
  top: 105px;
  left: 15px;
  position: absolute;
  transition: top 0.5s ease;
}

.bottom {
  width: 120px;
  height: 110px;
  border-radius: 12px;
  position: absolute;
  top: 95px;
  background: linear-gradient(135deg, #2a2c34, #363942);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.3);
}

.lockframe {
  opacity: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  z-index: 5;
  cursor: pointer;
}

.keyhole {
  position: absolute;
  left: 54px;
  top: 132px;
  background: #1a1d24;
  border-radius: 3px;
  width: 8px;
  height: 28px;
  z-index: 3;
}

.mail {
  position: absolute;
  top: 168px;
  left: 22px;
  color: #eceae6;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  z-index: 3;
}

@keyframes barrelRoll {
  0% {
    transform: rotateZ(0deg);
  }
  70% {
    transform: rotateZ(69deg);
  }
  100% {
    transform: rotateZ(0deg);
  }
}
footer {
  position: relative;
  z-index: 5;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.25rem 2rem;
  margin-top: 3rem;
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
}

footer a {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

footer a .external-link .box {
  background: var(--footer-bg);
  border-color: var(--text-muted);
}

footer a .external-link .arrow {
  border-color: var(--text-muted);
}

footer a .external-link .arrowline {
  background: var(--text-muted);
}

footer a .external-link .corner {
  background: var(--footer-bg);
}

footer button {
  color: var(--text-muted);
}

#impressum {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

#impressum h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

#impressum .card a {
  color: var(--accent);
}

.hidden.container {
  display: none;
}

#impressum:not(.hidden) {
  display: block;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: #2e313a;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3d414c;
}

@media (max-width: 640px) {
  .hero {
    padding-top: 1.5rem;
  }
  footer {
    justify-content: center;
    text-align: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .parallax-layer {
    transform: none !important;
  }
}

/*# sourceMappingURL=main.css.map */
