/*
Theme Name: German Immo Inc — Under Construction
Theme URI: https://germanimmo.inc
Author: German Immo Inc
Author URI: https://germanimmo.inc
Description: Baustellen-Landingpage im Bauhaus-Zeichenblatt-Stil für German Immo Inc.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: german-immo
*/

/* ==========================================================================
   TOKENS
   ========================================================================== */

:root {
  --paper: #FAFAF6;
  --ink: #17181A;
  --blueprint: #1E4FA3;
  --blueprint-line: rgba(30, 79, 163, 0.16);
  --permit-red: #C41E3A;
  --site-yellow: #F2B705;
  --concrete: #8A8A82;
  --concrete-light: #D8D6CE;

  --display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', 'Courier New', monospace;

  --grid-gap: 64px;
}

/* ==========================================================================
   RESET
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

button, input { font-family: inherit; }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   BLUEPRINT BACKDROP
   ========================================================================== */

.blueprint {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--blueprint-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-line) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center top;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, black 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, black 40%, transparent 85%);
}

/* ==========================================================================
   SITE FRAME
   ========================================================================== */

.site {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.frame-corner {
  position: fixed;
  width: 22px;
  height: 22px;
  border: 2px solid var(--ink);
  z-index: 3;
  opacity: 0.7;
}
.frame-corner.tl { top: 20px; left: 20px; border-right: none; border-bottom: none; }
.frame-corner.tr { top: 20px; right: 20px; border-left: none; border-bottom: none; }
.frame-corner.bl { bottom: 20px; left: 20px; border-right: none; border-top: none; }
.frame-corner.br { bottom: 20px; right: 20px; border-left: none; border-top: none; }

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 56px 0;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--concrete);
}

.site-header .mark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
}

.site-header .mark .dot {
  width: 9px;
  height: 9px;
  background: var(--permit-red);
  border-radius: 50%;
  flex: none;
}

.header-right {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.site-header .ref {
  text-align: right;
}

.lang-switch {
  display: inline-flex;
  border: 1.5px solid var(--concrete-light);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  flex: none;
}

.lang-btn {
  border: none;
  background: transparent;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--concrete);
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-btn:hover { color: var(--ink); }

.lang-btn[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

.lang-btn:focus-visible {
  outline: 2.5px solid var(--blueprint);
  outline-offset: 2px;
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px 64px;
  max-width: 980px;
  margin: 0 auto;
}

.stamp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 2px solid var(--permit-red);
  color: var(--permit-red);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
  transform: rotate(-2deg);
  margin-bottom: 36px;
}

.stamp svg { width: 14px; height: 14px; }

h1.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(48px, 9vw, 108px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}

h1.wordmark .immo {
  color: var(--blueprint);
}

.subline {
  font-family: var(--body);
  font-size: clamp(16px, 2.4vw, 20px);
  color: var(--concrete);
  max-width: 560px;
  margin: 22px 0 0;
}

/* -------------------- building elevation -------------------- */

.elevation {
  width: min(680px, 88vw);
  margin: 52px auto 8px;
}

.elevation svg { width: 100%; height: auto; overflow: visible; }

.elevation path,
.elevation line,
.elevation rect,
.elevation polyline {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: draw 2.6s cubic-bezier(.65,0,.35,1) forwards;
  animation-delay: .2s;
}

.elevation .accent-fill {
  fill: var(--site-yellow);
  stroke: none;
  opacity: 0;
  animation: fadeIn .6s ease forwards;
  animation-delay: 2.4s;
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}
@keyframes fadeIn {
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .elevation path, .elevation line, .elevation rect, .elevation polyline {
    animation: none;
    stroke-dashoffset: 0;
  }
  .elevation .accent-fill { animation: none; opacity: 1; }
}

/* -------------------- progress + notify -------------------- */

.progress-row {
  width: min(420px, 90vw);
  margin: 44px auto 0;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--concrete);
  margin-bottom: 8px;
}

.progress-track {
  height: 6px;
  background: var(--concrete-light);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 64%;
  background: var(--blueprint);
  border-radius: 999px;
}

.notify {
  margin-top: 40px;
  width: min(440px, 92vw);
  display: flex;
  gap: 10px;
}

.notify input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  border: 1.5px solid var(--ink);
  background: transparent;
  border-radius: 3px;
  font-size: 15px;
  color: var(--ink);
}

.notify input[type="email"]::placeholder { color: var(--concrete); }

.notify input[type="email"]:focus-visible,
.notify button:focus-visible {
  outline: 2.5px solid var(--blueprint);
  outline-offset: 2px;
}

.notify button {
  padding: 14px 22px;
  background: var(--ink);
  color: var(--paper);
  border: none;
  border-radius: 3px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.15s ease;
  white-space: nowrap;
}

.notify button:hover { background: var(--blueprint); }

.notify-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--concrete);
}

.form-success {
  margin-top: 40px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--blueprint);
  display: none;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 56px 36px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--concrete);
}

.site-footer a { text-decoration: none; border-bottom: 1px solid transparent; }
.site-footer a:hover { border-bottom-color: currentColor; }

.site-footer .legend {
  display: flex;
  gap: 18px;
  align-items: center;
}

.legend-swatch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-swatch i {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  display: inline-block;
}

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

@media (max-width: 640px) {
  .site-header, .site-footer { padding-left: 24px; padding-right: 24px; }
  .site-header { flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 28px; }
  .site-header .ref { text-align: left; }
  .header-right { flex-direction: column; align-items: flex-start; gap: 10px; width: 100%; }
  .site-footer { flex-direction: column; gap: 10px; text-align: center; padding-bottom: 28px; }
  .notify { flex-direction: column; }
  .frame-corner { display: none; }
}
