/* ============================================================
   GEOMETER MARKUS OBERARZBACHER – Website Styles
   Design: Minimalistisch, Premium, angelehnt an gamper.biz
   ============================================================ */

/* ── RESET & BASE ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --col-black:   #111111;
  --col-dark:    #1a1a1a;
  --col-mid:     #3a3a3a;
  --col-grey:    #888888;
  --col-light:   #f5f4f2;
  --col-white:   #ffffff;
  --col-accent:  #b8a98a;   /* warm sand / holzton */

  --header-h:    80px;
  --font-main:   'Outfit', sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  font-weight: 300;
  color: var(--col-black);
  background: var(--col-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; padding: 0; margin: 0; }

/* ── UTILITIES ── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--col-accent);
  margin-bottom: 16px;
}
.section-tag.light { color: rgba(255,255,255,0.6); }

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 200;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.section-title.light { color: var(--col-white); }

.section-subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--col-grey);
  margin-top: 6px;
  margin-bottom: 32px;
}

.section-header {
  margin-bottom: 64px;
}

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  transition: background 0.4s, box-shadow 0.4s;
}
#site-header.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
  backdrop-filter: blur(8px);
}
#site-header.at-top {
  background: transparent;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 48px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.logo-img {
  height: 38px;
  width: auto;
  filter: brightness(0);
  transition: filter 0.3s;
}
#site-header.at-top .logo-img {
  filter: brightness(0) invert(1);
}

.main-nav ul {
  display: flex;
  gap: 40px;
}
.nav-link {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--col-black);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
}
#site-header.at-top .nav-link {
  color: rgba(255,255,255,0.9);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.3s var(--ease-out);
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--col-black);
  transition: all 0.3s;
}
#site-header.at-top .menu-toggle span { background: var(--col-white); }

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-image-wrap {
  position: absolute;
  inset: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.04);
  animation: heroScale 8s var(--ease-out) forwards;
}
@keyframes heroScale {
  to { transform: scale(1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(0,0,0,0.65) 0%,
    rgba(0,0,0,0.3) 55%,
    rgba(0,0,0,0.05) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 80px 100px;
  max-width: 720px;
  animation: heroFadeUp 1.2s 0.3s var(--ease-out) both;
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
  font-weight: 400;
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 200;
  color: var(--col-white);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--col-white);
  border: 1px solid rgba(255,255,255,0.5);
  padding: 14px 32px;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.hero-cta:hover {
  background: var(--col-white);
  border-color: var(--col-white);
  color: var(--col-black);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  right: 60px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: heroFadeUp 1.2s 1s var(--ease-out) both;
}
.scroll-arrow {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.5);
  position: relative;
  animation: scrollPulse 2s infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ============================================================
   ÜBER MICH / BÜRO
   ============================================================ */
.about-section {
  padding: 120px 0;
  background: var(--col-white);
}

.about-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-img-wrap {
  aspect-ratio: 3/4;
  overflow: hidden;
}
.about-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.about-img-wrap:hover img { transform: scale(1.04); }

.about-text-col p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--col-mid);
  margin-bottom: 20px;
}
.about-text-col p strong { color: var(--col-black); font-weight: 500; }

.about-contact-info {
  margin-top: 40px;
  border-top: 1px solid #e8e8e8;
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.88rem;
  color: var(--col-mid);
}
.contact-icon {
  color: var(--col-accent);
  font-size: 0.5rem;
  margin-top: 5px;
  flex-shrink: 0;
}
.contact-item a {
  color: var(--col-mid);
  transition: color 0.2s;
}
.contact-item a:hover { color: var(--col-black); }

/* ============================================================
   LEISTUNGEN
   ============================================================ */
.services-section {
  padding: 120px 0;
  background: var(--col-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 0;
}

/* Center the bottom 2 cards */
@media (min-width: 900px) {
  .service-card:nth-child(4) {
    grid-column: 1;
    margin-left: calc(50% + 1px);
  }
  .service-card:nth-child(5) {
    grid-column: 2;
  }
  /* Override: place 4th and 5th in their own row, centered */
  .services-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .service-card:nth-child(1) { grid-column: 1 / 3; }
  .service-card:nth-child(2) { grid-column: 3 / 5; }
  .service-card:nth-child(3) { grid-column: 5 / 7; }
  .service-card:nth-child(4) { grid-column: 2 / 4; margin-left: 0; }
  .service-card:nth-child(5) { grid-column: 4 / 6; }
}

.service-card {
  background: var(--col-white);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
  border: 1px solid transparent;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  border-color: var(--col-accent);
}

.service-number {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--col-accent);
}

.service-title {
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--col-black);
  margin-bottom: 24px;
}
.service-title em {
  display: block;
  font-style: italic;
  font-weight: 300;
  color: var(--col-grey);
  font-size: 0.9rem;
  margin-top: 4px;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-list li {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--col-mid);
  padding-left: 14px;
  position: relative;
}
.service-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--col-accent);
}
.service-list li em {
  font-style: italic;
  color: var(--col-grey);
  font-size: 0.82rem;
}

