/* ============================================================
   style.css – Philipp David Pries
   Shared styles + automatic Dark Mode via prefers-color-scheme
   ============================================================ */

/* ─── Fonts ─── */
@font-face {
  font-family: 'Space Grotesk';
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  src: url('fonts/space-grotesk-latin-300-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Grotesk';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('fonts/space-grotesk-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Grotesk';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('fonts/space-grotesk-latin-500-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Grotesk';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('fonts/space-grotesk-latin-600-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Grotesk';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('fonts/space-grotesk-latin-700-normal.woff2') format('woff2');
}

/* ─── Light Mode (Default) ─── */
:root {
  --bg:          #fafafa;
  --text-primary: #111111;
  --text-secondary:#555555;
  --text-muted:   #777777;
  --accent:       #0a66c2;
  --accent-hover: #004182;
  --dot-color:    rgba(0, 0, 0, 0.03);
  --badge-bg:     rgba(10, 102, 194, 0.06);
  --badge-border: rgba(10, 102, 194, 0.12);
  --cta-shadow:   rgba(10, 102, 194, 0.15);
  --font-main:    'Space Grotesk', system-ui, sans-serif;
  --statement-gap: 1.2rem;
}

/* ─── Dark Mode ─── */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:          #0e0e10;
    --text-primary: #e8e8ec;
    --text-secondary:#a0a0a8;
    --text-muted:   #6e6e76;
    --accent:       #4d9de0;
    --accent-hover: #6db3f0;
    --dot-color:    rgba(255, 255, 255, 0.025);
    --badge-bg:     rgba(77, 157, 224, 0.08);
    --badge-border: rgba(77, 157, 224, 0.18);
    --cta-shadow:   rgba(77, 157, 224, 0.2);
  }
}






/* ─── Reset & Base ─── */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100dvh;
  overflow-x: hidden;
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01" on;
  text-rendering: optimizeLegibility;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, var(--dot-color) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: -1;
}

/* ─── Layout ─── */
main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 100dvh;
  padding: clamp(1.5rem, 5vh, 3rem) clamp(1rem, 5vw, 2rem);
  text-align: center;
  gap: clamp(0.8rem, 3vh, 1.5rem);
}

/* ─── Typografie ─── */
h1 {
  font-size: clamp(2rem, 7vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.name {
  font-size: clamp(2.2rem, 8vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.subtitle {
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.roles {
  font-size: clamp(0.85rem, 3vw, 1.1rem);
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.statement {
  font-size: clamp(1rem, 3.5vw, 1.25rem);
  line-height: 1.5;
  color: var(--text-primary);
  max-width: 90%;
}

.twist {
  display: block;
  margin-top: var(--statement-gap);
  font-size: 0.9em;
  color: var(--text-muted);
  font-style: italic;
}

/* ─── Content-Container (Impressum / Datenschutz) ─── */
.impressum-content,
.privacy-content {
  text-align: left;
  max-width: 480px;
  width: 100%;
}

.privacy-content {
  max-width: 520px;
}

.impressum-content p,
.privacy-content p {
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.impressum-content p:last-child,
.privacy-content p:last-child {
  margin-bottom: 0;
}

.impressum-content strong,
.privacy-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.privacy-content ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1rem 0;
}

.privacy-content ul li {
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  line-height: 1.7;
  color: var(--text-secondary);
  padding-left: 1.4em;
  position: relative;
  margin-bottom: 0.35rem;
}

.privacy-content ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

/* ─── Shield Badge (Datenschutz) ─── */
.shield-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  border-radius: 8px;
  padding: 0.75rem 1.2rem;
  margin: 0.5rem 0;
}

.shield-badge svg {
  width: 1.3em;
  height: 1.3em;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.shield-badge span {
  font-size: clamp(0.85rem, 2.5vw, 0.95rem);
  font-weight: 500;
  color: var(--text-primary);
  text-align: left;
}

/* ─── Links & CTA ─── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: clamp(0.85rem, 2.5vw, 0.95rem);
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
  margin-top: 0.5rem;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--accent-hover);
}

.back-link svg {
  width: 1em;
  height: 1em;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.linkedin-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.8rem;
  background-color: var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  border-radius: 8px;
  transition: background-color 0.2s ease, transform 0.1s ease;
  box-shadow: 0 2px 8px var(--cta-shadow);
  margin-top: 0.3rem;
}

.linkedin-cta:hover,
.linkedin-cta:focus-visible {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
}

/* ─── Award Icon ─── */
.award-icon {
  width: 1.1em;
  height: 1.1em;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin: 0 0.15em;
}

/* ─── Footer ─── */
footer {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  z-index: 10;
}

footer a {
  text-decoration: none;
  color: inherit;
  opacity: 0.5;
  transition: opacity 0.3s ease, color 0.3s ease;
}

footer a:hover {
  opacity: 1;
  color: var(--text-primary);
}

.footer-sep {
  margin: 0 0.35em;
}

/* ─── Responsive ─── */
@media (min-width: 768px) {
  main {
    max-width: 820px;
    margin: 0 auto;
    padding: 3rem 2rem;
    gap: 1.8rem;
  }
  h1 { font-size: 3.2rem; }
  .name { font-size: 3.8rem; }
  .subtitle { font-size: 1.05rem; }
  .roles { font-size: 1.15rem; }
  .statement { font-size: 1.3rem; max-width: 68%; }
  .impressum-content p,
  .privacy-content p { font-size: 1.05rem; }
  .privacy-content ul li { font-size: 1.05rem; }
  .linkedin-cta { padding: 1rem 2.4rem; font-size: 1.1rem; }
}

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
  .back-link,
  footer a,
  .linkedin-cta {
    transition: none;
  }
}
