/* =============================================================================
   pixelwerk.media — Medienagentur in Friedrichshafen am Bodensee
   Konzept, Gestaltung, Text und Umsetzung dieser Website: pixelwerk.media
   https://www.pixelwerk.media · info@pixelwerk.media
   Alle Rechte an Gestaltung und Quelltext liegen bei pixelwerk.media.
   ============================================================================= */

:root {

  --font-display: 'ProjektDisplay', Georgia, 'Times New Roman', serif;
  --font-sans: 'ProjektSans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --bg:            #FFFFFF;
  --surface:       #F5F4F2;
  --surface-2:     #EBEAE7;
  --text:          #1A1A1A;
  --text-muted:    #5A5A5A;
  --border:        rgba(26, 26, 26, 0.12);
  --border-strong: rgba(26, 26, 26, 0.28);
  --accent:        #1A1A1A;
  --accent-text:   #1A1A1A;
  --accent-hover:  #000000;
  --on-accent:     #FFFFFF;
  --focus:         #0B57D0;
  --error:         #B3261E;
  --success:       #146C2E;

  --radius: 4px;
  --radius-pill: 999px;
  --radius-none: 0;
}

:root {

  --sp-1:   4px;
  --sp-2:   8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  24px;
  --sp-6:  32px;
  --sp-7:  48px;
  --sp-8:  64px;
  --sp-9:  96px;
  --sp-10:128px;

  --fs-label: 0.75rem;
  --fs-sm:    0.875rem;
  --fs-base:  1rem;
  --fs-md:    1.25rem;
  --fs-lg:    clamp(1.25rem, 1.05rem + 1.1vw, 1.5625rem);
  --fs-xl:    clamp(1.5rem,  1.2rem  + 1.9vw, 2.44rem);
  --fs-2xl:   clamp(1.75rem, 1.25rem + 2.6vw, 3.05rem);
  --fs-3xl:   clamp(2rem,    1.4rem  + 3vw,   3.81rem);
  --fs-4xl:   clamp(2.5rem,  1.6rem  + 4vw,   4.77rem);

  --lh-tight: 1.1;
  --lh-heading: 1.2;
  --lh-body: 1.65;
  --ls-tight: -0.02em;
  --ls-label: 0.2em;

  --measure: 65ch;

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --nav-h: 80px;

  --t-fast: 0.3s;
  --t-slow: 0.6s;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

}

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

* { margin: 0; }

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

}

[id] { scroll-margin-top: calc(var(--nav-h) + var(--sp-4)); }

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, p, li, dd, dt { overflow-wrap: break-word; }

.card p, .hyphens { hyphens: auto; }

@media (max-width: 600px) {
  p, li, dd, dt { hyphens: auto; }
}

ul[role='list'], ol[role='list'] { list-style: none; padding: 0; }

a { color: inherit; }

button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: var(--lh-heading);
  text-wrap: balance;
}

h1 { font-size: var(--fs-3xl); line-height: var(--lh-tight); letter-spacing: var(--ls-tight); }
h2 { font-size: var(--fs-2xl); letter-spacing: var(--ls-tight); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }

p, li { max-width: var(--measure); }
p + p { margin-top: var(--sp-4); }

.lead {
  font-size: var(--fs-md);
  color: var(--text-muted);
  max-width: 55ch;
}

.text-muted { color: var(--text-muted); }

.label {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: var(--sp-4);
}

.label--line::before {
  content: '';
  width: 24px;
  height: 1.5px;
  background: currentColor;
  flex: 0 0 auto;
}

::selection { background: var(--accent); color: var(--on-accent); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--sp-7); }

@media (min-width: 768px) { .section { padding-block: var(--sp-8); } }
@media (min-width: 1024px) { .section { padding-block: var(--sp-9); } }

.section--hero { padding-block: var(--sp-8) var(--sp-7); }
@media (min-width: 1024px) { .section--hero { padding-block: var(--sp-10) var(--sp-9); } }

.grid {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 280px), 100%), 1fr));
}

.stack > * + * { margin-top: var(--sp-4); }
.stack--lg > * + * { margin-top: var(--sp-6); }

.split {
  display: grid;
  gap: var(--sp-6);
  align-items: center;
}
@media (min-width: 768px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--sp-7); }
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: var(--sp-2);
  left: var(--sp-2);
  z-index: 100;
  padding: var(--sp-3) var(--sp-4);
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--radius);
  transform: translateY(-200%);
  transition: transform var(--t-fast) var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

