/* © 2025 Benjamin Zandt – www.zandt-benjamin.de
Alle Rechte vorbehalten.

Dieser Quellcode ist urheberrechtlich geschützt nach deutschem Urheberrecht.
Jegliche Nutzung, Vervielfältigung, Veränderung oder Weitergabe ist ohne die
ausdrückliche, schriftliche Genehmigung des Urhebers untersagt.
Zuwiderhandlungen werden rechtlich verfolgt. */

/* =========================================================
   BASIS
========================================================= */
@font-face {
  font-family: "Afacad Flux";
  src: url("../font/AfacadFlux-Regular.woff2") format("woff2");
  font-display: swap;
}

:root {
  --gold: #ffd0a6;
  --grey: #f4f4f4;
  --black: #000;
  --white: #fff;
  --grey-1: #888;
  --nav: #e9e9e9;

  --maxw: 1100px;
  --radius: 14px;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;

  --fs-1: 0.9rem;
  --fs-2: 1rem;
  --fs-3: 1.25rem;
  --fs-4: 2rem;
  --fs-5: 3rem;

  --padd-about: 140px 20px 0 20px;
  --btn-gap: 20px;

  /* NEU: Bild-Constraints (Projektbilder im Accordion) */
  --img-max: 780px;
  --img-radius: 10px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Afacad Flux", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.4;
}

/* Medien */
img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

/* =========================================================
   PROJEKTBILDER
========================================================= */
/* ====== NEU: Projektbilder sauber skalieren ====== */
.projektbild {
  width: 100%;
  max-height: 60vh; /* kompakter */
  object-fit: contain;
  margin: 20px auto;
  display: block;
}

/* Optional: wenn du bestimmte Motive bewusst "vollflächig" willst */
.projektbild--cover {
  max-height: 52vh;
  object-fit: cover;
}

/* =========================================================
   SKIPLINK
========================================================= */
.skiplink {
  position: absolute;
  left: -9999px;
  top: auto;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.skiplink:focus {
  position: fixed;
  left: 16px;
  top: 16px;
  height: auto;
  width: auto;
  padding: 8px 12px;
  background: var(--black);
  color: var(--white);
  z-index: 9999;
  border-radius: 6px;
}

/* =========================================================
   LAYOUT
========================================================= */
.section {
  padding: var(--space-5) var(--space-2);
}

.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 2.5vw, var(--fs-4));
  margin-bottom: var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 20px;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: 300;
}

.section__title {
  text-align: center;
  font-size: clamp(1.5rem, 2.5vw, var(--fs-4));
  margin-bottom: var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.section__subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  margin-bottom: var(--space-2);
  text-align: center;
  color: var(--black);
}

.container {
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
}

/* Überschriften */
h1 {
  font-size: clamp(2rem, 4.2vw, var(--fs-5));
  line-height: 1.1;
}

h2 {
  margin-top: 20px;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: 300;
}

/* =========================================================
   BUTTON
========================================================= */
.read-more {
  display: inline-block;
  background-color: var(--black);
  color: var(--white);
  font-size: var(--fs-2);
  font-weight: 500;
  padding: 0.55rem 1.25em;
  text-decoration: none;
  transition: 200ms ease;
  cursor: pointer;
  border: 1px solid var(--black);
  margin-top: var(--btn-gap);
}

.read-more:hover {
  background-color: var(--white);
  color: var(--black);
  border: 1px solid var(--black);
}

/* =========================================================
   HERO
========================================================= */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__media {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__video {
  width: 100%;
  height: min(75vh, 820px);
  object-fit: cover;
  filter: grayscale(100%);
  display: block;
}

.hero__video--mobile {
  display: none;
}

.hero__logo {
  width: min(300px, 70vw);
  height: auto;
  margin: var(--space-3) 0;
}

.hero__scroll {
  display: inline-block;
  margin-bottom: var(--space-3);
}

/* =========================================================
   NAVBAR
========================================================= */
.navwrap {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--nav);
}

.navbar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__brand img {
  display: block;
  height: 40px;
  width: auto;
}

.navbar__toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  gap: 4px;
  padding: 6px;
}

.navbar__togglebar {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--black);
  border-radius: 2px;
}

.navbar__menu {
  display: flex;
  gap: 20px;
  list-style: none;
}

.navbar__menu a {
  text-decoration: none;
  color: var(--black);
  font-weight: 500;
  position: relative;
}

.navbar__menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #000;
  transition: width 0.25s ease;
}

.navbar__menu a:hover::after {
  width: 100%;
}

/* =========================================================
   ABOUT
========================================================= */
#about {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  flex-wrap: nowrap;
  padding: var(--padd-about);
  max-width: 1200px;
  margin: 0 auto;
}

#about .container {
  flex: 0 0 50%;
  max-width: 550px;
  width: 100%;
}

.imgZB {
  flex: 0 0 45%;
  width: 45%;
  height: auto;
  max-height: min(85vh, 820px);
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--white);
}

