/* ══════════════════════════════════════════
   breeev.io – Core Styles (shared)
   ══════════════════════════════════════════ */

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

:root {
  --gap: 3px;
  --tile: 140px;
  --flip-duration: 0.55s;
  --green: #95d600;
}

html {
  width: 100%; height: 100%;
  background: #050608;
}
body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: #050608;
}

/* ── TILE WALL ── */
#wall {
  position: fixed;
  inset: 0;
  display: grid;
  gap: var(--gap);
  z-index: 1;
}
#wall.dimmed .tile { pointer-events: none; }
#wall.dimmed .tile-bg { filter: brightness(0.45) saturate(0.6) !important; }
#wall.dimmed .tile-flipper { transition: none; }
#wall.dimmed .tile-hero-content { display: none; }

/* ── TILE WRAPPER ── */
.tile {
  position: relative;
  perspective: 600px;
  opacity: 0;
  animation: tileIn 0.5s forwards;
}
@keyframes tileIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── FLIPPER (rotates) ── */
.tile-flipper {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform var(--flip-duration) cubic-bezier(.4,0,.2,1);
}

/* Desktop: hover to flip */
@media (hover: hover) {
  .tile:hover .tile-flipper {
    transform: rotateY(180deg);
  }
}

/* Mobile: tap to flip via .flipped class */
.tile.flipped .tile-flipper {
  transform: rotateY(180deg);
}

/* ── FRONT FACE ── */
.tile-front {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

/* bg slice */
.tile-bg {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  filter: brightness(0.72) saturate(1.1);
}

/* thin seam */
.tile-front::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.5);
  pointer-events: none;
  z-index: 2;
}

/* ── BACK FACE ── */
.tile-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: rotateY(180deg);
  background: #0c1520;
  border-left: 2px solid var(--green);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
}
.tile-back::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,229,160,0.07) 0%, transparent 60%);
  pointer-events: none;
}

.tile-eyebrow {
  font-family: system-ui, sans-serif;
  font-size: 0.46rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 5px;
  position: relative;
}
.tile-title {
  font-family: Georgia, serif;
  font-size: 0.8rem;
  font-weight: bold;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 5px;
  position: relative;
}
.tile-body {
  font-family: system-ui, sans-serif;
  font-size: 0.57rem;
  color: rgba(255,255,255,0.52);
  line-height: 1.5;
  position: relative;
}
.tile-cta {
  display: inline-block;
  margin-top: 9px;
  padding: 4px 10px;
  background: var(--green);
  color: #050608;
  font-family: system-ui, sans-serif;
  font-size: 0.54rem;
  font-weight: bold;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  align-self: flex-start;
  position: relative;
}

/* ── HERO TILE (2×2, no flip) ── */
.tile-hero {
  cursor: default;
}
.tile-hero .tile-flipper {
  transition: none;
}
.tile-hero:hover .tile-flipper {
  transform: none;
}
.tile-hero .tile-bg {
  filter: brightness(0.55) saturate(0.5);
}
.tile-hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  isolation: auto;
  background: transparent;
}
.hero-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: system-ui, sans-serif;
  font-size: 0.48rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.hero-nav a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s;
}
.hero-nav a:hover {
  color: var(--green);
}
.hero-nav span {
  color: rgba(255,255,255,0.2);
}
.hero-logo {
  width: 120px;
  height: auto;
  display: block;
}

/* ── NAV TILES ── */
.tile-nav-front-label {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.5);
  z-index: 3;
  pointer-events: none;
  white-space: nowrap;
}
.tile-nav-back {
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
}
.tile-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  width: 100%;
  height: 100%;
}
.tile-nav-label {
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
  text-align: center;
  line-height: 1;
}
.tile-nav-arrow {
  font-size: 1.2rem;
  color: var(--green);
  transition: transform 0.2s;
  display: inline-block;
  line-height: 1;
}
.tile-nav-link:hover .tile-nav-arrow {
  transform: translateX(4px);
}

/* ── DOTS INDICATOR ── */
#dots {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  gap: 10px;
  align-items: center;
}
.dot {
  width: 6px;
  height: 6px;
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
  transition: background 0.4s, transform 0.4s;
}
.dot.active {
  background: var(--green);
  transform: scale(1.4);
}

/* ── OVERLAY ── */
#overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(5,6,8,0.72);
  backdrop-filter: blur(8px);
  overflow-y: auto;
  animation: fadeIn 0.3s ease;
}
#overlay.open { display: flex; justify-content: center; align-items: flex-start; padding: 60px 24px 60px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.overlay-inner {
  max-width: 640px;
  width: 100%;
  position: relative;
}
.overlay-close {
  position: fixed;
  top: 24px;
  right: 28px;
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.5);
  font-family: system-ui, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
}
.overlay-close:hover { border-color: var(--green); color: var(--green); }

