/*
Theme Name: FassadenZoom
Theme URI: https://example.com/fassadenzoom
Author: OpenAI
Author URI: https://openai.com
Description: Interaktives WordPress-Theme mit klickbarer Geschaeftsfront fuer Desktop und touchfreundlicher Mobile-Ansicht.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: fassadenzoom
*/

:root {
  --fz-bg: #f4f7fb;
  --fz-bg-soft: #eef3f8;
  --fz-surface: rgba(255, 255, 255, 0.78);
  --fz-surface-strong: rgba(255, 255, 255, 0.94);
  --fz-surface-dark: rgba(11, 18, 32, 0.86);
  --fz-ink: #141b2d;
  --fz-muted: #5e6981;
  --fz-accent: #3768ff;
  --fz-accent-strong: #234cce;
  --fz-accent-soft: rgba(55, 104, 255, 0.12);
  --fz-line: rgba(20, 27, 45, 0.08);
  --fz-line-strong: rgba(20, 27, 45, 0.14);
  --fz-shadow: 0 26px 80px rgba(30, 43, 77, 0.14);
  --fz-shadow-soft: 0 18px 48px rgba(30, 43, 77, 0.10);
  --fz-radius-xl: 36px;
  --fz-radius-lg: 28px;
  --fz-radius-md: 20px;
  --fz-radius-sm: 14px;
  --fz-max-width: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--fz-ink);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.95), transparent 34%),
    radial-gradient(circle at top right, rgba(173, 205, 255, 0.22), transparent 26%),
    linear-gradient(180deg, #f7faff 0%, #eef3f9 46%, #edf2f8 100%);
  min-height: 100vh;
}

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