/* =========================================================
   CONCEPT
========================================================= */
.concept {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap-reverse;
  align-items: center;
}

.concept__media {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

/* LOGOS */
.concept__img {
  width: 25%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.concept__img_50 {
  width: 50%;
  height: auto;
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.concept__img_75 {
  width: 75%;
  height: auto;
  display: block;
  margin: 0 auto;
}



/* =========================================================
   DASHBOARD
========================================================= */


.profil-dashboard {
  padding: 80px 0;
}

.section-title {
  font-size: 22px;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.dash-card {
  background: #fff;
  padding: 40px 20px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.2s ease;
}

.dash-card:hover {
  border-color: rgba(255,255,255,0.25);
}

.dash-icon {
  font-size: 28px;
  margin-bottom: 20px;
  opacity: 0.8;
}

.dash-number {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 12px;
}

.dash-label {
  font-size: 18px;
  opacity: 0.7;
  line-height: 1.5;
}

/* Responsive */

@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   QUALIFIKATION
========================================================= */
.acc {
  margin: 20px auto;
  max-width: var(--maxw);
  border: 1px solid var(--black);
  border-radius: 1px;
  overflow: hidden;
}

.acc__summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  cursor: pointer;
}

.acc__symbol {
  display: inline-flex;
  min-width: 32px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  animation: bounce 1.5s infinite;
}

.acc__title {
  font-size: 1.1rem;
}

.acc__content {
  padding: 20px 20px 28px;
}

.acc__item {
  padding: 12px 0;
  border-bottom: 1px solid var(--grey);
}

.acc__item:last-child {
  border-bottom: 0;
}

.acc__org {
  margin: 2px 0;
}

.acc__time {
  color: var(--grey-1);
  font-size: 0.95rem;
}

/* =========================================================
   KONTAKT
========================================================= */
.contact {
  background: var(--black);
  color: var(--white);
}

.contact__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--space-4) var(--space-2);
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.contact__left {
  flex: 1;
  min-width: 280px;
}

.contact__right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 280px;
}

.contact__logo {
  width: 100%;
  height: auto;
  max-width: 520px;
}

.contact__head h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
  margin-top: 0;
}

.contact__head h2::before {
  content: "";
  position: absolute;
  width: 50%;
  height: 1px;
  background-color: var(--grey-1);
  bottom: 0;
  left: 0;
}

.contact__head h2::after {
  content: "";
  position: absolute;
  width: 25%;
  height: 3px;
  background-color: var(--gold);
  bottom: -1px;
  left: 0;
}

.contact__head p {
  color: #ccc;
}

.contact__list {
  margin-top: 20px;
}

.contact__row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 16px 0;
}

.contact__row a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.contact__row a:hover {
  border-bottom-color: var(--gold);
}

.social {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.social a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  transition: 0.2s;
}

.social a i {
  color: #fff;
}

.social a:hover i {
  color: var(--gold);
}

/* =========================================================
   FOOTER
========================================================= */
.sitefooter {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 18px 20px;
  font-size: 0.95rem;
}

.sitefooter span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.footerlink {
  color: #fff;
  text-decoration: none;
}

.footerlink:hover {
  color: #ffd0a6;
}

.icon-footer {
  width: 14px;
  vertical-align: middle;
}

/* =========================================================
   UTIL
========================================================= */
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

/* =========================================================
   PORTFOLIO
========================================================= */
.portfolio_text {
  text-align: center;
}

.grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: none;
  border-radius: 0;
  aspect-ratio: 3 / 4;
  transform: translateZ(0);
}

.card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.35s ease, filter 0.2s ease;
  filter: contrast(1.02) brightness(0.9);
}

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 18px;
  opacity: 0;
  transition: opacity 0.2s ease;
  background: rgba(0, 0, 0, 0.58);
}

.overlay__title,
.overlay__role,
.overlay__desc {
  width: 100%;
  text-align: center;
}

.overlay__title {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.2px;
  color: #fff;
}

.overlay__role {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 650;
}

.overlay__desc {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.35;
  max-width: 34ch;
  margin-left: auto;
  margin-right: auto;
}

.card:hover > img {
  transform: scale(1.07);
  filter: grayscale(1) contrast(1.05) brightness(0.75);
}

.card:hover .overlay {
  opacity: 1;
}

.card:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.65);
  outline-offset: 4px;
}

.card:focus-visible .overlay {
  opacity: 1;
}

/* =========================================================
   FLIPBOOK (LANDSCAPE: VOLLBILD)
========================================================= */
.flipbook,
.flipbook__frame {
  width: 100%;
}

@media (orientation: landscape) {
  .flipbook,
  .flipbook__frame {
    height: 100vh;
  }

  .flipbook__frame {
    width: 100vw;
    height: 100vh;
    border: 0;
    display: block;
  }
}

/* =========================================================
   RESPONSIVE DESIGN (DEIN TEIL)
========================================================= */
@media (max-width: 768px) {
  .hero__video--desktop {
    display: none;
  }

  .hero__video--mobile {
    display: block;
    height: min(85vh, 900px);
  }

  .hero__logo {
    width: min(200px, 68vw);
  }
}

