/* emrich CREATIV – responsive Neugestaltung */
:root {
  --rot: #C6133A;
  --rot-dunkel: #A00F2F;
  --anthrazit: #36404A;
  --anthrazit-dunkel: #242C34;
  --grau: #808080;
  --text: #3A3F44;
  --hell: #F4F5F6;
  --weiss: #FFFFFF;
  --header-h: 72px;
  --radius: 10px;
  --schatten: 0 2px 10px rgba(0,0,0,.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: "Open Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--weiss);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rot); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; color: #2A2F34; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ---------- Header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
}
.topbar__inner {
  width: min(1120px, 100% - 32px); margin-inline: auto;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.topbar__logo img { height: 52px; width: auto; }
.nav { display: flex; gap: 4px; }
.nav a {
  text-decoration: none; color: #555;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: 10px 12px; border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav a:hover, .nav a.active { color: var(--rot); border-bottom-color: var(--rot); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  padding: 10px; flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; background: var(--anthrazit); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none;
  background: var(--rot); color: #fff;
  font-weight: 600; font-size: 15px; letter-spacing: .03em;
  padding: 13px 26px; border-radius: 999px; border: 2px solid var(--rot);
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--rot-dunkel); border-color: var(--rot-dunkel); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100svh - var(--header-h));
  max-height: 900px;
  background: #4a5257 url("img/hero.jpg") 72% center / cover no-repeat;
  display: flex; align-items: flex-end;
  padding: 48px max(16px, calc((100% - 1120px) / 2)) 72px;
  color: #fff;
  position: relative;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(30,34,38,.55) 0%, rgba(30,34,38,.15) 55%, rgba(30,34,38,0) 75%);
}
.hero__text { position: relative; max-width: 560px; }
.hero__claim { font-size: clamp(18px, 2.4vw, 24px); margin: 0 0 6px; font-style: italic; opacity: .9; }
.hero h1 {
  color: #fff; font-size: clamp(44px, 7vw, 84px); font-weight: 300; letter-spacing: -.01em; margin: 0 0 8px;
}
.hero h1 span { font-weight: 700; }
.hero__sub { font-size: clamp(18px, 2vw, 22px); margin: 0 0 6px; letter-spacing: .04em; }
.hero__seo { font-size: 15px; margin: 0 0 28px; opacity: .85; max-width: 420px; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section--grey { background: var(--hell); }
.section--dark { background: var(--anthrazit); color: #E4E7EA; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section__title {
  font-size: clamp(28px, 4vw, 40px); font-weight: 700; text-align: center; margin-bottom: .3em;
}
.section__title::after {
  content: ""; display: block; width: 56px; height: 3px; background: var(--rot); margin: 16px auto 0;
}
.section__lead { text-align: center; color: var(--grau); font-size: 19px; margin: 0 0 48px; }
.section--dark .section__lead { color: #B9C0C7; }

/* Über mich */
.about { display: grid; grid-template-columns: 300px 1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.about__img img { width: 260px; margin: 0 auto; }
.skills {
  list-style: none; padding: 0; margin: 24px 0 0; text-align: center;
  font-size: 22px; font-weight: 300; text-transform: uppercase; letter-spacing: .08em; color: var(--grau); line-height: 1.45;
}
.about__text { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.about__text h2 { font-size: 24px; }
.about__text h2::after { content: ""; display: block; width: 40px; height: 3px; background: var(--rot); margin-top: 12px; }
.signature { margin: 22px 0 0; }
.signature img { width: 220px; max-width: 70%; }

/* Banner */
.banner {
  height: clamp(180px, 32vw, 420px);
  background: url("img/be-creativ.jpg") center / cover no-repeat;
}

/* Leistungen */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border-radius: var(--radius); padding: 28px 26px;
  box-shadow: var(--schatten); border-top: 3px solid var(--rot);
}
.card h3 { font-size: 21px; }
.card p { margin: 0 0 .7em; }
.card__quote { font-style: italic; color: var(--rot); }

/* Arbeitsproben */
.sub {
  font-size: 15px; text-transform: uppercase; letter-spacing: .14em; color: var(--grau);
  margin: 56px 0 20px; display: flex; align-items: center; gap: 16px;
}
.sub::after { content: ""; flex: 1; height: 1px; background: #E2E4E6; }
.grid { display: grid; gap: 16px; }
.grid a { display: block; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--schatten); transition: transform .25s, box-shadow .25s; }
.grid a:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.14); }
.grid img { width: 100%; height: 100%; object-fit: cover; }

.grid--logos { grid-template-columns: repeat(4, 1fr); }
.grid--logos a { aspect-ratio: 23 / 10; }
.grid--logos img { object-fit: contain; padding: 4px; }

.grid--print { grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; max-width: 880px; margin-inline: auto; }
.grid--print a { aspect-ratio: 5 / 7; }
.grid--print a.wide { grid-column: span 2; aspect-ratio: 10 / 7; }

.grid--foto { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 260px; }
.grid--foto a.wide { grid-column: span 2; }

.grid--web { grid-template-columns: repeat(6, 1fr); }
.grid--web a { grid-column: span 2; }
.grid--web a:nth-child(4) { grid-column: 2 / span 2; }
.grid--links a { text-decoration: none; }
.grid--links img { height: auto; aspect-ratio: 16 / 10; object-position: top; }
.grid--links span { display: block; padding: 10px 12px; font-size: 14px; font-weight: 600; color: var(--anthrazit); }

/* Video */
#video { position: relative; overflow: hidden; }
.film-deco { width: 200px; margin: 0 auto 24px; opacity: .85; }
/* Querformat + Hochformat gleich hoch: Breiten im Verhältnis 16/9 : 9/16 = 256 : 81 */
.videos { display: grid; grid-template-columns: minmax(0, 256fr) minmax(0, 81fr); gap: 24px; max-width: 1040px; margin: 0 auto; align-items: start; }
.video { margin: 0; }
.video video {
  display: block; width: 100%; height: auto; background: #111; border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.video--wide video { aspect-ratio: 16 / 9; }
.video--tall video { aspect-ratio: 9 / 16; }
.video figcaption { margin-top: 10px; font-weight: 600; color: #fff; }

/* Kontakt */
.contact { background: var(--anthrazit-dunkel); color: #fff; }
.contact h2 { color: #fff; }
.contact .section__title, .contact .section__lead { text-align: left; }
.contact .section__title::after { margin-left: 0; }
.contact .section__lead { color: #B9C0C7; margin-bottom: 28px; }
.contact__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.contact__buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.contact address { font-style: normal; font-size: 18px; line-height: 1.8; border-left: 3px solid var(--rot); padding-left: 24px; }

/* Impressum */
.legal__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 40px; max-width: 820px; margin: 0 auto; }
.legal details { max-width: 820px; margin: 32px auto 0; background: #fff; border-radius: var(--radius); box-shadow: var(--schatten); padding: 0 24px; }
.legal summary { cursor: pointer; font-weight: 700; padding: 18px 0; color: var(--anthrazit); }
.legal details[open] { padding-bottom: 16px; }
.legal details h3 { font-size: 17px; margin-top: 1.2em; }
.legal details p { font-size: 15px; }

/* Unterseite Datenschutz */
.page-head { background: var(--anthrazit); color: #fff; padding: clamp(40px, 7vw, 72px) 0; }
.page-head h1 { color: #fff; font-size: clamp(30px, 5vw, 46px); margin: 0 0 .2em; }
.page-head h1::after { content: ""; display: block; width: 56px; height: 3px; background: var(--rot); margin-top: 16px; }
.page-head p { margin: 12px 0 0; color: #B9C0C7; }
.legal-page { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); background: var(--hell); border-radius: var(--radius); padding: 20px 22px; font-size: 14px; }
.toc__title { font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; color: var(--grau); margin: 0 0 8px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin: 4px 0; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--rot); }
.prose { max-width: 760px; overflow-wrap: break-word; }
.prose .intro { font-size: 18px; }
.prose h2 { font-size: 23px; margin-top: 2em; padding-top: .2em; }
.prose h3 { font-size: 18px; margin-top: 1.4em; }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose .source { margin-top: 3em; font-size: 13px; color: var(--grau); }

/* Footer */
.footer { background: var(--anthrazit); color: #B9C0C7; padding: 32px 0; font-size: 14px; }
.footer__inner { display: flex; align-items: center; gap: 24px; }
.footer img { width: 105px; opacity: .9; }
.footer p { margin: 0; }
.footer a { color: #fff; }

.to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--rot); color: #fff; text-decoration: none; font-size: 22px;
  display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.25);
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.to-top.show { opacity: 1; pointer-events: auto; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(15,18,21,.94);
  display: flex; align-items: center; justify-content: center; padding: 56px 16px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; background: #fff; }
.lightbox button {
  position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; font-size: 30px; line-height: 1;
}
.lightbox button:hover { background: var(--rot); }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- Tablet ---------- */
@media (max-width: 980px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,.12);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav.open { max-height: 480px; }
  .nav a { padding: 15px 24px; border-bottom: 1px solid #EEE; font-size: 14px; }
  .nav a:hover, .nav a.active { border-bottom-color: #EEE; background: var(--hell); }

  .about { grid-template-columns: 1fr; }
  .about__img { display: grid; grid-template-columns: auto auto; justify-content: center; align-items: center; gap: 32px; }
  .about__img img { width: 200px; }
  .skills { margin: 0; text-align: left; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .grid--logos { grid-template-columns: repeat(3, 1fr); }
  .grid--foto { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .grid--web { grid-template-columns: repeat(4, 1fr); }
  .grid--web a, .grid--web a:nth-child(4) { grid-column: span 2; }
  .grid--web a:nth-child(5) { grid-column: 2 / span 2; }
  .legal-page { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: static; }
}

/* ---------- Smartphone ---------- */
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; }
  .topbar__logo img { height: 44px; }
  .hero { min-height: 78svh; background-position: 68% center; padding-bottom: 48px; align-items: flex-end; }
  .hero::before { background: linear-gradient(0deg, rgba(30,34,38,.75) 0%, rgba(30,34,38,.2) 55%, rgba(30,34,38,0) 80%); }
  .about__img { grid-template-columns: 1fr; gap: 16px; }
  .about__img img { width: 180px; }
  .skills { text-align: center; font-size: 18px; }
  .about__text { grid-template-columns: 1fr; gap: 24px; }
  .cards { grid-template-columns: 1fr; gap: 16px; }
  .card { padding: 22px 20px; }
  .grid { gap: 10px; }
  .grid--logos { grid-template-columns: repeat(2, 1fr); }
  .grid--print { grid-template-columns: repeat(2, 1fr); }
  .grid--foto { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .grid--web { grid-template-columns: 1fr; gap: 16px; }
  .grid--web a, .grid--web a:nth-child(4), .grid--web a:nth-child(5) { grid-column: auto; }
  .videos { grid-template-columns: 1fr; gap: 32px; }
  .video--tall { width: min(100%, 300px); margin: 0 auto; }
  .contact__inner { grid-template-columns: 1fr; gap: 32px; }
  .contact__buttons .btn { width: 100%; text-align: center; }
  .legal__grid { grid-template-columns: 1fr; gap: 0; }
  .legal details { padding: 0 16px; }
  .footer__inner { flex-direction: column; text-align: center; gap: 14px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 12px; transform: none; }
}
