/* ==========================================================
   illegalefarbenmusik.de – Stylesheet
   Verwandt mit illegalefarben.de (gleiche Schrift, gleiche Abschnitts-Titel),
   aber hell und orange statt schwarz und magenta.
   Farben und Abstände zentral hier oben ändern.
   ========================================================== */

:root {
  --bg: #f3efe7;              /* Papier */
  --surface: #fbf9f4;
  --fg: #171513;
  --muted: #6b655c;
  --line: #d8d0c2;
  --accent: #e8480f;          /* Orange aus dem alten IF-Logo */
  --accent-ink: #b5380a;      /* dunkleres Orange für Text auf hellem Grund (besser lesbar) */
  --gap: clamp(12px, 1.6vw, 20px);
  --max: 1240px;
  --pad: clamp(16px, 4vw, 40px);
  --font: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
}

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

html {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--bg);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-ink); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--fg); color: var(--bg); padding: 8px 12px; z-index: 100;
}
.skip-link:focus { left: 8px; }

/* ---------- Logo (IF mit zwei Balken, als SVG direkt im HTML) ---------- */
.mark { width: 30px; height: auto; flex: none; }
.mark rect { fill: currentColor; }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(243, 239, 231, .88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 58px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  white-space: nowrap;
}
.brand .mark { color: var(--accent); }
.brand:hover { color: var(--fg); }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 28px); font-size: .9375rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--fg); }

/* ---------- Oben: Name auf Orange ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--accent) url("../img/hintergrund.jpg") center / cover no-repeat;
  color: #fff;
}
.hero::after {               /* leicht abdunkeln, damit weiße Schrift überall gut lesbar ist */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(90, 20, 0, .38) 0%, rgba(90, 20, 0, .12) 60%, rgba(90, 20, 0, 0) 100%);
  pointer-events: none;
}
.hero .wrap {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: clamp(24px, 5vw, 80px);
  min-height: min(78vh, 680px);
  padding-top: clamp(56px, 9vw, 120px);
  padding-bottom: clamp(36px, 6vw, 72px);
}
.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 9.6vw, 8.75rem);
  font-weight: 800;
  line-height: .86;
  letter-spacing: -.045em;
  text-transform: uppercase;
}
.hero .lead {
  margin: clamp(18px, 2.4vw, 30px) 0 0;
  max-width: 40ch;
  font-size: clamp(1.1rem, 1.9vw, 1.45rem);
  line-height: 1.35;
  font-weight: 500;
}
.hero .mark { width: clamp(120px, 17vw, 230px); color: #fff; opacity: .92; }

/* ---------- Abschnitte ---------- */
.section { padding-top: clamp(56px, 8vw, 110px); }
.section:last-of-type { padding-bottom: clamp(64px, 9vw, 120px); }
.section-title {
  display: flex; align-items: center; gap: 16px;
  margin: 0 0 clamp(20px, 3vw, 34px);
  font-size: .8125rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}
.section-title::before { content: ""; width: 10px; height: 10px; background: var(--accent); flex: none; }
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.section-intro { margin: 0 0 clamp(24px, 3.4vw, 40px); max-width: 62ch; font-size: clamp(1.05rem, 1.5vw, 1.2rem); }

/* ---------- Projekte (Kacheln) ---------- */
.projects {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 28px var(--gap);
}
.project { display: block; text-decoration: none; }
.project-img { display: block; aspect-ratio: 1; overflow: hidden; background: var(--line); }
.project-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.project-name {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  margin-top: 10px; padding-top: 10px; border-top: 3px solid var(--fg);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem); font-weight: 800; letter-spacing: -.01em; line-height: 1.15;
  transition: border-color .2s;
}
.project-name .arrow { font-weight: 400; color: var(--muted); }
.project-url { display: block; margin-top: 3px; font-size: .8125rem; color: var(--muted); }
.project:hover { color: var(--fg); }
.project:hover .project-img img, .project:focus-visible .project-img img { transform: scale(1.04); }
.project:hover .project-name, .project:focus-visible .project-name { border-top-color: var(--accent); }
.project:hover .arrow { color: var(--accent-ink); }

/* ---------- Studio ---------- */
.studio {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: start;
}
.studio .lead {
  margin: 0 0 1.2rem;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  font-weight: 700; line-height: 1.14; letter-spacing: -.02em;
}
.studio p { max-width: 58ch; }
.studio-photos { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin: 0; }
.studio-photos figure { margin: 0; }
.studio-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.studio-photos figcaption { margin-top: 6px; font-size: .8125rem; color: var(--muted); }

/* ---------- Kontakt ---------- */
.contact {
  background: var(--fg); color: var(--bg);
  padding: clamp(28px, 5vw, 64px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 60px); align-items: end;
}
.contact h3 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem); line-height: .95; letter-spacing: -.04em; text-transform: uppercase;
}
.contact p { margin: 0 0 1rem; color: #d9d3c8; max-width: 52ch; }
.contact .mail {
  display: inline-block; margin-top: .4rem;
  font-size: clamp(1.15rem, 2.2vw, 1.6rem); font-weight: 800; color: #fff;
  text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: .22em;
  overflow-wrap: anywhere;
}
.contact .mail:hover { color: var(--accent); }

/* ---------- Unterseiten ---------- */
.page { padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(64px, 10vw, 140px); }
.page h1 {
  margin: 0 0 .5em;
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  line-height: .95; letter-spacing: -.045em; text-transform: uppercase;
}
.page h2 { font-size: 1.35rem; letter-spacing: -.01em; margin: 2.2em 0 .5em; }
.prose { max-width: 68ch; }
.prose a { color: var(--accent-ink); }
.intro { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 46ch; line-height: 1.45; }
.intro a { color: var(--accent-ink); }

/* ---------- Fußzeile ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  font-size: .875rem; color: var(--muted);
}
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--fg); }

/* ---------- Tablet ---------- */
@media (max-width: 960px) {
  .studio, .contact { grid-template-columns: 1fr; }
}

/* ---------- Handy ---------- */
@media (max-width: 620px) {
  .brand { font-size: .875rem; letter-spacing: .02em; gap: 8px; }
  .brand .mark { width: 24px; }
  .nav { gap: 12px; font-size: .875rem; }
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; }
  .hero .mark { display: none; }
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .project-name { font-size: 1rem; }
  .project-url { font-size: .75rem; overflow-wrap: anywhere; }
  .studio-photos { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .brand-text { display: none; }   /* ganz kleine Handys: nur das Logo, damit die Navigation passt */
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
