/* Fonts */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Root & Base */

:root {
  --primary: #00c4e7;
  --primary-soft: rgba(0, 196, 231, 0.12);
  --dark: #28323a;
  --dark-soft: #121820;
  --text-main: #e9f0f5;
  --text-muted: #9aa5b1;
  --border-soft: rgba(255, 255, 255, 0.06);
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.45);
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at 0% 0%, #061824 0, #05060a 45%, #05070b 100%);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header / Nav */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(5, 7, 11, 0.96), rgba(5, 7, 11, 0.75), transparent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.brand-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-link span {
  transition: color 0.2s ease-out;
}

.brand-link:hover span {
  color: var(--text-main);
}

.nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 12px rgba(0, 196, 231, 0.85);
  animation: pulse 2.6s ease-in-out infinite;
}

.nav-right {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9rem;
  align-items: center;
}

.nav-link {
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  padding-bottom: 0.2rem;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), #35f1ff);
  transition: width 0.22s ease-out;
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-link:hover::after {
  width: 100%;
}

.theme-toggle {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 13, 20, 0.9);
  padding: 0.25rem 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: background 0.2s ease-out, border-color 0.2s ease-out, color 0.2s ease-out;
}

.theme-toggle-icon {
  font-size: 0.9rem;
}

.theme-toggle:hover {
  background: rgba(18, 23, 32, 0.98);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--text-main);
}

/* Layout */

main {
  flex: 1;
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* Hero */

.hero {
  min-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

.hero-logo-wrap {
  background: radial-gradient(circle at 50% 0%, rgba(0, 196, 231, 0.18), transparent 55%);
  padding: 2.5rem 2rem;
  border-radius: 999px;
}

.hero-logo-inner {
  background: rgba(10, 13, 20, 0.9);
  border-radius: 999px;
  padding: 1.5rem 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-inner img {
  max-width: 260px;
  height: auto;
  display: block;
}

.hero-tagline {
  max-width: 640px;
}

.hero-tagline h1 {
  font-size: clamp(2.2rem, 4vw, 2.9rem);
  letter-spacing: -0.04em;
  margin-bottom: 0.75rem;
}

.hero-tagline p {
  font-size: 1rem;
  color: var(--text-muted);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.badge {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.45rem 0.95rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  background: rgba(8, 12, 18, 0.9);
}

.badge span {
  color: var(--primary);
}

/* Sections / Cards */

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
  margin-top: 1.5rem;
}

.card {
  background: radial-gradient(circle at 0% 0%, rgba(0, 196, 231, 0.12), rgba(12, 15, 22, 0.96));
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  padding: 1.5rem 1.6rem;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.55);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 110% 0%, rgba(0, 196, 231, 0.18), transparent 55%);
  opacity: 0.65;
  pointer-events: none;
}

.card-inner {
  position: relative;
  z-index: 1;
}

.section-title {
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 12px rgba(0, 196, 231, 0.8);
}

ul.feature-list {
  list-style: none;
  margin-top: 0.5rem;
}

ul.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
}

ul.feature-list li::before {
  content: "▸";
  color: var(--primary);
  font-size: 0.8rem;
  margin-top: 0.15rem;
}

/* Contact */

.contact-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 1.75rem;
  margin-top: 1.5rem;
}

.contact-box {
  background: rgba(8, 12, 18, 0.95);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-soft);
}

.contact-row {
  margin-bottom: 0.9rem;
  font-size: 0.95rem;
}

.contact-label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.contact-value {
  font-weight: 500;
}

.contact-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
}

/* Code Block / Terminal */

.code-block {
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.78rem;
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  background: linear-gradient(135deg, #05080f, #050611);
  border: 1px solid rgba(0, 196, 231, 0.28);
  color: var(--text-muted);
  overflow-x: auto;
  margin-top: 0.6rem;

  min-height: 95px;
  line-height: 1.45;
  display: block;
}

#terminalLineCmd,
#terminalLineRes {
  white-space: pre-wrap;
}

/* Blinkender Terminal-Cursor */

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--primary);
  margin-left: 3px;
  animation: cursor-blink 0.9s steps(2, start) infinite;
  vertical-align: bottom;
  border-radius: 2px;
}

@keyframes cursor-blink {
  0%   { opacity: 1; }
  50%  { opacity: 0; }
  100% { opacity: 1; }
}

/* CTA Button */

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  margin-top: 1.2rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: #ffffff;
  background: linear-gradient(135deg, #00c4e7, #35f1ff);
  box-shadow: 0 8px 25px rgba(0, 196, 231, 0.45);
  transition: all 0.25s ease;
}

.cta-button:hover {
  box-shadow: 0 12px 35px rgba(0, 196, 231, 0.55);
  transform: translateY(-2px);
}

.cta-button:active {
  transform: translateY(0);
  box-shadow: 0 6px 18px rgba(0, 196, 231, 0.35);
}

/* Impressum */

.impressum {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 0.5rem;
}

.impressum h3 {
  font-size: 1rem;
  color: var(--text-main);
  margin: 1rem 0 0.3rem;
}

.impressum p {
  margin-bottom: 0.2rem;
}

/* Footer */

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.25rem 1.5rem 2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-main {
  text-align: left;
}

footer span {
  color: var(--primary);
}

.footer-cookie {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(6px);
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}

.footer-cookie-icon {
  font-size: 1.1rem;
  transform: rotate(-15deg);
  transition: transform 0.25s ease;
}

.footer-cookie-text {
  font-size: 0.78rem;
}

.footer-cookie:hover .footer-cookie-icon {
  transform: rotate(10deg) scale(1.05);
}

/* Light Theme Overrides */

body.light {
  background: linear-gradient(180deg, #f5f7fb, #ffffff);
  color: #111827;
}

body.light header {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88), transparent);
  border-bottom-color: rgba(15, 23, 42, 0.06);
}

body.light .nav-left {
  color: #6b7280;
}

body.light .nav-link {
  color: #6b7280;
}

body.light .nav-link:hover {
  color: #111827;
}

body.light .theme-toggle {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(148, 163, 184, 0.7);
  color: #4b5563;
}

body.light .theme-toggle:hover {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.35);
  color: #111827;
}

body.light .hero-logo-wrap {
  background: radial-gradient(circle at 50% 0%, rgba(0, 196, 231, 0.18), transparent 55%);
}

body.light .hero-logo-inner {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.45);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.15);
}

body.light .hero-tagline p,
body.light .section-subtitle,
body.light .contact-meta,
body.light .impressum,
body.light footer,
body.light .contact-label {
  color: #6b7280;
}

body.light .badge {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.5);
  color: #6b7280;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

body.light .card {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.5);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

body.light .card::before {
  opacity: 0.25;
}

body.light .contact-box {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.6);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

body.light .code-block {
  background: #0b1120;
  border-color: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
}

body.light .impressum h3 {
  color: #111827;
}

body.light footer {
  border-top-color: rgba(148, 163, 184, 0.5);
}

/* Pulse for nav dot */

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(0, 196, 231, 0.6);
  }
  50% {
    transform: scale(1.22);
    box-shadow: 0 0 16px rgba(0, 196, 231, 0.9);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(0, 196, 231, 0.6);
  }
}

/* Responsive */

@media (max-width: 800px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 880px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-right {
    gap: 0.75rem;
  }
  .hero-logo-inner img {
    max-width: 210px;
  }
  .section {
    padding-inline: 1.25rem;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-main {
    text-align: left;
  }
}
