/* ============================================================
   MITYVO – style.css
   CSS Custom Properties, Reset, Basis-Layout, Typografie
   ============================================================ */

/* ============================================================
   FONTS (self-hosted)
   ============================================================ */

@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/syne-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/syne-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/syne-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/syne-800.woff2') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-600.woff2') format('woff2');
}

:root {
  --bg:           #080B12;
  --surface:      #161618;
  --border:       #232327;
  --primary:      #A8B2C8;
  --accent:       #4F9CF9;
  --text:         #ECEEF2;
  --soft-cyan:    #67E8F9;
  --deep-blue:    #0B5CFF;
  --glass-bg:     rgba(22, 22, 24, 0.58);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glow-blue:    rgba(79, 156, 249, 0.22);
  --glow-cyan:    rgba(103, 232, 249, 0.16);

  --font-display: 'Syne', sans-serif;
  --font-body:    'Plus Jakarta Sans', sans-serif;

  --radius-sm:    8px;
  --radius-md:    12px;
  --radius-lg:    16px;
  --radius-xl:    24px;

  --nav-height:   76px;
  --container-w:  1200px;
  --section-pad:  120px;
  --section-pad-m: 64px;
}

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

html {
  background-color: #080B12;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img, svg {
  display: block;
  max-width: 100%;
}

ul, ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

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

/* Typografie */
h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 1.08;
  color: var(--text);
  letter-spacing: -0.02em;
}

h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.01em;
}

h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.3;
  color: var(--text);
}

h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
}

p {
  color: var(--primary);
  line-height: 1.7;
}

/* Subpage Background */
.subpage-bg {
  background-color: #080B12;
  background-image:
    radial-gradient(
      ellipse 75% 50% at 50% -5%,
      rgba(79, 156, 249, 0.13) 0%,
      transparent 65%
    ),
    radial-gradient(
      ellipse 40% 30% at 50% 0%,
      rgba(103, 232, 249, 0.06) 0%,
      transparent 50%
    );
  min-height: 100vh;
}

/* Section Base */
section {
  padding: var(--section-pad) 0;
  position: relative;
  background: transparent;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--primary);
  max-width: 600px;
  margin: 0 auto;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  gap: 24px;
}

.cards-3 {
  grid-template-columns: repeat(3, 1fr);
}

.cards-2 {
  grid-template-columns: repeat(2, 1fr);
}

.cards-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Section Glow Divider */
section + section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  max-width: 600px;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--border) 30%,
    var(--border) 70%,
    transparent
  );
  pointer-events: none;
}

/* ============================================================
   LEGAL PAGES (Impressum, Datenschutz)
   ============================================================ */

.legal-page {
  padding: 120px 0 80px;
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
}

.legal-content h1 {
  font-family: 'Syne', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: #ECEEF2;
  margin-bottom: 48px;
  letter-spacing: -.02em;
}

.legal-content h2 {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #ECEEF2;
  margin: 36px 0 10px;
}

.legal-content p,
.legal-content li {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  color: #A8B2C8;
  line-height: 1.8;
  margin-bottom: 10px;
}

.legal-content a {
  color: #4F9CF9;
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

.legal-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .legal-page { padding: 80px 0 60px; }
  .legal-content h1 { font-size: 32px; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  :root {
    --section-pad: 96px;
  }

  .cards-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad: var(--section-pad-m);
  }

  .container {
    padding: 0 20px;
  }

  .cards-3,
  .cards-2,
  .cards-4 {
    grid-template-columns: 1fr;
  }

  .section-header {
    margin-bottom: 40px;
  }
}
