/*
Theme Name: Onepager Logo + Kontakt
Description: Minimales Onepager-Theme. Sichtbar sind nur das Firmenlogo und ein Kontaktformular.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: onepager
*/

:root {
  --op-bg: #ffffff;
  --op-accent: #5b5350;
  --op-text: #2b2725;
  --op-muted: #6b6562;
  --op-border: #d9d9d9;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--op-bg);
  color: var(--op-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
}

.op-main {
  flex: 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 64px 20px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Logo */
.op-logo { margin-bottom: 48px; text-align: center; }
.op-logo img, .op-logo .custom-logo { display: block; width: 280px; max-width: 80vw; height: auto; margin: 0 auto; }
.op-logo a { display: inline-block; }
.op-logo-text { font-size: 1.75rem; font-weight: 600; letter-spacing: .02em; }

/* Formular */
.op-form { width: 100%; }
.op-heading { margin: 0 0 20px; font-size: 1.125rem; font-weight: 600; text-align: center; }

.op-field { margin-bottom: 16px; }
.op-field label { display: block; margin-bottom: 6px; font-size: .875rem; font-weight: 500; }
.op-field input[type="text"],
.op-field input[type="email"],
.op-field input[type="tel"],
.op-field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: inherit;
  background: #fff;
  border: 1px solid var(--op-border);
  border-radius: 6px;
  transition: border-color .15s, box-shadow .15s;
}
.op-field textarea { min-height: 150px; resize: vertical; }
.op-field input:focus,
.op-field textarea:focus {
  outline: none;
  border-color: var(--op-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--op-accent) 20%, transparent);
}

.op-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .8125rem; color: var(--op-muted); }
.op-consent input { margin-top: 3px; flex: none; }
.op-consent a { color: inherit; }

.op-button {
  width: 100%;
  padding: 14px 20px;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--op-accent);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity .15s;
}
.op-button:hover { opacity: .88; }
.op-button:focus-visible { outline: 3px solid color-mix(in srgb, var(--op-accent) 40%, transparent); outline-offset: 2px; }

/* Honeypot: für Menschen unsichtbar */
.op-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Meldungen */
.op-notice { width: 100%; margin-bottom: 20px; padding: 12px 14px; border-radius: 6px; font-size: .9375rem; }
.op-notice--ok { background: #e8f5ec; color: #14532d; border: 1px solid #b7e0c3; }
.op-notice--err { background: #fdecec; color: #7f1d1d; border: 1px solid #f3bcbc; }

/* Fusszeile (nur sichtbar, wenn Links hinterlegt sind) */
.op-footer { padding: 20px; text-align: center; font-size: .8125rem; color: var(--op-muted); }
.op-footer a { color: inherit; margin: 0 8px; }

@media (max-width: 480px) {
  .op-main { padding-top: 40px; }
  .op-logo { margin-bottom: 32px; }
}