.overlay-eyebrow {
  font-family: system-ui, sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}
.overlay-inner h1 {
  font-family: Georgia, serif;
  font-size: 2rem;
  font-weight: bold;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(0,229,160,0.2);
  padding-bottom: 20px;
}
.overlay-inner h2 {
  font-family: system-ui, sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin: 28px 0 10px;
}
.overlay-inner p, .overlay-inner li {
  font-family: Georgia, serif;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 12px;
}
.overlay-inner a { color: var(--green); text-decoration: none; }
.overlay-inner a:hover { text-decoration: underline; }

/* ── CONTACT FORM ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}
.contact-grid .full { grid-column: 1 / -1; }
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field label {
  font-family: system-ui, sans-serif;
  font-size: 0.52rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(0,229,160,0.7);
}
.form-field input,
.form-field textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 0.88rem;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}
.form-field input:focus,
.form-field textarea:focus { border-color: var(--green); }
.form-field textarea { min-height: 120px; }
.form-submit {
  margin-top: 20px;
  background: var(--green);
  color: #050608;
  font-family: system-ui, sans-serif;
  font-size: 0.62rem;
  font-weight: bold;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: none;
  padding: 14px 32px;
  cursor: pointer;
  transition: background 0.2s;
}
.form-submit:hover { background: #7db800; }
.form-submit:disabled {
  opacity: 0.5;
  cursor: wait;
}

/* ── CAPTCHA ── */
.captcha-field {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 14px;
  margin-top: 4px;
}
.captcha-question {
  color: var(--green);
  font-weight: 600;
}
.captcha-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.captcha-row input {
  flex: 1;
  -moz-appearance: textfield;
}
.captcha-row input::-webkit-outer-spin-button,
.captcha-row input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.captcha-refresh {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--green);
  font-size: 1.1rem;
  padding: 0 14px;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1;
}
.captcha-refresh:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--green);
}

/* ── HONEYPOT (versteckt) ── */
.form-honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

/* ── FEEDBACK ── */
.form-feedback {
  margin-top: 16px;
  font-family: system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  line-height: 1.5;
  min-height: 0;
  transition: all 0.3s;
}
.form-feedback:empty {
  display: none;
}
.form-feedback-success {
  color: var(--green);
  padding: 12px 16px;
  background: rgba(149,214,0,0.08);
  border-left: 3px solid var(--green);
}
.form-feedback-error {
  color: #ff6b6b;
  padding: 12px 16px;
  background: rgba(255,107,107,0.08);
  border-left: 3px solid #ff6b6b;
}

.contact-info {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-info p {
  font-family: system-ui, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  margin: 0;
}
.contact-info a { color: rgba(255,255,255,0.4); }
.contact-info a:hover { color: var(--green); }

@media (max-width: 500px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid .full { grid-column: 1; }
}

/* ── BADGES ── */
#cyberlago-badge {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}
#cyberlago-label {
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}
#cyberlago-logo {
  width: 120px;
  height: auto;
  opacity: 0.85;
  transition: opacity 0.2s;
}
#cyberlago-logo:hover { opacity: 1; }
#oekostrom-logo {
  width: 120px;
  height: auto;
  opacity: 0.85;
  transition: opacity 0.2s;
}
#oekostrom-logo:hover { opacity: 1; }
#serverstandort-logo {
  width: 100px;
  height: auto;
  opacity: 0.85;
  transition: opacity 0.2s;
}
#serverstandort-logo:hover { opacity: 1; }

/* ── RESPONSIVE: BADGES ── */
@media (max-width: 480px) {
  #cyberlago-badge {
    right: 10px;
    bottom: 10px;
    gap: 8px;
  }
  #cyberlago-logo { width: 70px; }
  #oekostrom-logo { width: 70px; }
  #serverstandort-logo { width: 60px; }
}

/* ── RESPONSIVE: DOTS ── */
@media (max-width: 480px) {
  #dots { bottom: 10px; }
}

/* ── RESPONSIVE: OVERLAY ── */
@media (max-width: 480px) {
  #overlay.open { padding: 40px 16px 40px; }
  .overlay-close {
    top: 12px;
    right: 16px;
    font-size: 0.6rem;
    padding: 5px 10px;
  }
  .overlay-inner h1 { font-size: 1.5rem; }
  .overlay-inner p, .overlay-inner li { font-size: 0.8rem; }
}

/* ── UTILITY ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
