/* Abtura – Redesign (edle Variante)
   Farben unverändert aus der bisherigen Website:
   Rot #EB2928 · Schwarz #000000 · Text #444444 · Linie #DDDDDD · Fläche #F5F5F5 · Weiß #FFFFFF */
:root {
  --red: #eb2928;
  --black: #000000;
  --text: #444444;
  --line: #dddddd;
  --surface: #f5f5f5;
  --white: #ffffff;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Raleway", Arial, sans-serif;
  --max: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--black); text-decoration: none; border-bottom: 1px solid var(--red); transition: color .3s var(--ease); }
a:hover { color: var(--red); }
h1, h2, h3 { color: var(--black); margin: 0; font-family: var(--serif); font-weight: 500; line-height: 1.1; letter-spacing: -.005em; }
strong { font-weight: 600; color: var(--black); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 40px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 92px; }
.brand { border: 0; }
.brand img { width: 84px; height: 84px; object-fit: contain; }
.nav { display: flex; gap: 44px; list-style: none; margin: 0; padding: 0; }
.nav a {
  position: relative; display: block; padding: 6px 0; border: 0;
  color: var(--black); font-size: 12px; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--red); transition: right .4s var(--ease);
}
.nav a:hover { color: var(--black); }
.nav a:hover::after, .nav a.active::after { right: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--black); color: var(--white);
  padding: 96px 0 88px;
}
.hero::after {
  /* Feine Dreieckslinie als Zitat der Logo-Form */
  content: ""; position: absolute; right: 8%; top: 50%;
  width: 300px; height: 260px; transform: translateY(-50%);
  background:
    linear-gradient(var(--red), var(--red)) bottom / 100% 1px no-repeat;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  box-shadow: none;
}
.hero::before {
  content: ""; position: absolute; right: 8%; top: 50%;
  width: 300px; height: 260px; transform: translateY(-50%);
  background: linear-gradient(to bottom right, transparent calc(50% - .5px), rgba(255,255,255,.28) 50%, transparent calc(50% + .5px)) left / 50% 100% no-repeat,
              linear-gradient(to bottom left,  transparent calc(50% - .5px), var(--red) 50%, transparent calc(50% + .5px)) right / 50% 100% no-repeat;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  color: var(--white);
  font-size: clamp(42px, 5.6vw, 76px); font-weight: 400;
  max-width: 15ch; line-height: 1.04;
}
.hero h1 em { font-style: italic; color: var(--white); white-space: nowrap; }
.hero h1 em::after { content: "."; color: var(--red); font-style: normal; }
.hero p {
  max-width: 620px; margin: 30px 0 0; padding-left: 24px;
  border-left: 1px solid var(--red);
  font-size: 17px; line-height: 1.75; color: rgba(255,255,255,.72);
}

/* ---------- Sections ---------- */
.section { padding: 64px 0 80px; }
.rule { width: 48px; height: 1px; background: var(--red); border: 0; margin: 0 0 28px; }

/* Portfolio */
.portfolio {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.portfolio a {
  position: relative; display: block; overflow: hidden; border: 0;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 20px; background: var(--white);
}
.portfolio a::before {
  content: ""; position: absolute; left: 20px; right: 20px; bottom: 10px; height: 1px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease);
}
.tile-name {
  display: block; margin: -4px 0 10px;
  font-family: var(--serif); font-size: 22px; line-height: 1.2; color: var(--black);
  transition: color .3s var(--ease);
}
.portfolio a:hover .tile-name { color: var(--red); }
.portfolio img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  filter: grayscale(1) contrast(1.02); opacity: .88;
  transition: filter .6s var(--ease), opacity .6s var(--ease);
}
.portfolio a:hover img { filter: grayscale(0); opacity: 1; }
.portfolio a:hover::before { transform: scaleX(1); }

.exit-title { font-size: clamp(30px, 3.4vw, 40px); font-weight: 400; margin: 64px 0 24px; }
.exit-title.first { margin-top: 0; }
.logos { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); width: calc(200% / 3); }
.logo-tile {
  height: 160px; display: flex; align-items: center; justify-content: center; padding: 20px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white);
}
.logo-tile img { width: auto; height: auto; max-width: 70%; max-height: 52px; }
.logo-tile img[src*="ifena"] { max-height: 68px; }
@media (max-width: 960px) { .logos { width: 100%; } }
@media (max-width: 600px) { .logos { grid-template-columns: 1fr; } }

/* Page header (Unterseiten) */
.page-head { background: var(--black); color: var(--white); padding: 64px 0 56px; position: relative; overflow: hidden; }
.page-head::after {
  content: ""; position: absolute; left: 40px; bottom: 0; width: 48px; height: 1px; background: var(--red);
}
.page-head .container { position: relative; }
.page-head h1 { color: var(--white); font-size: clamp(38px, 4.6vw, 60px); font-weight: 400; }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.contact-card { padding: 36px 40px 36px 0; display: flex; flex-direction: column; }
.contact-card + .contact-card { padding: 36px 0 36px 40px; border-left: 1px solid var(--line); }
.contact-card h2 { font-size: 30px; margin-bottom: 16px; }
.contact-card address { font-style: normal; }
.contact-card dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 20px; margin: 14px 0 0; }
.contact-card dt { color: var(--black); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; padding-top: 4px; }
.contact-card dd { margin: 0; }
.contact-card .bottom { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); flex: 1; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding-left: 30px; margin: 10px 0; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 15px; width: 16px; height: 1px; background: var(--red); }

/* Impressum */
.legal-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); margin-bottom: 48px; }
.legal-card { padding: 36px 40px 36px 0; }
.legal-card + .legal-card { padding: 36px 0 36px 40px; border-left: 1px solid var(--line); }
.legal-card .label { font-size: 12px; text-transform: uppercase; letter-spacing: .2em; font-weight: 600; }
.legal-card h2 { font-size: 28px; margin: 8px 0 12px; }
.legal-card h3 { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; margin: 20px 0 4px; }
.legal-card p { margin: 0; }
.prose { max-width: 780px; }
.prose h2 { font-size: 32px; margin-bottom: 16px; }
.prose p { font-size: 15px; line-height: 1.7; margin: 0 0 10px; }
.prose h3 { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; margin: 24px 0 6px; }

/* Footer */
.site-footer { background: var(--black); color: rgba(255,255,255,.6); padding: 28px 0; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--red); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .portfolio { grid-template-columns: repeat(2, 1fr); }
  .contact-grid, .legal-grid { grid-template-columns: 1fr; }
  .contact-card, .contact-card + .contact-card, .legal-card, .legal-card + .legal-card { padding: 28px 0; border-left: 0; }
  .contact-card + .contact-card, .legal-card + .legal-card { border-top: 1px solid var(--line); }
  .hero::before, .hero::after { opacity: .35; right: -60px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .site-header .container { height: 72px; }
  .brand img { width: 64px; height: 64px; }
  .nav { gap: 20px; }
  .nav a { font-size: 11px; letter-spacing: .16em; }
  .hero { padding: 64px 0 60px; }
  .hero::before, .hero::after { display: none; }
  .hero p { padding-left: 18px; }
  .page-head { padding: 44px 0 40px; }
  .page-head::after { left: 16px; }
  .section { padding: 44px 0 56px; }
  .portfolio { grid-template-columns: 1fr; }
  .portfolio a { padding: 20px; }
  .contact-card h2, .legal-card h2 { font-size: 26px; }
}
