/* =========================================================
   Heiko Hannig – Audio- & Datentechnik
   CI: Weiß (Basis) / Grautöne / Schwarz (Vordergrund, Ränder) / Rot (Akzent)
   ========================================================= */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f2f2f2;
  --color-surface: #ffffff;
  --color-black: #000000;
  --color-accent: #d50000;
  --color-accent-dark: #7a0000;
  --color-text: #1a1a1a;
  --color-text-muted: #666666;
  --color-border: #dcdcdc;
  --color-border-strong: #b3b3b3;
  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --max-width: 960px;
}

@font-face {
  font-family: "Ballet";
  src: url("../fonts/Ballet.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Alex Brush";
  src: url("../fonts/AlexBrush.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pinyon Script";
  src: url("../fonts/PinyonScript.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Kalam Light";
  src: url("../fonts/KalamLight.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Caveat";
  src: url("../fonts/Caveat.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Shadows Into Light";
  src: url("../fonts/ShadowsIntoLight.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nothing You Could Do";
  src: url("../fonts/NothingYouCouldDo.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; height: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

/* Sticky Footer: Footer klebt am unteren Fensterrand, wenn der Inhalt kürzer
   als das Fenster ist; ist der Inhalt länger, verhält er sich normal (kein
   position:fixed, kein Kleben beim Scrollen). */
.page-content {
  flex: 1 0 auto;
}

.site-footer {
  flex-shrink: 0;
}

img { max-width: 100%; display: block; }

a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--color-accent-dark); }

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

/* ---------- Kopfbereich / Navigation (Querbalken oben) ---------- */

.site-header {
  background: #ffffff;
  color: var(--color-black);
  position: sticky;
  top: 0;
  z-index: 100;
  border-top: 4px solid var(--color-accent);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 100px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-top: -15px;
}

.brand:hover { text-decoration: none; }

.brand-logo {
  height: 68px;
  width: auto;
  flex-shrink: 0;
  margin-top: 15px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-black);
  border-radius: 4px;
  padding: 8px 10px;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-black);
  margin: 4px 0;
}

.main-nav {
  margin-top: -17px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
}

.main-nav a {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-black);
  padding: 6px 2px 7.34px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.nav-label {
  display: inline-block;
  transform: translateY(-0.49px);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-accent);
  text-decoration: none;
  border-bottom-color: var(--color-accent);
}

/* ---------- Hero (Startseite) – Titelbild als zentrales Element ---------- */

.hero {
  background: var(--color-bg);
  padding: 82px 0 195px;
  text-align: center;
}

.hero-image {
  display: inline-block;
  position: relative;
  max-width: 640px;
  margin: 0 auto 36px;
}

.hero-image img {
  margin: 0 auto;
}

.hero-image .hero-credit {
  position: absolute;
  left: 8.5%;
  bottom: 12.9%;
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.58rem;
  color: #a6a6a6;
  white-space: nowrap;
}

.hero-image .hero-quote {
  position: absolute;
  left: 45%;
  bottom: 12.9%;
  width: 55%;
  margin: 0;
  text-align: left;
}

.hero-quote-text {
  display: block;
  font-family: "Nothing You Could Do", "Brush Script MT", "Segoe Script", cursive;
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: var(--color-black);
}

.hero-quote-source {
  display: block;
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 0.58rem;
  color: #a6a6a6;
}

/* Die beiden Bild-Credits (Howden links, Autorin rechts) sind gleichrangig
   und müssen bei jeder Breakpoint-Stufe immer gemeinsam/gleich skaliert werden. */
@media (max-width: 600px) {
  .hero-quote-text { font-size: 0.9rem; }
  .hero-quote-source,
  .hero-image .hero-credit { font-size: 0.52rem; }
}

@media (max-width: 500px) {
  .hero-quote-source,
  .hero-image .hero-credit { font-size: 0.46rem; }
}

@media (max-width: 420px) {
  .hero-quote-text { font-size: 0.75rem; }
  .hero-quote-source,
  .hero-image .hero-credit { font-size: 0.4rem; }
}

@media (max-width: 360px) {
  .hero-quote-source,
  .hero-image .hero-credit { font-size: 0.34rem; }
}

.hero h1 {
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.4;
  margin: 0 auto 10px;
  color: var(--color-accent);
  overflow-wrap: break-word;
}

.hero p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  max-width: 52ch;
  margin: 0 auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 18px;
}

.btn {
  display: inline-block;
  color: var(--color-accent);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-accent);
  padding-bottom: 1px;
}
.btn:hover {
  color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  text-decoration: none;
}
.btn-ghost {
  color: var(--color-black);
  border-color: var(--color-border-strong);
}
.btn-ghost:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

/* ---------- Seitenkopf (Unterseiten) – Stil der alten Rubrik-Grafiken ---------- */

.page-band {
  background: var(--color-bg);
  padding: 30px 0 26px;
}

.page-band-quote {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  row-gap: 8px;
  margin: 0;
  color: var(--color-black);
}

.page-band-quote .quote-mark-lg {
  position: relative;
  top: 1px;
  font-size: 1.3rem;
  line-height: 1;
  margin-right: 10px;
  color: var(--color-black);
}

.page-band-quote .quote-text {
  font-family: "Nothing You Could Do", "Brush Script MT", "Segoe Script", cursive;
  font-weight: 400;
  font-size: 1.33rem;
  line-height: 1.25;
  letter-spacing: -0.06em;
  margin-right: 6px;
  max-width: 100%;
}

.page-band-quote .quote-divider {
  align-self: stretch;
  width: 1px;
  background: var(--color-accent);
  margin: 0 16px;
}

.page-band-quote .quote-sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.page-header {
  background: var(--color-bg);
  padding: 18px 0 26px;
}

.headline-row {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 16px;
}

.rule-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--color-accent);
  pointer-events: none;
}

