/*
Theme Name: Zentralsonne – GQ-Balance
Description: Einseitige Landingpage für zentralsonne.at mit Hinweis auf die neue Marke GQ-Balance. Video über Design → Customizer → „Zentralsonne Landingpage“, Checkliste unter Design → „Landingpage-Checkliste“.
Author: MME-pro Marketingagentur
Version: 7.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: zentralsonne
*/

/* GQ-Balance shop styles: black page, gold logo, Asul uppercase headings, Karla text */
:root {
  --black: #000;
  --ink: #1c1c1c;
  --white: #fff;
  --text-light: #d9d3c9;
  --muted: #a39b8f;
  --gold: #d8a74a;
  --heading: "Asul", Georgia, serif;
  --text: "Karla", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font: 400 clamp(1rem, .95rem + .25vw, 1.15rem)/1.75 var(--text);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(32px, 4vw, 52px) clamp(20px, 4vw, 64px) clamp(56px, 7vw, 96px);
}

.logo { width: clamp(80px, 7vw, 110px); }

/* Two columns: text left, video right */
.split {
  flex: 1;
  width: 100%;
  max-width: 1360px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(40px, 5vw, 88px);
  margin-top: clamp(36px, 5vw, 72px);
}

h1, h2 {
  margin: 0;
  font-family: var(--heading);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .16em;
}
h1 {
  font-size: clamp(1.45rem, .9rem + 1.3vw, 2.3rem);
  line-height: 1.4;
  letter-spacing: .1em;
}
h2 {
  margin-top: clamp(12px, 1.4vw, 20px);
  font-size: clamp(.85rem, .75rem + .35vw, 1.1rem);
  color: var(--gold);
}
.line {
  width: 64px;
  height: 1px;
  margin: clamp(22px, 2.4vw, 34px) 0;
  background: var(--gold);
  border: 0;
}
.copy { color: var(--text-light); }
.copy p { margin: 0 0 1em; }
.copy strong { color: var(--white); font-weight: 700; }

.button {
  display: inline-block;
  margin-top: clamp(10px, 1.4vw, 18px);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: clamp(.82rem, .78rem + .2vw, .95rem);
  font-weight: 500;
  line-height: 1.65;
  padding: 1.1em 2.4em;
  border: 1px solid var(--white);
  transition: background .2s, color .2s, border-color .2s;
}
.button:hover, .button:focus-visible { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.note { margin: 14px 0 0; font-size: .9em; color: var(--muted); }

/* Button pinned top right */
.button-top {
  position: fixed;
  top: clamp(14px, 2vw, 28px);
  right: clamp(14px, 2vw, 28px);
  z-index: 50;
  margin: 0;
  background: rgba(0, 0, 0, .6);
  color: var(--white);
  border-color: var(--gold);
  font-size: clamp(.72rem, .68rem + .15vw, .85rem);
  padding: .9em 1.6em;
  backdrop-filter: blur(4px);
}
.button-top .short { display: none; }

/* Video without any frame or edge – its black background blends into the page */
.video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--black);
  overflow: hidden;
}
.video video::-webkit-media-controls,
.video video::-webkit-media-controls-enclosure { display: none !important; }
.video video,
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
.video-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  color: rgba(255, 255, 255, .5);
  font-size: .85rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* Tablet + mobile: video first, text below */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; max-width: 680px; }
  .video { order: -1; }
  .text { text-align: center; }
  .line { margin-inline: auto; }
  .copy { text-align: left; }
}
@media (max-width: 600px) {
  .page { padding-top: 84px; }
  h1 { letter-spacing: .1em; }
  .button { letter-spacing: .12em; padding: 1.1em 1.6em; }
  .button-top { padding: .8em 1.1em; }
  .button-top .long { display: none; }
  .button-top .short { display: inline; }
}

/* Text from the "Startseite" page (block editor) – same look as the built-in text */
.content > :first-child { margin-top: 0; }
.content h1, .content h2 { margin-bottom: 0; }
.content h1 { color: var(--white); }
.content h2 { margin-top: clamp(12px, 1.4vw, 20px); }
.content p { margin: 0 0 1em; color: var(--text-light); }
.content strong { color: var(--white); font-weight: 700; }
.content .wp-block-separator {
  width: 64px;
  height: 1px;
  margin: clamp(22px, 2.4vw, 34px) 0;
  background: var(--gold);
  border: 0;
  opacity: 1;
}
.content .wp-block-buttons { margin: clamp(10px, 1.4vw, 18px) 0 0; gap: 12px; }
.content .wp-block-button__link {
  display: inline-block;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--white);
  border-radius: 0;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-family: var(--text);
  font-size: clamp(.82rem, .78rem + .2vw, .95rem);
  font-weight: 500;
  line-height: 1.65;
  padding: 1.1em 2.4em;
  transition: background .2s, color .2s, border-color .2s;
}
.content .wp-block-button__link:hover,
.content .wp-block-button__link:focus-visible { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.content p.note { margin: 14px 0 0; font-size: .9em; color: var(--muted); }
@media (max-width: 900px) {
  .content .wp-block-separator { margin-inline: auto; }
  .content .wp-block-buttons { justify-content: center; }
  .content p:not(.note) { text-align: left; }
}
@media (max-width: 600px) {
  .content .wp-block-button__link { letter-spacing: .12em; padding: 1.1em 1.6em; }
}

/* Embedded YouTube/Vimeo: no interaction with the player */
.video iframe { pointer-events: none; }

/* No video: text alone, centered */
body.no-video .split { grid-template-columns: 1fr; max-width: 760px; }
body.no-video .text { text-align: center; }
body.no-video .line { margin-inline: auto; }
body.no-video .copy { text-align: left; }

/* Logged in: keep the pinned button below the WordPress admin bar */
body.admin-bar .button-top { top: calc(46px + 14px); }
@media (min-width: 783px) { body.admin-bar .button-top { top: calc(32px + clamp(14px, 2vw, 28px)); } }
