/*
Theme Name: Speicher-G HafenCity
Theme URI: https://speicher-g.com
Author: EASY OFFICE Centres In Europe eG
Author URI: https://speicher-g.com
Description: Repräsentations- und Netzwerkstandort der Genossenschaft EASY OFFICE in der HafenCity Hamburg. Industrielles Backstein-Design trifft auf modernes Webdesign.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: Private
Text Domain: speicher-g
Tags: custom-menu, featured-images, full-width-template
*/

/* =====================================================
   DESIGN TOKENS
   ===================================================== */
:root {
  --brick:       #8B3A2A;
  --brick-dark:  #5C2518;
  --water:       #F5F0E8;
  --water-light: #EDE6D8;
  --gold:        #A8802A;
  --gold-light:  #C8A040;
  --cream:       #1E1810;
  --dark:        #F5F0E8;
  --dark-2:      #EDE6D8;
  --text:        #1E1810;
  --muted:       rgba(30,24,16,0.55);
}

/* =====================================================
   RESET & BASE
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--dark);
  color: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  line-height: 1.1;
}

.eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

/* =====================================================
   LAYOUT HELPERS
   ===================================================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 3rem;
}

.gold-rule {
  border: none;
  border-top: 1px solid rgba(200,169,110,0.2);
}

/* =====================================================
   NAVIGATION
   ===================================================== */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(13,26,31,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200,169,110,0.12);
  transition: background 0.3s;
}
#site-header.scrolled {
  background: rgba(13,26,31,0.97);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 3rem;
}

.site-branding .site-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1;
}
.site-branding .site-subtitle {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(244,239,230,0.5);
  margin-top: 3px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
}

/* WP nav menu */
#primary-menu {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
#primary-menu li a {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244,239,230,0.55);
  transition: color 0.3s;
}
#primary-menu li a:hover,
#primary-menu li.current-menu-item a {
  color: var(--gold);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(200,169,110,0.3);
  color: var(--gold);
  padding: 0.5rem 0.8rem;
  font-size: 1rem;
  cursor: pointer;
}

/* =====================================================
   HERO
   ===================================================== */
.sg-hero {
  position: relative;
  height: 100vh;
  min-height: 650px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 3rem 5rem;
  overflow: hidden;
}

.sg-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.sg-hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13,26,31,0.25) 0%,
    rgba(13,26,31,0.05) 35%,
    rgba(13,26,31,0.7) 75%,
    rgba(13,26,31,1) 100%
  );
}
.sg-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 40% at 50% 70%, rgba(46,96,112,0.12) 0%, transparent 70%);
  animation: waterGlow 6s ease-in-out infinite alternate;
}
@keyframes waterGlow {
  from { opacity: 0.3; }
  to   { opacity: 0.7; }
}

.sg-hero__content {
  position: relative;
  z-index: 2;
  max-width: 860px;
}

.sg-hero__eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.sg-hero__eyebrow::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
}

.sg-hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 7vw, 6.2rem);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}
.sg-hero__title em {
  font-style: italic;
  color: var(--gold-light);
  display: block;
}

.sg-hero__sub {
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--muted);
  max-width: 460px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.sg-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--dark);
  background: var(--gold);
  padding: 1rem 2rem;
  transition: background 0.3s;
  border: none;
  cursor: pointer;
}
.btn-gold:hover { background: var(--gold-light); color: var(--dark); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(200,169,110,0.35);
  padding: 1rem 2rem;
  transition: border-color 0.3s, color 0.3s;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-light); }

.sg-hero__scroll {
  position: absolute;
  right: 3rem;
  bottom: 4rem;
  writing-mode: vertical-rl;
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(200,169,110,0.4);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.sg-hero__scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(200,169,110,0.4), transparent);
  animation: scrollLine 1.6s ease-in-out infinite;
}
@keyframes scrollLine {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.2; }
}

/* =====================================================
   PHOTO STRIP
   ===================================================== */
.sg-photo-strip {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  height: 360px;
  gap: 3px;
}