:focus:not(:focus-visible) { outline: none; }

[disabled], .is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 44px;
  padding: var(--sp-4) var(--sp-6);
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease);
}

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn--primary:active { transform: translateY(0); }

.btn--secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--secondary:hover { border-color: var(--accent); background: var(--surface); }

.btn .arrow,
.link-arrow .arrow { transition: transform var(--t-fast) var(--ease); }
.btn:hover .arrow,
.link-arrow:hover .arrow { transform: translateX(4px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 44px;
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.link-arrow:hover { border-bottom-color: currentColor; }

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); }

.card__media { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card__body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }
.card__body > .link-arrow { margin-top: auto; }

.card--link { position: relative; }
.card--link a::after { content: ''; position: absolute; inset: 0; }

.field { display: flex; flex-direction: column; gap: var(--sp-2); }

.field label {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: var(--sp-3) var(--sp-4);
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--t-fast) var(--ease);

}
.field input:hover,
.field textarea:hover { border-color: var(--border-strong); }

.field textarea { min-height: 140px; resize: vertical; }

.field input::placeholder,
.field textarea::placeholder { color: var(--text-muted); opacity: 1; }

.field[data-state='error'] input,
.field[data-state='error'] textarea { border-color: var(--error); }

.field__hint { font-size: var(--fs-sm); color: var(--text-muted); }
.field__error { font-size: var(--fs-sm); color: var(--error); }

.required { color: var(--error); }

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

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  height: var(--nav-h);

  padding-inline: max(var(--gutter), (100% - var(--container)) / 2 + var(--gutter));
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast) var(--ease);
}

.nav.is-scrolled { border-bottom-color: var(--border); }

.nav__logo { display: flex; align-items: center; }
.nav__logo img { height: 32px; width: auto; }

.nav__links {
  display: none;
  align-items: center;
  gap: var(--sp-6);
  list-style: none;
}
.nav__links a {
  position: relative;
  display: inline-block;
  padding-block: var(--sp-3);
  font-size: var(--fs-sm);
  text-decoration: none;
}

.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: var(--sp-1);
  width: 0; height: 1.5px;
  background: currentColor;
  transition: width var(--t-fast) var(--ease);
}
.nav__links a:hover::after,
.nav__links a[aria-current='page']::after { width: 100%; }

.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .nav__links { display: flex; }
  .nav__toggle { display: none; }
}

@media (max-width: 600px) {
  :root { --nav-h: 64px; }

  .nav { gap: var(--sp-3); padding-inline: var(--sp-4); }
  .nav__logo img { height: 26px; }

  .nav .btn {
    min-height: 40px;
    padding: var(--sp-2) var(--sp-3);
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
    white-space: nowrap;
  }
  .nav .btn .arrow { display: none; }

  .nav__toggle { width: 40px; height: 40px; flex: 0 0 auto; }
}

.nav__panel {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 49;
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  padding: var(--sp-6) var(--gutter);
  background: var(--bg);
  overflow-y: auto;
}
.nav__panel[hidden] { display: none; }
.nav__panel a { font-size: var(--fs-md); text-decoration: none; padding-block: var(--sp-2); }

@media (min-width: 1024px) { .nav__panel { display: none; } }

.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-block: var(--sp-8) var(--sp-6);
}

.footer__cols {
  display: grid;
  gap: var(--sp-6);
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
}

.footer h2, .footer h3 {
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: var(--sp-4);
}

.footer ul { list-style: none; display: flex; flex-direction: column; gap: var(--sp-3); }
.footer a { text-decoration: none; color: var(--text-muted); }
.footer a:hover { color: var(--text); }

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  justify-content: space-between;
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t-slow) var(--ease),
              transform var(--t-slow) var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

.js .reveal[data-delay='1'] { transition-delay: 0.15s; }
.js .reveal[data-delay='2'] { transition-delay: 0.30s; }
.js .reveal[data-delay='3'] { transition-delay: 0.45s; }
.js .reveal[data-delay='4'] { transition-delay: 0.60s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal { opacity: 1 !important; transform: none !important; }
}

@media print {
  .nav, .nav__panel, .skip-link, .btn { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a[href^='http']::after { content: ' (' attr(href) ')'; font-size: 9pt; }
  .section { padding-block: 12pt; }
}