.headline-box {
  display: inline-block;
  border-left: 2px solid var(--color-accent);
  padding: 5px 14px;
}

.headline-box h1 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-black);
  white-space: nowrap;
}

.headline-rule {
  flex: 1;
  align-self: stretch;
  min-width: 30px;
}

.headline-image {
  flex-shrink: 0;
  position: relative;
  top: 16px;
}

.headline-image img {
  display: block;
  height: 78px;
  width: auto;
  filter: grayscale(100%);
}

.page-header p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  max-width: 60ch;
  margin: 14px 0 0;
}

/* ---------- Allgemeine Sektionen ---------- */

section { padding: 40px 0; background: var(--color-bg); }

section.alt { background: var(--color-bg-alt); }

h2.section-title {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin: 0 0 22px;
  padding-left: 22px;
}

.section-title .rule-line {
  height: 1px;
}

.section-title .st-text {
  display: inline-block;
  border-left: 1px solid var(--color-accent);
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-black);
  white-space: nowrap;
}

.section-title .st-rule {
  flex: 1;
  min-width: 20px;
}

.section-title .st-image {
  flex-shrink: 0;
  position: relative;
  top: 12px;
  width: 64px;
  height: 64px;
  margin-right: 14px;
}
.section-title .st-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}

.person-title + .person-row { margin-bottom: 44px; }

.person-title .person-role {
  display: inline-block;
  margin-left: 10px;
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--color-text-muted);
}