@media (max-width: 880px) {
  .navbar__toggle {
    display: inline-flex;
  }

  .navbar__menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--nav);
    flex-direction: column;
    gap: 12px;
    padding: 12px 16px;
    display: none;
  }

  .navbar__menu.is-open {
    display: flex;
  }
}

@media (max-width: 768px) {
  #about {
    flex-direction: column;
    text-align: center;
    padding: 96px 18px 0 18px;
    gap: var(--space-4);
  }

  .imgZB {
    width: 100%;
    max-height: 60vh;
    object-fit: contain;
  }

  #about .container {
    flex: 1 1 100%;
    max-width: 560px;
  }
}

@media (max-width: 980px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .overlay__title {
    font-size: 18px;
  }

  /* Alle Projektbilder auf den Projektseiten */
  .projektbild {
    max-width: 100%;
    max-height: 52vh;
  }
}

@media (max-width: 860px) {
  .sitefooter__row {
    flex-wrap: wrap;
    white-space: normal;
  }
}

@media (max-width: 560px) {
  .sitefooter__row {
    flex-direction: column;
    gap: 10px;
  }
}

/* =========================================================
   RESPONSIVE (DROP-IN) – Mobile + Landscape + Tablet + Desktop
   Ziel: keine White-Gaps, keine Overflows, sauberes Scaling
========================================================= */

/* 0) Reset / Schutz */
* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
}

img,
video,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 1) Fluid Container (zentriert) */
:root {
  --maxw: 1200px;
  --gutter: 16px;
  --gap: 18px;
  --radius: 18px;
}

main,
.page,
.content,
.wrapper,
#page,
#content {
  width: min(var(--maxw), 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* 2) Allgemeine Sektionen */
section {
  padding-block: clamp(18px, 4vw, 56px);
}

/* 3) Typo fluid */
h1 {
  font-size: clamp(26px, 5.8vw, 46px);
  line-height: 1.1;
}

h2 {
  font-size: clamp(20px, 4.2vw, 32px);
  line-height: 1.2;
}

h3 {
  font-size: clamp(16px, 3.2vw, 22px);
  line-height: 1.25;
}

p,
li {
  font-size: clamp(14px, 2.6vw, 18px);
  line-height: 1.55;
}

/* 4) Standard-Grids: auto-responsiv (ohne feste Breakpoints) */
.grid,
.cards,
.card-grid,
.project-grid,
.projects,
.gallery,
.columns {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* 5) Logo/Bilder in der Mitte (robust) */
.concept__img_75,
.logo,
.hero-logo,
.brand-logo,
img[alt*="Logo"],
img[src*="logo"],
img[src*="Logo"] {
  margin-inline: auto;
}

/* Wenn du eine fixe Logo-Klasse hast: hier rein */
.concept__img_75 {
  width: min(75%, 520px);
}

/* 6) Navigation/Touch-Ziele */
nav a,
button,
.btn,
.button {
  min-height: 44px;
}

.container ul {
    list-style: disc;
    list-style-position: inside;
}

/* 7) Querformat: weniger vertikales Padding, damit nichts „gequetscht“ wirkt */
@media (max-height: 520px) and (orientation: landscape) {
  :root {
    --gutter: 14px;
    --gap: 14px;
  }

  section {
    padding-block: 14px;
  }
}

/* =========================================================
   DEINE PHONE-BREAKPOINTS (Feintuning)
========================================================= */

/* 320 */
@media (max-width: 320px) {
  :root {
    --gutter: 12px;
    --gap: 14px;
  }
}

/* 360 */
@media (min-width: 360px) {
  :root {
    --gutter: 16px;
  }
}

/* 375 */
@media (min-width: 375px) {
  :root {
    --gap: 18px;
  }
}

/* 390 */
@media (min-width: 390px) {
  :root {
    --gutter: 18px;
  }
}

/* 412 */
@media (min-width: 412px) {
  :root {
    --gutter: 20px;
  }
}

/* 414 */
@media (min-width: 414px) {
  :root {
    --gap: 20px;
  }
}

/* 430 */
@media (min-width: 430px) {
  :root {
    --gutter: 22px;
  }
}

/* =========================================================
   „ALLE ENDGERÄTE“ – Tablet/Desktop (notwendig)
========================================================= */
@media (min-width: 768px) {
  :root {
    --gutter: 28px;
    --gap: 22px;
  }
}

@media (min-width: 1100px) {
  :root {
    --gutter: 32px;
  }
}

.contact {
  background: #000;
  color: #fff;

  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* Innerer Inhalt bleibt sauber zentriert */
.contact__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--space-2);
  padding-right: var(--space-2);
}

/* Sicherheitsnetz gegen horizontales „Wackeln“ durch 100vw */
html,
body {
  overflow-x: clip; /* fallback: hidden, wenn clip nicht greift */
}