iframe {
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

p,
ul,
ol {
  margin-top: 0;
}

ul,
ol {
  padding-left: 1.1rem;
}

a {
  color: var(--fz-accent-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:hover,
a:focus {
  color: var(--fz-accent);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 999;
  background: #fff;
  color: var(--fz-ink);
  padding: 0.8rem 1rem;
  border-radius: 999px;
  box-shadow: var(--fz-shadow-soft);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: blur(18px);
  background: rgba(244, 247, 251, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.48);
}

.site-header__inner,
.site-main,
.site-footer__inner {
  width: min(calc(100% - 2rem), var(--fz-max-width));
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  min-width: 0;
}

.site-branding .custom-logo,
.site-branding .custom-logo-link img {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  object-fit: contain;
}

.site-title,
.site-description {
  margin: 0;
}

.site-title {
  font-size: 1.05rem;
  line-height: 1.2;
}

.site-title a {
  color: inherit;
  text-decoration: none;
}

.site-description {
  margin-top: 0.18rem;
  color: var(--fz-muted);
  font-size: 0.94rem;
}

.primary-navigation .menu,
.primary-navigation ul {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.primary-navigation a {
  color: var(--fz-ink);
  text-decoration: none;
  font-weight: 600;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.primary-navigation a:hover,
.primary-navigation a:focus {
  background: rgba(255, 255, 255, 0.82);
  color: var(--fz-accent-strong);
}

.site-main {
  padding: 2rem 0 4rem;
}

.site-footer {
  padding: 0 0 2rem;
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.15rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: var(--fz-shadow-soft);
  color: var(--fz-muted);
}

.site-footer p {
  margin: 0;
}

.fz-frontpage {
  display: grid;
  gap: 1.5rem;
}

.fz-intro-card,
.fz-stage-shell,
.fz-support-card,
.fz-mobile-card,
.entry-card,
.fz-archive-card,
.no-results,
.archive-header,
.post-navigation,
.posts-navigation,
.comment-respond,
.comments-area {
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--fz-radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78));
  backdrop-filter: blur(18px);
  box-shadow: var(--fz-shadow);
}

.fz-intro-card {
  padding: clamp(1.4rem, 3vw, 2rem);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: end;
}

.fz-kicker,
.fz-stage-label,
.fz-support-label,
.fz-stat-label,
.fz-panel-badge,
.entry-meta,
.archive-description,
.fz-inline-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  padding: 0.45rem 0.78rem;
  border-radius: 999px;
  background: var(--fz-accent-soft);
  color: var(--fz-accent-strong);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.fz-intro-copy h1 {
  margin: 0.9rem 0 0.8rem;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  max-width: 12ch;
}

.fz-lead {
  margin: 0;
  max-width: 62ch;
  color: var(--fz-muted);
  font-size: 1.02rem;
}

.fz-intro-stats {
  display: grid;
  gap: 0.9rem;
}

.fz-stat-card {
  padding: 1rem 1.1rem;
  border-radius: 24px;
  background: rgba(246, 249, 255, 0.9);
  border: 1px solid rgba(55, 104, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.fz-stat-card strong {
  display: block;
  font-size: 1rem;
  line-height: 1.4;
}

.fz-stage-shell {
  padding: 1.1rem;
  display: grid;
  gap: 1rem;
}

.fz-stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.fz-stage-header h2,
.fz-mobile-stage__overlay h2,
.fz-support-card h3,
.fz-mobile-card h3,
.archive-title,
.entry-title,
.fz-archive-card h2,
.no-results h1,
.no-results h2 {
  margin: 0.5rem 0 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.fz-stage-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.fz-stage-pills,
.fz-panel-tags {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.fz-stage-pills span,
.fz-panel-tags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(20, 27, 45, 0.05);
  color: var(--fz-ink);
  font-weight: 600;
  font-size: 0.92rem;
}

.fz-reset-button,
.fz-link-button,
.wp-block-button__link,
button[type="submit"],
input[type="submit"] {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.86rem 1.15rem;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, var(--fz-accent) 0%, var(--fz-accent-strong) 100%);
  box-shadow: 0 14px 30px rgba(55, 104, 255, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.fz-reset-button:hover,
.fz-reset-button:focus,
.fz-link-button:hover,
.fz-link-button:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus,
button[type="submit"]:hover,
button[type="submit"]:focus,
input[type="submit"]:hover,
input[type="submit"]:focus {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.fz-reset-button[hidden] {
  display: none;
}

.fz-scene-frame {
  position: relative;
  overflow: hidden;
  min-height: 720px;
  aspect-ratio: 16 / 10;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(11, 18, 32, 0.10) 0%, rgba(11, 18, 32, 0.22) 100%),
    linear-gradient(180deg, #dbe7f8 0%, #cfdced 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.fz-scene-inner {
  position: absolute;
  inset: 0;
  transform-origin: top left;
  transition: transform 0.82s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.fz-scene-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fz-scene-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.22), transparent 22%),
    linear-gradient(180deg, rgba(15, 26, 48, 0.03) 20%, rgba(15, 26, 48, 0.16) 100%);
  pointer-events: none;
}

.fz-hotspot {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  transform: translate(-50%, -50%);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.fz-hotspot__dot {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 0 8px rgba(55, 104, 255, 0.16),
    0 10px 22px rgba(15, 26, 48, 0.24);
}

.fz-hotspot__dot::after {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.75);
  opacity: 0.85;
}

.fz-hotspot__label {
  display: inline-flex;
  align-items: center;
  padding: 0.58rem 0.92rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 36px rgba(15, 26, 48, 0.16);
  font-weight: 700;
  color: var(--fz-ink);
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.fz-hotspot:hover .fz-hotspot__label,
.fz-hotspot:focus-visible .fz-hotspot__label,
.fz-hotspot.is-active .fz-hotspot__label {
  transform: translateY(-1px);
  background: rgba(55, 104, 255, 0.96);
  color: #fff;
}

.fz-hotspot.is-active .fz-hotspot__dot,
.fz-hotspot:hover .fz-hotspot__dot,
.fz-hotspot:focus-visible .fz-hotspot__dot {
  box-shadow:
    0 0 0 10px rgba(55, 104, 255, 0.24),
    0 14px 34px rgba(15, 26, 48, 0.28);
}

.fz-overlay-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.fz-focus-panel {
  position: absolute;
  left: 1.25rem;
  top: 1.25rem;
  width: min(360px, calc(100% - 2.5rem));
  padding: 1.05rem;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 60px rgba(15, 26, 48, 0.20);
  color: var(--fz-ink);
  pointer-events: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
}

.fz-focus-panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.fz-focus-panel--wide {
  width: min(440px, calc(100% - 2.5rem));
}

.fz-focus-panel--default {
  left: 50%;
  top: auto;
  bottom: 1.2rem;
  width: min(420px, calc(100% - 2.4rem));
  transform: translate(-50%, 10px);
}

.fz-focus-panel--default.is-active {
  transform: translate(-50%, 0);
}

.fz-focus-panel h3 {
  margin: 0.6rem 0 0.7rem;
  font-size: 1.32rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.fz-focus-panel p,
.fz-support-card p,
.fz-mobile-card p,
.archive-description,
.entry-content,
.fz-archive-card p,
.no-results p {
  color: var(--fz-muted);
}

.fz-hours-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.fz-hours-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 0.85rem;
  border-radius: 18px;
  background: rgba(244, 247, 251, 0.92);
  border: 1px solid rgba(20, 27, 45, 0.05);
}

.fz-hours-list li strong {
  min-width: 0;
}

.fz-hours-list li span {
  text-align: right;
  color: var(--fz-muted);
  font-weight: 600;
}

.fz-inline-posts {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.fz-inline-post {
  padding: 0.82rem 0.92rem;
  border-radius: 18px;
  background: rgba(246, 249, 255, 0.92);
  border: 1px solid rgba(20, 27, 45, 0.06);
}

.fz-inline-post h4 {
  margin: 0.45rem 0 0.35rem;
  font-size: 1rem;
  line-height: 1.22;
}

.fz-inline-post h4 a {
  color: inherit;
  text-decoration: none;
}

.fz-inline-post p {
  margin: 0;
  font-size: 0.95rem;
}

.fz-inline-post--empty {
  text-align: left;
}

.fz-panel-link-wrap {
  margin-top: 0.95rem;
  margin-bottom: 0;
}

.fz-support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.fz-support-card {
  padding: 1.2rem 1.25rem;
}

.fz-desktop-only {
  display: grid;
  gap: 1rem;
}

.fz-mobile-only {
  display: none;
}

.fz-mobile-stage {
  display: grid;
  gap: 1rem;
}

.fz-mobile-stage__visual {
  position: relative;
  overflow: hidden;
  min-height: 380px;
  border-radius: var(--fz-radius-xl);
  background: #dbe7f8;
  box-shadow: var(--fz-shadow);
}

.fz-mobile-stage__visual .fz-scene-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fz-mobile-stage__overlay {
  position: absolute;
  inset: auto 1rem 1rem 1rem;
  padding: 1rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
}

.fz-mobile-nav,
.fz-mobile-sections {
  display: grid;
  gap: 0.9rem;
}

.fz-mobile-nav {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fz-mobile-nav__item,
.fz-mobile-card {
  text-decoration: none;
  color: inherit;
}

.fz-mobile-nav__item {
  padding: 1rem;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.64);
  box-shadow: var(--fz-shadow-soft);
}

.fz-mobile-nav__item strong {
  display: block;
  font-size: 1rem;
}

.fz-mobile-nav__item span {
  display: block;
  margin-top: 0.3rem;
  color: var(--fz-muted);
}

.fz-mobile-card {
  padding: 1.15rem;
}

.fz-mobile-card .fz-hours-list,
.fz-mobile-card .fz-inline-posts {
  margin-top: 0.95rem;
}

.fz-simple-grid {
  display: grid;
  gap: 1rem;
}

.entry-card,
.fz-archive-card,
.archive-header,
.no-results,
.comments-area,
.comment-respond,
.post-navigation,
.posts-navigation {
  padding: 1.35rem;
}

.archive-header h1,
.archive-header h2,
.entry-title,
.fz-archive-card h2 {
  margin-top: 0.75rem;
}

.fz-archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.entry-title a,
.fz-archive-card h2 a {
  color: inherit;
  text-decoration: none;
}

.entry-content > :last-child,
.fz-archive-card > :last-child,
.entry-card > :last-child {
  margin-bottom: 0;
}

.post-navigation,
.posts-navigation {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.post-navigation .nav-links,
.posts-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  flex-wrap: wrap;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea {
  width: 100%;
  padding: 0.82rem 0.92rem;
  border-radius: 16px;
  border: 1px solid var(--fz-line-strong);
  background: rgba(255, 255, 255, 0.94);
}

label {
  font-weight: 600;
}

.wp-block-image,
.wp-block-gallery,
.wp-block-embed,
.entry-content img {
  border-radius: 24px;
}

.gallery,
.wp-block-gallery {
  gap: 1rem;
}

@media (max-width: 1200px) {
  .fz-scene-frame {
    min-height: 660px;
  }
}

@media (max-width: 980px) {
  .site-header__inner,
  .site-footer__inner {
    width: min(calc(100% - 1.2rem), var(--fz-max-width));
  }

  .site-main {
    width: min(calc(100% - 1.2rem), var(--fz-max-width));
  }

  .fz-intro-card {
    grid-template-columns: 1fr;
  }

  .fz-desktop-only {
    display: none;
  }

  .fz-mobile-only {
    display: grid;
    gap: 1rem;
  }

  .fz-archive-grid,
  .fz-support-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header__inner {
    align-items: flex-start;
  }

  .primary-navigation .menu,
  .primary-navigation ul {
    gap: 0.45rem;
  }

  .primary-navigation a {
    padding: 0.45rem 0.65rem;
  }

  .site-main {
    padding-top: 1.2rem;
    padding-bottom: 2.5rem;
  }

  .fz-intro-card,
  .fz-mobile-card,
  .archive-header,
  .entry-card,
  .fz-archive-card,
  .no-results {
    border-radius: 28px;
  }

  .fz-intro-copy h1 {
    font-size: clamp(2rem, 12vw, 3rem);
    max-width: 100%;
  }

  .fz-mobile-nav {
    grid-template-columns: 1fr;
  }

  .fz-mobile-stage__visual {
    min-height: 320px;
  }

  .fz-hours-list li {
    grid-template-columns: 1fr;
  }

  .fz-hours-list li span {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
