/* ========================================
   PONBAU GmbH – Website Styles
   ======================================== */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --clr-dark: #1a1a2e;
  --clr-darker: #12121f;
  --clr-navy: #16213e;
  --clr-mid: #2a2a40;
  --clr-gold: #c9a84c;
  --clr-gold-light: #dfc06f;
  --clr-gold-dark: #a68a3a;
  --clr-white: #f5f0e8;
  --clr-gray: #b0a99f;
  --clr-gray-light: #d4cfc7;
  --clr-text: #e8e2d8;
  --clr-bg-section: #1e1e32;
  --clr-bg-alt: #222238;

  --ff-heading: 'Playfair Display', Georgia, serif;
  --ff-body: 'Inter', -apple-system, sans-serif;

  --max-width: 1200px;
  --header-h: 72px;

  --transition: .3s ease;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--ff-body);
  font-weight: 400;
  color: var(--clr-text);
  background: var(--clr-dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--clr-gold);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--clr-gold-light); }

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--ff-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--clr-white);
}

/* ---------- Utility ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

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

.section__label {
  font-family: var(--ff-body);
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--clr-gold);
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 24px;
}

.section__text {
  max-width: 720px;
  color: var(--clr-gray-light);
  font-size: 1.05rem;
}

.gold-line {
  width: 60px;
  height: 3px;
  background: var(--clr-gold);
  margin: 32px 0;
  border: none;
}

/* ---------- HEADER / NAV ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 1000;
  background: rgba(18, 18, 31, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 168, 76, .15);
  transition: background var(--transition);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-family: var(--ff-heading);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--clr-gold);
}

.nav {
  display: flex;
  align-items: center;
}

.nav__list {
  display: flex;
  gap: 28px;
}

.nav__link {
  font-size: .85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--clr-gray-light);
  transition: color var(--transition);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--clr-gold);
  transition: width var(--transition);
}

.nav__link:hover,
.nav__link.active {
  color: var(--clr-gold);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  gap: 0;
  border: 1px solid var(--clr-gold);
  border-radius: 4px;
  overflow: hidden;
  margin-left: 20px;
}

.lang-toggle__btn {
  background: transparent;
  border: none;
  color: var(--clr-gray);
  font-family: var(--ff-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 6px 12px;
  cursor: pointer;
  transition: all var(--transition);
}

.lang-toggle__btn.active {
  background: var(--clr-gold);
  color: var(--clr-darker);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1100;
}

.hamburger__line {
  width: 26px;
  height: 2px;
  background: var(--clr-gold);
  transition: all var(--transition);
  transform-origin: center;
}

.hamburger.open .hamburger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open .hamburger__line:nth-child(2) {
  opacity: 0;
}
.hamburger.open .hamburger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background:
    linear-gradient(180deg, rgba(18,18,31,.6) 0%, rgba(18,18,31,.82) 100%),
    url('../images/overview-1.jpg') center/cover no-repeat;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(201,168,76,.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 24px;
}

.hero__label {
  font-family: var(--ff-body);
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 5px;
  color: var(--clr-gold);
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--clr-gray-light);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero__cta {
  display: inline-block;
  padding: 14px 40px;
  border: 2px solid var(--clr-gold);
  color: var(--clr-gold);
  font-family: var(--ff-body);
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all var(--transition);
}

.hero__cta:hover {
  background: var(--clr-gold);
  color: var(--clr-darker);
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--clr-gray);
  font-size: .7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: float 2s ease-in-out infinite;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--clr-gold), transparent);
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---------- ABOUT ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about__icon-box {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
}

.about__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border: 1px solid var(--clr-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--clr-gold);
}

.about__icon-title {
  font-family: var(--ff-heading);
  font-size: 1.1rem;
  color: var(--clr-white);
  margin-bottom: 4px;
}

.about__icon-text {
  font-size: .9rem;
  color: var(--clr-gray);
}

.about__visual {
  position: relative;
  height: 500px;
  border: 1px solid rgba(201,168,76,.2);
  overflow: hidden;
}

.about__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- TEAM (Geschäftsführer & Bauleitung) ---------- */
.team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 40px;
  margin-top: 48px;
}

.team-card {
  background: var(--clr-bg-alt);
  border: 1px solid rgba(201,168,76,.12);
  padding: 40px 32px;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}

.team-card:hover {
  border-color: rgba(201,168,76,.35);
  transform: translateY(-4px);
}

.section:not(.section--alt) .team-card {
  background: var(--clr-bg-section);
}

.team-card__photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  margin: 0 auto 24px;
  border: 3px solid var(--clr-gold);
  display: block;
}

.team-card__initials {
  width: 64px;
  height: 64px;
  border: 2px solid var(--clr-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--clr-gold);
  margin-bottom: 20px;
}

.team-card__name {
  font-family: var(--ff-heading);
  font-size: 1.3rem;
  color: var(--clr-white);
  margin-bottom: 4px;
}

.team-card__role {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--clr-gold);
  margin-bottom: 16px;
}

.team-card__text {
  font-size: .95rem;
  color: var(--clr-gray);
  line-height: 1.7;
}

/* ---------- REFERENZEN ---------- */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.ref-card {
  background: var(--clr-mid);
  border: 1px solid rgba(201,168,76,.1);
  overflow: hidden;
  text-align: center;
  transition: all var(--transition);
}

.ref-card:hover {
  border-color: var(--clr-gold);
  transform: translateY(-3px);
}

.ref-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.ref-card__body {
  padding: 16px 20px 20px;
}

