:root {
  --bg-mint: #DEF2E6;
  --bg-beige: #F5E9D7;
  --bg-raised: #FBFAF4;
  --ink: #1F2A28;
  --ink-soft: #5C6B63;
  --line: rgba(31, 42, 40, 0.14);
  --amber: #C98A46;
  --accent: #3E7C5B;
  --sans: "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
:root[data-theme="dark"] { /* page is intentionally light-pastel by default; kept for contract compliance */ }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-image:
    linear-gradient(rgba(31,42,40,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,42,40,0.06) 1px, transparent 1px),
    linear-gradient(to bottom left, var(--bg-mint), var(--bg-beige));
  background-size: 28px 28px, 28px 28px, 100% 100%;
  background-attachment: scroll, scroll, fixed;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: clamp(20px, 5vw, 56px);
  padding-right: clamp(20px, 5vw, 56px);
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(56px, 10vw, 108px) 0 clamp(40px, 6vw, 64px);
  text-align: center;
}
.wordmark {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  margin: 0 0 22px;
}
h1 {
  font-size: clamp(1.9rem, 4.2vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  max-width: 20ch;
  margin-left: auto;
  margin-right: auto;
}
.hero p.lede {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 46ch;
  margin: 0 auto;
}

/* ---------- Marquee ---------- */
.marquee-section { padding: clamp(20px, 5vw, 40px) 0 clamp(56px, 8vw, 96px); }
.marquee-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
          mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: clamp(18px, 3vw, 28px);
  padding: 14px 0;
  animation: scrollLeft 42s linear infinite;
}
.marquee-track:hover, .marquee-track:focus-within { animation-play-state: paused; }
@keyframes scrollLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee-wrap { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee-track .dup { display: none; }
}

.screen-card {
  display: flex;
  flex-direction: column;
  flex: none;
  width: 300px;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 14px 32px -14px rgba(31,42,40,0.28), 0 2px 6px rgba(31,42,40,0.10);
  transition: transform .25s ease, box-shadow .25s ease;
  background: var(--bg-raised);
}
@media (min-width: 640px) { .screen-card { width: 340px; } }
.screen-card:hover, .screen-card:focus-visible {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 22px 42px -16px rgba(31,42,40,0.32), 0 2px 6px rgba(31,42,40,0.14);
}

.screen-chrome {
  height: 26px;
  background: #E7E4DC;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
}
.screen-chrome .dot { width: 6px; height: 6px; border-radius: 50%; background: #B9B4A6; }
.screen-chrome .url {
  flex: 1;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: #6B6659;
  letter-spacing: 0.01em;
}

.screen-body { padding: 18px 18px 16px; min-height: 196px; flex: 1; display: flex; flex-direction: column; }
.screen-logo-img { height: 46px; width: auto; margin: 0 0 12px; display: block; }
.screen-tag { font-family: var(--mono); font-size: 0.68rem; margin: 0 0 8px; opacity: 0.85; }
.screen-title { font-size: 1.02rem; line-height: 1.28; margin: 0 0 14px; font-weight: 600; }
.screen-cta {
  margin-top: auto;
  display: inline-flex;
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 0.68rem;
  padding: 6px 12px;
  border-radius: 999px;
}

/* Herzfotos card */
.card-herzfotos .screen-body { background: var(--bg-beige); color: #5A4438;}
.card-herzfotos .screen-tag { color: #9C6B57; font-style: italic; font-family: Georgia, "Times New Roman", serif; }
.card-herzfotos .screen-title { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 1.2rem; }
.card-herzfotos .screen-cta { background: #C97B63; color: #FBF1E9; }

/* Grundriss card */
.card-grundriss .screen-body {
  background:
    linear-gradient(#00000008 1px, transparent 1px),
    linear-gradient(90deg, #00000008 1px, transparent 1px),
    #F3F2ED;
  background-size: 16px 16px, 16px 16px, auto;
  color: #1A2233;
}
.card-grundriss .screen-tag { color: #52596A; }
.card-grundriss .screen-title { font-family: var(--sans); margin-bottom: 10px; }
.card-grundriss .screen-sub { font-size: 0.85rem; color: #52596A; margin: 0 0 16px; }
.card-grundriss .sketch { margin-bottom: 14px; }
.card-grundriss .screen-cta { background: #AE4429; color: #FBF3EE; }
.card-grundriss .screen-body { padding: 8px 8px 16px; }

/* Creativ card */
.card-creativ .screen-body { background: var(--bg-mint); color: #3B2A1C; }
.card-creativ .screen-tag { color: #3E6B3F; }
.card-creativ .swatches { display: flex; gap: 6px; margin-bottom: 14px; }
.card-creativ .swatches span {
  width: 30px; height: 30px; border-radius: 4px;
  border: 1px solid rgba(70,51,35,0.3);
  background: repeating-linear-gradient(115deg, rgba(70,51,35,0.12) 0 2px, transparent 2px 5px), #F3ECDD;
}
.card-creativ .screen-cta { background: #3E6B3F; color: #F3F7EE; }

/* ---------- Real, accessible navigation ---------- */
section.links { padding: 0 0 clamp(56px, 8vw, 96px); }
.link-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.link-row {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  padding: 20px 22px;
  background: var(--bg-raised);
  text-decoration: none;
  color: var(--ink);
  transition: background .15s;
}
.link-row:hover, .link-row:focus-visible { background: #F1E9D6; }
.link-row-main { display: flex; flex-direction: column; gap: 4px; }
.link-row-title { font-weight: 600; font-size: 1.02rem; display: flex; align-items: center; gap: 8px; }
.link-row-title svg, .link-row-title img.link-row-icon { flex: none; }
.link-row-icon { height: 18px; width: auto; }
.link-row-desc { color: var(--ink-soft); font-size: 0.92rem; }
.link-row-domain { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-soft); white-space: nowrap; }

footer { border-top: 1px solid var(--line); padding: 26px 0 calc(26px + env(safe-area-inset-bottom, 0px)); }
.footer-row { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-soft); text-align: center; }

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

/* --- ISOLIERTER FIX: NUR FÜR DIE BEIDEN SPECIFISCHEN LOGOS --- */

/* Wirkt sich ausschließlich auf das Herzfotos- und das Creativ-Logo aus */
img.screen-logo-img[alt="Logo Fotografie mit Herz"],
img.screen-logo-img[alt="Logo creativ – Mit Herz gemacht"] {
    width: 100% !important;
    height: auto !important;
    max-width: 240px !important;    /* Behält die von dir gewünschte maximale Breite */
    max-height: none !important;    /* Verhindert das Stauchen der Höhe */
    object-fit: contain !important; /* Hält die Proportionen perfekt sauber */
    display: block !important;
    margin: 0 auto !important;      /* Zentriert die Bilder sauber in ihren Boxen */
}

/* Grundriss-Logo (jetzt inline SVG statt PNG): füllt die volle Kartenbreite,
   ohne toten Rand wie bei einer exportierten Bilddatei */
svg.grundriss-mark {
    width: 100% !important;
    height: auto !important;
    max-width: none !important;
    display: block !important;
    margin: 0 auto 20px !important;
}

.screen-body {
    overflow: hidden;                 /* Schließt alle inneren Elemente sauber ein */
    /* display bleibt flex (aus der Grundregel), damit .screen-cta { margin-top: auto }
       die CTA bei jeder Karte im gleichen Abstand ans untere Kartenende drückt */
}
