/* =============================================================
   Digitalermacher - Digitale Visitenkarte
   Designsystem 1:1 abgeleitet von https://digitalermacher.de
   Tokens: --color-accent (Gold), Schwarz-Gold-Weiss, Kalam + Inter
   ============================================================= */

@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/inter-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Kalam';
  src: url('assets/fonts/kalam-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Kalam';
  src: url('assets/fonts/kalam-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-accent:        #d0b210;
  --color-accent-light:  #ecd048;
  --color-accent-dark:   #a89008;
  --color-black:         #000000;
  --color-white:         #ffffff;
  --color-foreground:    #0a0a0a;
  --color-neutral-50:    #fafafa;
  --color-neutral-100:   #f5f5f5;
  --color-neutral-200:   #e5e5e5;
  --color-neutral-300:   #d4d4d4;
  --color-neutral-400:   #a1a1a1;
  --color-neutral-500:   #737373;
  --color-neutral-600:   #525252;
  --color-neutral-700:   #404040;
  --color-neutral-900:   #171717;
  --color-neutral-950:   #0a0a0a;

  --font-sans:   'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-kalam:  'Kalam', cursive;

  --max-w-7xl: 80rem;
  --max-w-4xl: 56rem;
  --max-w-3xl: 48rem;
  --max-w-2xl: 42rem;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #fff;
  color: var(--color-foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color .15s ease;
}

p { margin: 0; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.025em; }

/* ---------- Skip Link --------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: -9999px;
}
.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: var(--color-accent);
  color: #000;
  padding: .5rem 1rem;
  border-radius: 6px;
  font-weight: 500;
}

/* ---------- Header (sticky) --------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 2px solid rgba(208, 178, 16, .6);
}

.site-header__inner {
  max-width: var(--max-w-7xl);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (max-width: 640px) {
  .site-header__inner { padding: .75rem 1rem; }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .125rem;
  color: #000;
  min-width: 0;
  flex-shrink: 1;
}

.brand__wordmark {
  font-family: var(--font-kalam);
  font-weight: 700;
  letter-spacing: -.025em;
  font-size: 2.2rem;
  line-height: 1;
  color: #000;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .brand__wordmark { font-size: 2.5rem; }
}

.brand__seal {
  width: auto;
  height: 3rem;
  flex-shrink: 0;
  transform: rotate(-25deg);
}

@media (min-width: 640px) {
  .brand__seal { height: 3.5rem; }
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #000;
  color: #fff;
  padding: .5rem 1.25rem;
  border-radius: 9999px;
  font-size: .9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background .15s ease;
}
.header-cta:hover { background: var(--color-accent-dark); }

@media (max-width: 480px) {
  .header-cta { padding: .4rem .9rem; font-size: .82rem; }
  .header-cta__label-long { display: none; }
}

/* ---------- Hero -------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8rem 1rem 5rem;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/digi-tech.webp');
  background-size: cover;
  background-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .7);
}

.hero__inner {
  position: relative;
  z-index: 10;
  max-width: var(--max-w-4xl);
  width: 100%;
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__photo {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, .9);
  box-shadow:
    0 0 0 3px var(--color-accent),
    0 25px 50px -12px rgba(0, 0, 0, .8);
  background: var(--color-neutral-100);
}

@media (min-width: 768px) {
  .hero__photo { width: 200px; height: 200px; }
}

.hero__eyebrow {
  margin-top: 1.75rem;
  font-size: .8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--color-accent-light);
}

.hero__name {
  margin-top: .6rem;
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

@media (min-width: 768px) { .hero__name { font-size: 2.25rem; } }

.hero__headline {
  margin-top: 2rem;
  font-family: var(--font-kalam);
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1.15;
  letter-spacing: -.02em;
}

@media (min-width: 640px) { .hero__headline { font-size: 3.4rem; } }
@media (min-width: 768px) { .hero__headline { font-size: 4.4rem; } }
@media (min-width: 1024px) { .hero__headline { font-size: 5.2rem; } }

.hero__subline {
  margin: 1.4rem auto 0;
  max-width: 36rem;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.6;
  color: rgba(255, 255, 255, .85);
}

@media (min-width: 768px) { .hero__subline { font-size: 1.25rem; } }

.hero__cta {
  margin-top: 2.5rem;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  border: 2px solid var(--color-accent-light);
  background: #fff;
  color: #000;
  padding: .85rem 2rem;
  font-weight: 700;
  border-radius: 9999px;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.hero__cta:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}
.hero__cta svg { width: 20px; height: 20px; }

/* ---------- Section --------------------------------------- */
.section {
  border-top: 2px solid rgba(208, 178, 16, .6);
  padding: 5rem 1rem;
}

@media (min-width: 768px) {
  .section { padding: 8rem 1rem; }
}

.section--white { background: #fff; }
.section--gray  { background: var(--color-neutral-50); }
.section--dark  { background: var(--color-neutral-950); color: #fff; }

.section__inner {
  max-width: var(--max-w-4xl);
  margin: 0 auto;
  padding: 0 .5rem;
}

.section__inner--narrow { max-width: var(--max-w-2xl); }
.section__inner--wide   { max-width: var(--max-w-7xl); }

.section__eyebrow {
  text-align: center;
  font-size: .8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--color-accent);
}

.section__title {
  margin-top: .5rem;
  text-align: center;
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -.025em;
}
@media (min-width: 768px) { .section__title { font-size: 2.25rem; } }

.section__lead {
  margin: 1rem auto 0;
  max-width: 36rem;
  text-align: center;
  color: var(--color-neutral-600);
  font-size: 1.05rem;
  line-height: 1.6;
}
.section--dark .section__lead { color: var(--color-neutral-400); }

/* ---------- Kontaktraster --------------------------------- */
.contacts {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: .9rem;
}

.contacts a {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1.1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--color-neutral-200);
  border-radius: .75rem;
  color: var(--color-foreground);
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.contacts a:hover {
  border-color: var(--color-accent);
  background: var(--color-neutral-50);
  transform: translateY(-1px);
}

.contacts svg {
  width: 22px; height: 22px; flex: 0 0 auto;
  color: var(--color-accent);
}

.contacts .label {
  display: block;
  font-size: .75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-neutral-500);
}
.contacts .value {
  font-weight: 600;
  font-size: 1rem;
  word-break: break-word;
}

.section__cta-row {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}

/* ---------- Buttons --------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  padding: .85rem 2rem;
  border-radius: 9999px;
  border: 0;
  cursor: pointer;
  transition: background .15s ease;
}
.btn-primary:hover { background: var(--color-accent-dark); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary svg { width: 20px; height: 20px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--color-neutral-700);
  font-weight: 500;
}
.btn-ghost:hover { color: var(--color-accent); }

/* ---------- Formular -------------------------------------- */
.form-card {
  margin-top: 3rem;
  border: 1px solid var(--color-neutral-200);
  background: var(--color-neutral-50);
  border-radius: 1rem;
  padding: 1.25rem;
}
@media (min-width: 640px) { .form-card { padding: 2rem; } }
@media (min-width: 768px) { .form-card { padding: 2.5rem; } }

.field { margin-bottom: 1.1rem; }

.field label {
  display: block;
  font-size: .875rem;
  font-weight: 500;
  margin-bottom: .35rem;
  color: var(--color-neutral-700);
}

.field input,
.field textarea {
  width: 100%;
  padding: .65rem .9rem;
  font: inherit;
  font-size: .95rem;
  color: var(--color-foreground);
  background: #fff;
  border: 1px solid var(--color-neutral-300);
  border-radius: .5rem;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus,
.field textarea:focus {
  border-color: #000;
  box-shadow: 0 0 0 3px rgba(208, 178, 16, .25);
}
.field textarea {
  min-height: 110px;
  resize: vertical;
  font-family: var(--font-sans);
}

.privacy-hint {
  margin: 1rem 0 1.5rem;
  font-size: .8125rem;
  color: var(--color-neutral-500);
  line-height: 1.5;
}
.privacy-hint a {
  color: var(--color-neutral-700);
  text-decoration: underline;
}
.privacy-hint a:hover { color: var(--color-accent-dark); }

.form-actions { display: flex; justify-content: center; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.alert {
  margin-top: 1.25rem;
  padding: .9rem 1rem;
  border-radius: .5rem;
  font-size: .9rem;
  display: none;
  line-height: 1.5;
}
.alert.is-visible { display: block; }
.alert--success { background: #ecfdf3; color: #066c3a; border: 1px solid #a7f0c7; }
.alert--error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ---------- Footer --------------------------------------- */
.site-footer {
  border-top: 2px solid rgba(208, 178, 16, .6);
  background: var(--color-neutral-950);
  color: var(--color-neutral-400);
}

.site-footer__inner {
  max-width: var(--max-w-7xl);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .site-footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.site-footer__brand {
  font-family: var(--font-kalam);
  font-weight: 700;
  font-size: 1.125rem;
  color: #fff;
}
.site-footer__copy { margin-top: .25rem; font-size: .875rem; color: var(--color-neutral-500); }

.site-footer__nav { display: flex; gap: 1.5rem; font-size: .875rem; }
.site-footer__nav a { transition: color .15s ease; }
.site-footer__nav a:hover { color: var(--color-accent-light); }

/* ---------- Legal-Seiten ---------------------------------- */
.legal-section {
  padding: 8rem 1rem 5rem;
  max-width: var(--max-w-3xl);
  margin: 0 auto;
}
@media (min-width: 768px) { .legal-section { padding: 10rem 1.5rem 8rem; } }

.legal-section h1 {
  font-size: 1.91rem;
  font-weight: 700;
  letter-spacing: -.025em;
  margin-bottom: 1rem;
}

.legal-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2rem 0 .5rem;
  letter-spacing: -.02em;
}

.legal-section h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.4rem 0 .25rem;
}

.legal-section p,
.legal-section ul {
  margin: .5rem 0 1rem;
  color: var(--color-neutral-700);
  line-height: 1.65;
}
.legal-section ul { padding-left: 1.25rem; }
.legal-section a { color: var(--color-accent-dark); text-decoration: underline; }
.legal-section a:hover { color: var(--color-accent); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-bottom: 1.25rem;
  color: var(--color-neutral-500);
  font-size: .875rem;
}
.back-link:hover { color: var(--color-accent-dark); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