.person-row {
  display: flex;
  gap: 24px;
  padding-left: 22px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.person-photo {
  flex: 0 0 160px;
  width: 160px;
}

.person-photo img {
  width: 100%;
  height: auto;
  filter: grayscale(100%);
}

.person-bio { flex: 1 1 320px; margin-top: -5px; }
.person-bio p { font-size: 0.9rem; }
.person-bio p:first-child { margin-top: 0; }
.person-bio p:last-child { margin-bottom: 0; }

h3.sub-title {
  color: var(--color-accent);
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 6px;
}

.material-title {
  display: block;
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.material-grid .card ul.tech-list { font-size: 0.85rem; }

.material-grid.grid {
  display: block;
  columns: 3;
  column-gap: 32px;
}

@media (max-width: 700px) {
  .material-grid.grid { columns: 2; }
}

@media (max-width: 480px) {
  .material-grid.grid { columns: 1; }
}

.material-grid .card {
  break-inside: avoid;
  margin-bottom: 28px;
}

/* ---------- Inhaltsspalten (schlicht, wie im alten Layout) ---------- */

.grid {
  display: grid;
  gap: 28px 32px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

#it .grid,
#veranstaltungstechnik .grid,
#philosophie .grid {
  padding-left: 22px;
}

#kontakt p,
#rechtliches p,
#rechtliches h3.sub-title {
  padding-left: 22px;
}

#kontakt h2.section-title,
#rechtliches h2.section-title {
  margin-bottom: 11px;
}

#rechtliches h3.sub-title {
  margin-bottom: 8px;
}

#rechtliches h3.sub-title + p {
  margin-top: 0;
}

.card {
  padding: 0;
}

.card p { font-size: 0.9rem; }
.card p:last-child { margin-bottom: 0; }

.card-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Referenzen ---------- */

.ref-item {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  align-items: flex-start;
  flex-wrap: wrap;
}
.ref-item:last-child { border-bottom: none; }

.ref-item img {
  width: 120px;
  flex: 0 0 120px;
  filter: grayscale(100%);
}

.ref-item .ref-text { flex: 1 1 320px; }
.ref-item .ref-text p { font-size: 0.9rem; }

.ref-item .ref-meta {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ---------- Partner ---------- */

.partner-list {
  display: grid;
  gap: 18px 28px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.partner-card {
  display: flex;
  gap: 16px;
  align-items: center;
}

.partner-card img {
  width: 110px;
  flex: 0 0 110px;
  filter: grayscale(100%);
}

.partner-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
}
.partner-strip img { height: 40px; width: auto; filter: grayscale(100%); }

/* ---------- Listen mit rotem Aufzählungspunkt ---------- */

ul.tech-list {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 32px;
}
ul.tech-list li {
  break-inside: avoid;
  padding-left: 16px;
  position: relative;
  margin-bottom: 6px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
ul.tech-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
}

/* ---------- Kontaktdaten ---------- */

.contact-box p { font-size: 0.9rem; }
.contact-box .meta { color: var(--color-text-muted); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-black);
  color: #999999;
  padding: 26px 0 16px;
  font-size: 0.85rem;
  line-height: 1.4;
  border-top: 3px solid var(--color-accent);
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.site-footer a { color: #cccccc; }
.site-footer a:hover { color: #ffffff; }

.site-footer .footer-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer .copyright {
  margin-top: 12px;
  width: 100%;
  color: #555555;
  font-size: 0.78rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0;
    background: #ffffff;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
  }
  .main-nav.open { display: block; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
  }
  .main-nav li { border-bottom: 1px solid var(--color-border); }
  .main-nav a { display: block; padding: 12px 0; }
  .nav-label { transform: none; }
  .nav-toggle { display: block; }

  .hero h1 { font-size: 1.6rem; }

  ul.tech-list { columns: 1; }

  .site-footer .container { flex-direction: column; }

  .page-band-quote .quote-text { font-size: 1.2rem; }
}

@media (max-width: 600px) {
  .page-band-quote .quote-text { font-size: 1.03rem; }
  .page-band-quote .quote-divider { display: none; }
  .page-band-quote .quote-sub { margin-left: 0; }
}

/* Logo verkleinert sich erst, wenn es neben dem Burger-Button eng wird */
@media (max-width: 480px) {
  .brand-logo { height: 52px; }
}

/* Ab hier wird's neben dem Burger-Button sonst zu eng (Logo+Button > verfügbare Breite) */
@media (max-width: 360px) {
  .brand-logo { height: 40px; }
}

@media (max-width: 640px) {
  .headline-image { display: none; }
}

@media (max-width: 480px) {
  .section-title { flex-wrap: wrap; }
  .section-title .st-text { white-space: normal; }
  .section-title .st-image { display: none; }
}
