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

body { margin: 0; min-height: 100vh; font-family: 'VT323', monospace; font-size: 20px; line-height: 1.35; color: #6b9b6b; background: #0d1f14; position: relative; }
body .page { max-width: 960px; margin: 0 auto; padding: 16px 24px; position: relative; z-index: 1; }
body .grid { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: start; }
body .col-face { text-align: center; }
body .contact-list { list-style: none; padding: 0; margin: 0; }
body .contact-list li { padding: 5px 0; display: flex; align-items: center; gap: 8px; }
body .contact-list li .entry-icon { flex-shrink: 0; }
body .entry-icon { display: inline-flex; flex-shrink: 0; }
body .entry-icon svg { width: 24px; height: 24px; display: block; }
body .col-address { text-align: right; }
body .col-address p { margin: 0 0 8px 0; }
body .address { line-height: 1.6; }

body a { color: #8b6b9e; text-decoration: none; border-bottom: 2px solid #8b6b9e; }
body a:hover { color: #d48a9e; border-bottom-color: #d48a9e; }
body a:focus { outline: 2px solid #4a7c59; outline-offset: 2px; }
body em { font-style: normal; color: #d48a9e; }

body .header { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; border: 3px solid #4a7c59; box-shadow: 0 0 16px rgba(74, 124, 89, 0.4); margin-bottom: 16px; background: #1a2e1e; }
body .logo { display: flex; align-items: center; gap: 16px; color: #6b9b6b; }
body .logo:hover { color: #d48a9e; text-shadow: 0 0 12px #d48a9e; }
body .logo-icon { width: 32px; height: 32px; background: linear-gradient(135deg, #4a7c59 0%, #8b6b9e 100%); clip-path: polygon(0 0, 100% 0, 100% 50%, 50% 100%, 0 50%); }
body .logo-text { font-size: 28px; letter-spacing: 2px; }

body .main { padding: 16px 20px; border: 2px solid #8b6b9e; background: rgba(26, 46, 30, 0.9); }
/* Rahmengröße wird per JS aus den geladenen Bildmaßen berechnet – funktioniert bei beliebigen Dateidimensionen */
body .face-img-wrap { position: relative; display: inline-block; transition: width 0.3s ease, height 0.3s ease; }
body .face-img-wrap .face-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; border: 3px solid #4a7c59; box-shadow: 0 0 12px rgba(74, 124, 89, 0.3); transition: opacity 0.8s ease-in-out; box-sizing: border-box; }
body .face-img-wrap .face-img.face-img--hidden { opacity: 0; pointer-events: none; }
body .entry-icon { color: #8b6b9e; }
body .pixel-deco.stars { height: 20px; margin-top: 16px; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect fill='%234a7c59' width='4' height='4' x='0' y='10'/%3E%3Crect fill='%238b6b9e' width='4' height='4' x='10' y='4'/%3E%3Crect fill='%23d48a9e' width='4' height='4' x='20' y='14'/%3E%3C/svg%3E") repeat-x center; opacity: 0.8; display: block; }

/* Matrix-Effekt im Hintergrund, nach 4,3 s ausblenden */
.matrix-load { position: fixed; inset: 0; z-index: 0; background: #000; display: flex; align-items: stretch; justify-content: stretch; transition: opacity 0.8s ease-out; }
.matrix-load__canvas { display: block; width: 100%; height: 100%; }
.matrix-load.matrix-load--done { opacity: 0; pointer-events: none; }

@media (max-width: 768px) {
  body .page { padding: 12px 16px; }
  body .grid { grid-template-columns: 1fr; gap: 20px; }
  body .contact-list li { flex-wrap: wrap; padding: 10px 0; }
  body .contact-list li a { word-break: break-word; overflow-wrap: break-word; }
  body .col-address { text-align: left; }
  body .header { padding: 10px 16px; }
  body .logo-text { font-size: 22px; }
  body .main { padding: 12px 16px; }
}

@media (max-width: 480px) {
  body .page { padding: 10px 12px; }
  body .grid { gap: 16px; }
  body .contact-list li { padding: 8px 0; gap: 6px; }
  body { font-size: 18px; }
  body .header { padding: 8px 12px; }
  body .logo-text { font-size: 18px; }
  body .main { padding: 10px 12px; }
}

@media (max-width: 360px) {
  body { font-size: 16px; }
  body .logo-text { font-size: 16px; }
}