.ref-card__name {
  font-family: var(--ff-heading);
  font-size: 1rem;
  color: var(--clr-white);
}

.ref-card__type {
  font-size: .78rem;
  color: var(--clr-gray);
  margin-top: 4px;
}

.ref-subsection {
  margin-top: 60px;
}

.ref-subsection__title {
  font-size: 1.3rem;
  margin-bottom: 24px;
}

.ref-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.ref-detail-card {
  background: var(--clr-bg-section);
  border-left: 3px solid var(--clr-gold);
  overflow: hidden;
}

.ref-detail-card__img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.ref-detail-card__body {
  padding: 20px 28px 24px;
}

.ref-detail-card__name {
  font-family: var(--ff-heading);
  font-size: 1.1rem;
  color: var(--clr-white);
  margin-bottom: 6px;
}

.ref-detail-card__info {
  font-size: .9rem;
  color: var(--clr-gray);
}

/* ---------- GÖRLITZ ---------- */
.goerlitz__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 48px;
}

.goerlitz__hero-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  margin-bottom: 48px;
  border: 1px solid rgba(201,168,76,.15);
}

.goerlitz__gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.goerlitz__gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border: 1px solid rgba(201,168,76,.1);
  transition: all var(--transition);
}

.goerlitz__gallery img:hover {
  border-color: var(--clr-gold);
  transform: scale(1.02);
}

.goerlitz__block {
  margin-bottom: 36px;
}

.goerlitz__block-title {
  font-family: var(--ff-heading);
  font-size: 1.2rem;
  color: var(--clr-gold);
  margin-bottom: 12px;
}

.goerlitz__block-text {
  font-size: .95rem;
  color: var(--clr-gray-light);
  line-height: 1.8;
}

.goerlitz__quote {
  border-left: 3px solid var(--clr-gold);
  padding: 24px 28px;
  margin-top: 40px;
  background: rgba(201,168,76,.04);
}

.goerlitz__quote-text {
  font-family: var(--ff-heading);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--clr-white);
  margin-bottom: 8px;
}

.goerlitz__quote-author {
  font-size: .85rem;
  color: var(--clr-gold);
}

.goerlitz__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.fact {
  text-align: center;
  padding: 28px 16px;
  border: 1px solid rgba(201,168,76,.15);
}

.fact__number {
  font-family: var(--ff-heading);
  font-size: 2rem;
  color: var(--clr-gold);
  margin-bottom: 4px;
}

.fact__label {
  font-size: .8rem;
  color: var(--clr-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---------- PROJEKTE ---------- */
.projekt {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 48px;
}

.projekt__visual {
  position: relative;
  height: 460px;
  border: 1px solid rgba(201,168,76,.2);
  overflow: hidden;
}

.projekt__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.projekt__badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--clr-gold);
  color: var(--clr-darker);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 14px;
  z-index: 1;
}

.projekt__details {
  list-style: none;
  margin-top: 24px;
}

.projekt__details li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(201,168,76,.1);
  font-size: .95rem;
  color: var(--clr-gray-light);
  display: flex;
  gap: 10px;
}

.projekt__details li::before {
  content: '\2014';
  color: var(--clr-gold);
  flex-shrink: 0;
}

/* ---------- KONTAKT / IMPRESSUM ---------- */
.kontakt__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 48px;
}

.kontakt__block {
  margin-bottom: 32px;
}

.kontakt__block-title {
  font-family: var(--ff-heading);
  font-size: 1.15rem;
  color: var(--clr-gold);
  margin-bottom: 12px;
}

.kontakt__block-text {
  font-size: .95rem;
  color: var(--clr-gray-light);
  line-height: 1.8;
}

.kontakt__impressum {
  padding: 32px;
  border: 1px solid rgba(201,168,76,.15);
  background: rgba(201,168,76,.03);
}

.kontakt__impressum p {
  font-size: .88rem;
  color: var(--clr-gray);
  line-height: 1.8;
}

/* ---------- FOOTER ---------- */
.footer {
  padding: 32px 0;
  border-top: 1px solid rgba(201,168,76,.12);
  text-align: center;
  font-size: .8rem;
  color: var(--clr-gray);
}

/* ---------- FADE-IN ANIMATION ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease-out, transform .7s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
  .about__grid,
  .goerlitz__grid,
  .projekt,
  .kontakt__grid,
  .ref-detail {
    grid-template-columns: 1fr;
  }

  .goerlitz__facts {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--clr-darker);
    padding: 100px 32px 40px;
    transition: right var(--transition);
    border-left: 1px solid rgba(201,168,76,.15);
    overflow-y: auto;
  }

  .nav.open {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    gap: 20px;
  }

  .nav__link {
    font-size: 1rem;
  }

  .lang-toggle {
    margin-left: 0;
    margin-top: 24px;
  }

  .hamburger {
    display: flex;
  }

  .section {
    padding: 64px 0;
  }

  .team__grid {
    grid-template-columns: 1fr;
  }

  .ref-grid {
    grid-template-columns: 1fr 1fr;
  }

  .goerlitz__facts {
    grid-template-columns: 1fr;
  }

  .about__visual {
    height: 300px;
  }

  .projekt__visual {
    height: 280px;
  }

  .goerlitz__hero-img {
    height: 250px;
  }

  .goerlitz__gallery {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .goerlitz__gallery img {
    height: 160px;
  }

  .team-card__photo {
    width: 120px;
    height: 120px;
  }
}

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

  .goerlitz__gallery {
    grid-template-columns: 1fr;
  }
}
