/* Visuelle Grundlage: Figma-Präsentation und lokale Referenzen.
   Keine Gestaltungstokens von der veralteten Agenturwebsite.
   Originalassets und Ableitungen: siehe DESIGN.md und ASSETS.md. */
@font-face {
  font-family: Geakosa;
  src: url("assets/fonts/geakosa-regular.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Outfit;
  src: url("assets/fonts/outfit-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --background: #202020;
  --paper: #f2eee7;
  --ink: #111111;
  --secondary-ink: #51504d;
  --accent: #e50085;
  --focus: #a80062;
  font-family: Outfit, Arial, sans-serif;
  font-synthesis: none;
  color: var(--paper);
  background: var(--background);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; isolation: isolate; }
/* Die Originaltextur liegt ausschließlich im dekorativen Hintergrund. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("assets/grunge.webp") center / cover;
  opacity: .2;
  pointer-events: none;
}
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: rgb(229 0 133 / 15%); }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
::selection { color: var(--paper); background: #a80062; }
.brand-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  font: 400 clamp(7rem, 18vw, 22rem) / 1.25 Geakosa, Impact, sans-serif;
  color: rgb(242 238 231 / 3.5%);
}
.brand-backdrop span { white-space: nowrap; align-self: center; }
.page {
  position: relative;
  width: min(100% - 32px, 36rem);
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  padding-block: clamp(1rem, 3vh, 2rem) 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}
.header { display: flex; justify-content: center; padding-bottom: .4rem; }
.brand-logo { display: block; width: 12rem; max-width: 100%; height: auto; }
.card-layout { display: flex; flex-direction: column; gap: .75rem; }
.contact-card { position: relative; isolation: isolate; color: var(--ink); }
/* Lesbare Grundfläche, auch bevor die dekorative Papiergrafik geladen ist. */
.contact-card::after {
  content: "";
  position: absolute;
  inset: 24px;
  z-index: -2;
  background: var(--paper);
  pointer-events: none;
}
/* Neunteilige Original-Papiergrafik: Nur der dekorative Rand ist unregelmäßig.
   Inhalte haben Abstand zum Rand und werden niemals maskiert. */
.contact-card::before {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: -1;
  border: 24px solid transparent;
  border-image: url("assets/paper-03-white.webp") 100 200 110 130 fill / 24px / 0 stretch;
  filter: drop-shadow(0 5px 3px rgb(0 0 0 / 18%));
  pointer-events: none;
}
.paper { padding: 3rem; }
.intro { text-align: center; }
.intro h1 {
  margin: 0 0 1rem;
  font: 400 clamp(3rem, 6vw + 1rem, 4.6rem) / 1.02 Geakosa, Impact, "Arial Narrow", sans-serif;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.intro-subline { margin: 0; font-size: 1.0625rem; line-height: 1.5; }
.contact-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 5.5rem), 1fr));
  gap: 0 1.25rem;
  margin-top: 1.5rem;
  border-top: 1px solid rgb(17 17 17 / 25%);
  font-style: normal;
}
.contact-copy { display: flex; flex-direction: column; gap: .3rem; }
.contact-label { color: var(--secondary-ink); font-size: .8125rem; font-weight: 400; }
.action-links { margin-top: 0; }
.cta-preview { display: none; }
.card-link {
  min-width: 0;
  min-height: 4.5rem;
  padding: 1rem 0;
  font-size: 1.1875rem;
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.email-domain { display: inline-block; max-width: 100%; }
.resource-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid rgb(17 17 17 / 25%);
}
.resource-link > span:first-child { min-width: 0; }
.contact-link { align-items: flex-start; gap: .35rem; font-size: 1.0625rem; }
.contact-link .link-arrow { align-self: center; font-size: 22px; }
.link-arrow { flex-shrink: 0; color: var(--accent); font: 400 28px / 1 Arial, sans-serif; }
.agency-address { margin-top: 1.25rem; color: var(--secondary-ink); font-size: .8125rem; font-style: normal; line-height: 1.5; text-align: center; overflow-wrap: anywhere; }
.contact-save { min-width: 0; }
.save-contact {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .65rem;
  min-height: 2.75rem;
  padding: .5rem;
  font-size: .9375rem;
  line-height: 1.4;
  text-align: center;
}
.save-contact:focus-visible { outline-color: var(--paper); }
.qr-frame, .desktop-copy { display: none; }
.save-arrow { color: var(--accent); font: 400 24px / 1 Arial, sans-serif; }
.iphone-help { text-align: center; }
.iphone-help summary { display: flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .5rem; color: #d3cfca; font-size: .8125rem; line-height: 1.4; list-style: none; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.iphone-help summary::-webkit-details-marker { display: none; }
.iphone-help summary:focus-visible { outline: 3px solid var(--paper); outline-offset: 3px; }
.iphone-help-content { max-width: 22rem; margin: .5rem auto 0; padding: 1rem; border-top: 1px solid rgb(242 238 231 / 25%); }
.iphone-help-content p { margin: 0 0 1rem; color: #d3cfca; font-size: .875rem; line-height: 1.5; overflow-wrap: anywhere; }
.site-address { color: var(--paper); -webkit-user-select: all; user-select: all; }
.mobile-contact-qr { display: block; width: 14rem; max-width: 100%; height: auto; margin-inline: auto; }
.footer { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: 1.6rem; }
.footer a { display: inline-flex; align-items: center; min-height: 2.75rem; color: #d3cfca; font-size: .8125rem; }
.footer a:focus-visible { outline-color: var(--paper); }
.legal-links { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 1.25rem; }
@media (hover: hover) {
  .card-link:hover { background: rgb(242 238 231 / 35%); }
  .resource-link:hover > span:first-child, .save-contact:hover .save-copy { text-decoration: underline; text-underline-offset: .18em; }
  .footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
}
@media (prefers-reduced-motion: no-preference) {
  .link-arrow { transition: transform 150ms ease; }
  .resource-link:hover .link-arrow { transform: translate(2px, -2px); }
}
@media (max-width: 600px) {
  .page { gap: .75rem; padding-block: 1rem .5rem; }
  .brand-logo { width: 10rem; }
  .header { padding-bottom: .3rem; }
  .paper { padding: 40px 36px; }
  .intro h1 { font-size: clamp(2.4rem, 9vw + .6rem, 4rem); margin-bottom: .75rem; }
  .intro-subline { font-size: .9375rem; }
  .contact-links { margin-top: 1.15rem; gap: 0 1rem; }
  .card-link { font-size: 1rem; min-height: 4.25rem; padding-block: .85rem; }
  .resource-link { gap: .75rem; }
  .contact-link { gap: .25rem; }
  .agency-address { margin-top: 1rem; font-size: .75rem; }
  .footer { column-gap: 1.2rem; }
  .footer a { font-size: .75rem; }
  .legal-links { column-gap: 1rem; }
}
@media (max-width: 600px) and (max-height: 720px) {
  .page { padding-top: .75rem; gap: .5rem; }
  .brand-logo { width: 9rem; }
  .paper { padding-block: 36px; }
  .contact-links { margin-top: .875rem; }
}
@media (max-width: 360px) {
  .intro h1 { font-size: clamp(2.3rem, 8.5vw + .6rem, 3rem); }
}
@media (min-width: 601px) and (max-height: 800px) {
  .page { padding-block: 1rem .5rem; }
  .paper { padding-block: 2.5rem; }
  .intro h1 { font-size: 4rem; }
  .contact-links { margin-top: 1.25rem; }
}
@media (max-width: 899px) {
  .link-arrow, .save-arrow { display: none; }
}
@media (min-width: 900px) {
  .page { width: min(100% - 64px, 51rem); }
  .header, .footer { width: 36rem; max-width: 100%; }
  .card-layout { display: grid; grid-template-columns: minmax(0, 36rem) 12rem; gap: 3rem; align-items: center; }
  .save-contact { flex-direction: column; gap: 1rem; padding: 0; }
  .qr-frame { display: block; background: #fff; padding: .35rem; box-shadow: 5px 5px 0 var(--accent); }
  .qr-frame img { display: block; width: 100%; height: auto; }
  .desktop-copy { display: inline; }
  .mobile-copy, .save-arrow { display: none; }
  .iphone-help { display: none; }
  .save-copy { font-size: 1rem; }
}
@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  .cta-preview {
    display: block;
    position: fixed;
    z-index: 20;
    left: 0;
    top: 0;
    width: 248px;
    max-width: calc(100vw - 24px);
    padding: 6px;
    border: 2px solid var(--accent);
    border-radius: 12px;
    overflow: hidden;
    pointer-events: none;
    background: var(--ink);
    color: var(--paper);
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    text-align: left;
    line-height: 1.3;
  }
  .cta-preview img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
  .preview-caption { display: block; padding: .55rem .35rem .25rem; font-size: .75rem; font-weight: 400; overflow-wrap: anywhere; }
}
@media (forced-colors: active) {
  body::before, .brand-backdrop, .contact-card::before, .contact-card::after { display: none; }
  .contact-card { border: 1px solid CanvasText; color: CanvasText; }
  .card-link { border-bottom: 1px solid LinkText; }
  .qr-frame { forced-color-adjust: none; }
}
