/*
Theme Name: Sebastian Frey Landing
Theme URI: https://fuenfgroschenverlag.com
Author: Hermann Sinther / Fünfgroschenverlag
Description: Minimalistisches Under-Construction-Theme für die Sebastian-Frey-Self-Help-Domains. Setzt Newsletter-Anmeldung mit Mailjet + Double-Opt-in um. Pro Domain über den Customizer konfiguriert (Domain-Name, Cluster-Satz, Akzentfarbe, Cross-Links, Mailjet-Credentials).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: proprietary
Text Domain: sebastian-frey-landing
*/

:root {
  --creme: #F4EDDB;
  --charcoal: #1E1E1E;
  --gold: #C9A062;
  --akzent: #8B9D83;
  --charcoal-muted: #1E1E1E99;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  background: var(--creme);
  color: var(--charcoal);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  text-align: center;
}

.sf-content {
  max-width: 600px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  animation: sfFadeIn 0.6s ease-out;
}

@keyframes sfFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.sf-logo { width: 120px; height: auto; display: block; }

h1.sf-domain {
  font-family: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--charcoal);
  line-height: 1.15;
  word-break: break-word;
}

.sf-tagline {
  font-size: 1.0625rem;
  font-weight: 400;
  max-width: 32em;
  line-height: 1.6;
}

.sf-author {
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--charcoal-muted);
  margin-top: -0.5rem;
}

.sf-newsletter {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: 0.5rem;
}

.sf-newsletter form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.sf-newsletter input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--charcoal);
  border-radius: 2px;
  background: transparent;
  font-family: inherit;
  font-size: 1rem;
  color: var(--charcoal);
  transition: border-color 0.2s ease;
}

.sf-newsletter input[type="email"]:focus {
  outline: none;
  border-color: var(--akzent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--akzent) 30%, transparent);
}

.sf-newsletter button {
  padding: 0.75rem 1.25rem;
  background: var(--akzent);
  color: var(--creme);
  border: 1px solid var(--akzent);
  border-radius: 2px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  white-space: nowrap;
}

.sf-newsletter button:hover:not(:disabled) {
  background: color-mix(in srgb, var(--akzent) 85%, black);
}

.sf-newsletter button:disabled { opacity: 0.6; cursor: wait; }
.sf-newsletter button:active { transform: translateY(1px); }

.sf-newsletter .sf-hint {
  font-size: 0.8125rem;
  color: var(--charcoal-muted);
  text-align: left;
  font-style: italic;
}

#sf-status {
  display: none;
  margin-top: 0.5rem;
  font-size: 0.9375rem;
}
#sf-status.sf-ok     { color: #3A5A3E; display: block; }
#sf-status.sf-error  { color: #8B3A3A; display: block; }

.sf-divider {
  width: 40%;
  height: 1px;
  background: var(--akzent);
  border: none;
  margin: 1rem 0 0.5rem;
  opacity: 0.6;
}

.sf-cross-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
}

.sf-cross-links h2 {
  font-size: 0.875rem;
  font-style: italic;
  font-weight: 400;
  color: var(--charcoal-muted);
  margin-bottom: 0.25rem;
}

.sf-cross-links a {
  color: var(--charcoal);
  text-decoration: none;
  font-size: 1rem;
  padding: 0.125rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.sf-cross-links a:hover,
.sf-cross-links a:focus-visible {
  color: var(--akzent);
  border-bottom-color: var(--akzent);
  outline: none;
}

footer.sf-footer {
  padding: 1.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--charcoal-muted);
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

footer.sf-footer a {
  color: var(--charcoal-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

footer.sf-footer a:hover,
footer.sf-footer a:focus-visible {
  border-bottom-color: var(--charcoal-muted);
  outline: none;
}

/* Legal pages */
.sf-legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  text-align: left;
}
.sf-legal h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}
.sf-legal h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.sf-legal p, .sf-legal ul { margin-bottom: 1rem; line-height: 1.65; }
.sf-legal ul { padding-left: 1.5rem; }
.sf-legal a {
  color: var(--akzent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sf-legal .sf-back {
  display: inline-block;
  margin-top: 2rem;
  font-size: 0.9375rem;
  color: var(--charcoal-muted);
}

/* WordPress admin bar Platz lassen, falls eingeloggt */
body.admin-bar { padding-top: 0; }

@media (max-width: 480px) {
  main { padding: 1.5rem 1rem; }
  .sf-content { gap: 1.375rem; }
  .sf-logo { width: 96px; }
  .sf-newsletter form { flex-direction: column; }
  .sf-newsletter button { width: 100%; }
}