.sg-photo-strip__item {
  overflow: hidden;
  position: relative;
  background: var(--brick-dark);
}
.sg-photo-strip__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.25,0.46,0.45,0.94);
  filter: brightness(0.72) saturate(0.85);
}
.sg-photo-strip__item:hover img {
  transform: scale(1.07);
  filter: brightness(0.88) saturate(1.05);
}
.sg-photo-strip__caption {
  position: absolute;
  bottom: 0.9rem;
  left: 1rem;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244,239,230,0.55);
}

/* =====================================================
   KONZEPT SECTION
   ===================================================== */
.sg-konzept {
  padding: 6rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  background: var(--dark);
}

.sg-konzept__text p {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 1.5rem;
}

.sg-pillars { display: flex; flex-direction: column; }

.sg-pillar {
  padding: 1.7rem 0;
  border-top: 1px solid rgba(200,169,110,0.13);
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1.4rem;
  align-items: start;
}
.sg-pillar:last-child { border-bottom: 1px solid rgba(200,169,110,0.13); }

.sg-pillar__num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--gold);
  opacity: 0.45;
  padding-top: 0.1rem;
}
.sg-pillar__title {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 0.35rem;
}
.sg-pillar__text {
  font-size: 0.83rem;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(244,239,230,0.45);
}

/* =====================================================
   LOCATION SECTION
   ===================================================== */
.sg-location {
  padding: 6rem 3rem;
  background: linear-gradient(135deg, rgba(26,58,74,0.35) 0%, var(--dark) 60%);
  position: relative;
  overflow: hidden;
}
.sg-location::before {
  content: 'LAGERHAUS G';
  position: absolute;
  right: -1rem;
  bottom: 1rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 11vw;
  font-weight: 300;
  color: rgba(200,169,110,0.03);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: 0.06em;
}

.sg-location__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.sg-location__images {
  position: relative;
  height: 500px;
}
.sg-location__img-main {
  position: absolute;
  top: 0; left: 0; right: 3rem; bottom: 3rem;
  overflow: hidden;
}
.sg-location__img-main img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.78);
}
.sg-location__img-accent {
  position: absolute;
  bottom: 0; right: 0;
  width: 50%; height: 45%;
  overflow: hidden;
  border: 3px solid var(--dark);
}
.sg-location__img-accent img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.82);
}

.sg-location__text p {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 1.2rem;
}

.sg-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(200,169,110,0.1);
  margin-top: 2rem;
}
.sg-fact {
  background: var(--dark);
  padding: 1.2rem 1.4rem;
}
.sg-fact__value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}
.sg-fact__label {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244,239,230,0.38);
  margin-top: 0.3rem;
}

/* =====================================================
   QUOTE BANNER
   ===================================================== */
.sg-quote-banner {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.sg-quote-banner__bg {
  position: absolute;
  inset: 0;
  background-color: var(--water);
  background-size: cover;
  background-position: center;
}
.sg-quote-banner__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(13,26,31,0.92) 0%,
    rgba(13,26,31,0.55) 50%,
    rgba(13,26,31,0.92) 100%
  );
}
.sg-quote-banner__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 17px,
    rgba(200,169,110,0.025) 17px,
    rgba(200,169,110,0.025) 18px
  );
}
.sg-quote-banner__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 680px;
  padding: 4rem 3rem;
}
.sg-quote-banner__inner blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.4rem, 3vw, 2.3rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.45;
  color: var(--cream);
}
.sg-quote-banner__inner cite {
  display: block;
  margin-top: 1.5rem;
  font-size: 0.63rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-style: normal;
  opacity: 0.8;
}

/* =====================================================
   EVENTS SECTION
   ===================================================== */
.sg-events {
  padding: 6rem 3rem;
  background: var(--dark-2);
}

.sg-events__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  gap: 2rem;
}
.sg-events__note {
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(244,239,230,0.38);
  max-width: 260px;
  text-align: right;
  line-height: 1.65;
}

.sg-events__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: rgba(200,169,110,0.1);
}

.sg-event-card {
  background: var(--dark-2);
  padding: 2rem;
  transition: background 0.3s;
}
.sg-event-card:hover { background: rgba(26,58,74,0.38); }