/* ============================================================
   STATEMENT BAND
   ============================================================ */
.statement-band {
  position: relative;
  height: 420px;
  overflow: hidden;
}
.statement-image-wrap {
  position: absolute;
  inset: 0;
}
.statement-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.statement-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}
.statement-text {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
}
.statement-text p {
  font-size: clamp(1.5rem, 3.5vw, 2.8rem);
  font-weight: 200;
  color: var(--col-white);
  text-align: center;
  letter-spacing: -0.01em;
  line-height: 1.3;
  max-width: 900px;
}

/* ============================================================
   PROJEKTE
   ============================================================ */
.projects-section {
  padding: 120px 0 0;
  background: var(--col-white);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 418px 380px;
  gap: 4px;
  margin-top: 64px;
}

.project-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.project-item.project-large {
  grid-column: span 2;
}

.project-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}
.project-item:hover img { transform: scale(1.06); }

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 30px;
  opacity: 0;
  transition: opacity 0.4s;
}
.project-item:hover .project-overlay { opacity: 1; }

.project-tag {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--col-accent);
  margin-bottom: 8px;
  font-weight: 500;
}
.project-overlay h3 {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--col-white);
  line-height: 1.3;
}

/* ============================================================
   ATMOSPHÄRE / BILDBAND
   ============================================================ */
.atmosphere-section {
  padding: 80px 0 40px;
  overflow: hidden;
  background: var(--col-white);
}

.atmo-scroll-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}
.atmo-scroll-wrap::-webkit-scrollbar { display: none; }
.atmo-scroll-wrap:active { cursor: grabbing; }

.atmo-track {
  display: flex;
  gap: 4px;
  width: max-content;
  animation: autoScroll 40s linear infinite;
}
.atmo-track:hover { animation-play-state: paused; }

@keyframes autoScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.atmo-item {
  flex-shrink: 0;
  width: 360px;
  height: 260px;
  overflow: hidden;
}
.atmo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.atmo-item:hover img { transform: scale(1.06); }

.atmo-label {
  text-align: center;
  margin-top: 32px;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--col-grey);
}

/* ============================================================
   KONTAKT
   ============================================================ */
.contact-section {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

.contact-bg-wrap {
  position: absolute;
  inset: 0;
}
.contact-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.contact-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,10,10,0.88) 0%,
    rgba(10,10,10,0.7) 50%,
    rgba(10,10,10,0.55) 100%
  );
}

.contact-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
}

.contact-info .section-title {
  margin-bottom: 48px;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.contact-block p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.75);
}
.contact-label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--col-accent) !important;
  margin-bottom: 6px;
  font-weight: 500;
}
.contact-link {
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
}
.contact-link:hover { color: var(--col-white); }

/* FORM */
.contact-form-wrap {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 48px 40px;
  backdrop-filter: blur(10px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
}
.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--col-white);
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 300;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.25s, background 0.25s;
  resize: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.3); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--col-accent);
  background: rgba(255,255,255,0.12);
}

.form-submit {
  margin-top: 8px;
  background: var(--col-accent);
  color: var(--col-white);
  border: none;
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 32px;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s;
  align-self: flex-start;
}
.form-submit:hover {
  background: #a09070;
  transform: translateY(-2px);
}

.form-success-msg {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  padding: 20px 0;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--col-black);
  padding: 60px 0 40px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 80px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  text-align: center;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.footer-logo-img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}
.footer-name {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  font-weight: 300;
}

.footer-links {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  transition: color 0.2s;
  font-weight: 300;
}
.footer-links a:hover { color: var(--col-white); }

.footer-copy p {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.2);
  font-weight: 300;
  letter-spacing: 0.04em;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { gap: 48px; }
  .contact-inner { gap: 60px; padding: 0 48px; }
}

@media (max-width: 900px) {
  .header-inner { padding: 0 24px; }

  .menu-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: 0; right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--col-white);
    box-shadow: -4px 0 30px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right 0.4s var(--ease-out);
    z-index: 105;
  }
  .main-nav.open { right: 0; }
  .main-nav ul {
    flex-direction: column;
    gap: 28px;
    text-align: center;
  }
  .nav-link { font-size: 1rem; color: var(--col-black) !important; }

  .hero-content { padding: 0 32px 80px; }
  .hero-title { font-size: 2.2rem; }

  .about-inner { grid-template-columns: 1fr; }
  .about-img-wrap { aspect-ratio: 16/9; }

  .projects-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 300px; }
  .project-item.project-large { grid-column: span 2; }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 0 32px;
  }
}

@media (max-width: 640px) {
  .container { padding: 0 24px; }

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

  .projects-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .project-item.project-large { grid-column: span 1; }
  .project-item { aspect-ratio: 4/3; }

  .atmo-item { width: 260px; height: 190px; }

  .footer-inner { padding: 0 24px; }
  .footer-links { gap: 20px; }

  .contact-form-wrap { padding: 32px 24px; }
  .contact-inner { padding: 0 24px; }
  .hero-content { padding: 0 24px 80px; }

  .statement-band { height: 280px; }
}
