/*
Theme Name: Construction
Theme URI: https://merlin-66.de
Author: Hermes
Description: A geometric “under construction” placeholder block theme.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.5
Requires PHP: 7.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: construction
*/

/* ─── Reset & base ─── */
html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: #0a0a0c;
  color: #e8e6e1;
  font-family: "Inter", system-ui, sans-serif;
  overflow-x: hidden;
}

/* ─── Construction Hero ─── */
.construction-hero {
  min-height: 100vh !important;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  background: linear-gradient(135deg, #0a0a0c 0%, #111115 50%, #0a0a0c 100%);
}

/* Animated wireframe triangle */
.construction-hero .hero-geom {
  position: absolute;
  top: 40%;
  left: 50%;
  width: 120px;
  height: 120px;
  transform: translate(-50%, -50%);
  z-index: 0;
  opacity: 0.18;
}

.construction-hero .hero-geom svg {
  width: 100%;
  height: 100%;
  animation: geomRotate 60s linear infinite;
}

@keyframes geomRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Floating dots (scaffolding nodes) */
.construction-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(201,168,76,0.08) 0%, transparent 2%),
    radial-gradient(circle at 70% 20%, rgba(201,168,76,0.06) 0%, transparent 2%),
    radial-gradient(circle at 40% 80%, rgba(201,168,76,0.07) 0%, transparent 2%),
    radial-gradient(circle at 85% 70%, rgba(201,168,76,0.05) 0%, transparent 2%),
    radial-gradient(circle at 10% 60%, rgba(201,168,76,0.06) 0%, transparent 2%);
  animation: nodePulse 4s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes nodePulse {
  0%   { opacity: 0.6; }
  100% { opacity: 1.0; }
}

/* Floating hexagons */
.hex-float {
  position: absolute;
  z-index: 0;
  opacity: 0.12;
  animation: hexDrift 20s ease-in-out infinite alternate;
}

.hex-float.hex-1 {
  width: 48px;
  height: 48px;
  top: 18%;
  left: 12%;
  animation-duration: 25s;
}

.hex-float.hex-2 {
  width: 32px;
  height: 32px;
  top: 65%;
  right: 15%;
  animation-duration: 18s;
  animation-delay: -5s;
}

.hex-float.hex-3 {
  width: 24px;
  height: 24px;
  bottom: 25%;
  left: 32%;
  animation-duration: 30s;
  animation-delay: -10s;
}

@keyframes hexDrift {
  0%   { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(20px, -30px) rotate(15deg); }
}

/* Progress bar scaffolding */
.scaffold-bar {
  width: 100%;
  height: 2px;
  background: rgba(201,168,76,0.1);
  position: relative;
  overflow: hidden;
  margin: 2rem auto;
}

.scaffold-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #c9a84c, transparent);
  animation: scaffoldSlide 3s ease-in-out infinite;
}

@keyframes scaffoldSlide {
  0%   { left: -50%; }
  100% { left: 100%; }
}

/* Diamond divider */
.diamond-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.diamond-rule::before,
.diamond-rule::after {
  content: "";
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.4));
}

.diamond-rule::after {
  background: linear-gradient(90deg, rgba(201,168,76,0.4), transparent);
}

.diamond-rule .diamond {
  width: 8px;
  height: 8px;
  background: #c9a84c;
  transform: rotate(45deg);
  animation: diamondPulse 2s ease-in-out infinite;
}

@keyframes diamondPulse {
  0%, 100% { opacity: 0.5; transform: rotate(45deg) scale(1); }
  50%      { opacity: 1.0; transform: rotate(45deg) scale(1.3); }
}

/* Accent text glow */
.accent-glow {
  color: #c9a84c;
  text-shadow: 0 0 20px rgba(201,168,76,0.15);
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .hero-geom {
    width: 80px !important;
    height: 80px !important;
  }
  .hex-float.hex-1 { width: 32px; height: 32px; }
  .hex-float.hex-2 { width: 24px; height: 24px; }
  .hex-float.hex-3 { width: 20px; height: 20px; }
}

/* ── Memorial hero text (ported from index-de.html) ── */
.hero-memorial {
  position: relative;
  text-align: center;
}

.hero-label {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #c9a84c;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.hero-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 2.25rem;
  color: #e8e6e1;
}

.hero-title em {
  font-style: italic;
  color: #c9a84c;
}

.hero-subtitle {
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.4;
  color: #e8e6e1;
  max-width: 440px;
  margin: 0 auto 0.5rem;
}

.scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8a8780;
  opacity: 0.5;
  animation: pulse 3s ease-in-out infinite;
}

/* ── Section divider ── */
.section-divider {
  width: 1px;
  height: 24px;
  background: linear-gradient(to bottom, transparent, #c9a84c, transparent);
  margin: 0 auto;
}

/* ─── Impressum page ─── */
.impressum-cover {
  min-height: 100vh !important;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-y: auto;
  box-sizing: border-box;
  background: linear-gradient(135deg, #0a0a0c 0%, #111115 50%, #0a0a0c 100%);
}
.impressum-header {
  text-align: center;
  margin-bottom: 0.25rem;
}
.impressum-body p {
  margin: 0.35rem 0;
}
.impressum-body a:hover {
  color: #d4b85c !important;
}

/* ── Animations ── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s ease forwards;
}

.fade-in-delay {
  animation-delay: 0.3s;
}

@keyframes fadeIn {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 0.7; transform: translateY(4px); }
}

/* ─── Collapse Gutenberg spacing ─── */
.wp-block-cover__inner-container > * {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}
.wp-block-group {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.wp-block-heading {
  margin-block-start: 0.2rem !important;
  margin-block-end: 0.2rem !important;
}
.wp-block-group > .wp-block-group:first-child {
  padding-top: 0 !important;
}
.hero-memorial + .section-divider {
  margin-top: 0.15rem !important;
  margin-bottom: 0.15rem !important;
}