.sg-event-card__type {
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
  margin-bottom: 0.9rem;
}
.sg-event-card__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 0.8rem;
}
.sg-event-card__desc {
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(244,239,230,0.48);
}
.sg-event-card__price {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(200,169,110,0.13);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* =====================================================
   ZIELGRUPPEN
   ===================================================== */
.sg-targets {
  padding: 6rem 3rem;
  background: var(--dark);
}

.sg-targets__layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5rem;
  align-items: start;
  margin-top: 3rem;
}

.sg-targets__intro {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--muted);
}

.sg-targets__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(200,169,110,0.1);
}

.sg-target {
  background: var(--dark);
  padding: 1.4rem;
  transition: background 0.3s;
}
.sg-target:hover { background: rgba(26,58,74,0.28); }

.sg-target__icon { font-size: 1.3rem; margin-bottom: 0.6rem; }
.sg-target__name {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 0.3rem;
}
.sg-target__desc {
  font-size: 0.75rem;
  font-weight: 300;
  line-height: 1.55;
  color: rgba(244,239,230,0.38);
}

/* =====================================================
   CTA BANNER
   ===================================================== */
.sg-cta-banner {
  position: relative;
  overflow: hidden;
  background: var(--brick-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4rem 5rem;
  gap: 3rem;
}
.sg-cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(0,0,0,0.04) 20px,
    rgba(0,0,0,0.04) 21px
  );
}
.sg-cta-banner__text { position: relative; z-index: 1; }
.sg-cta-banner__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.7rem, 3.2vw, 2.8rem);
  font-weight: 300;
}
.sg-cta-banner__sub {
  font-size: 0.83rem;
  font-weight: 300;
  color: rgba(244,239,230,0.65);
  margin-top: 0.5rem;
  letter-spacing: 0.04em;
}
.sg-cta-banner__action { position: relative; z-index: 1; flex-shrink: 0; }

/* =====================================================
   FOOTER
   ===================================================== */
#site-footer {
  background: #060F13;
  padding: 4rem 3rem 2rem;
}

.sg-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(200,169,110,0.1);
}

.sg-footer__brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 1rem;
  line-height: 1.3;
}
.sg-footer__tagline {
  font-size: 0.78rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(244,239,230,0.35);
  max-width: 250px;
}

.sg-footer__col-title {
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.65;
  margin-bottom: 1.1rem;
}

.sg-footer__links li { margin-bottom: 0.55rem; }
.sg-footer__links a {
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(244,239,230,0.38);
  transition: color 0.3s;
}
.sg-footer__links a:hover { color: var(--gold); }

.sg-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  font-size: 0.68rem;
  color: rgba(244,239,230,0.18);
  letter-spacing: 0.08em;
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================
   WORDPRESS CORE CLASSES (wichtig!)
   ===================================================== */
.wp-block-image img { max-width: 100%; height: auto; }
.aligncenter { display: block; margin: 1.5rem auto; }
.alignleft  { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.wp-caption { max-width: 100%; }
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .sg-konzept,
  .sg-location__grid,
  .sg-targets__layout { grid-template-columns: 1fr; gap: 3rem; }
  .sg-location__images { height: 320px; }
  .sg-events__grid { grid-template-columns: 1fr 1fr; }
  .sg-events__note { display: none; }
  .sg-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .header-inner { padding: 1rem 1.5rem; }
  .sg-hero, .sg-konzept, .sg-location,
  .sg-events, .sg-targets { padding: 4rem 1.5rem; }
  .sg-hero { padding-bottom: 3.5rem; }
  #primary-navigation { display: none; }
  #primary-navigation.is-open { display: block; }
  #primary-menu { flex-direction: column; gap: 0; padding: 1rem 1.5rem 1.5rem; }
  #primary-menu li a { display: block; padding: 0.7rem 0; border-bottom: 1px solid rgba(200,169,110,0.08); }
  .menu-toggle { display: inline-block; }
  .sg-photo-strip { grid-template-columns: 1fr 1fr; height: 240px; }
  .sg-events__grid { grid-template-columns: 1fr; }
  .sg-cta-banner { flex-direction: column; padding: 3rem 1.5rem; }
  .sg-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .sg-footer__bottom { flex-direction: column; gap: 0.8rem; text-align: center; }
  .sg-hero__scroll { display: none; }
}
