/* pferdient.de – shared base styles
 * Used by all legal pages (impressum, datenschutz, kontakt) and as a
 * reference for the landing page. The landing page (index.html) keeps its
 * own self-contained <style> block; this file covers the shared primitives.
 */

:root {
  --bg: #fbfbfd;
  --bg-secondary: #f5f5f7;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.09);
  --radius: 28px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-variant-numeric: tabular-nums;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* NAV */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(251, 251, 253, 0.85);
  backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.035);
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-inner {
  width: 100%;
  max-width: 1100px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  text-decoration: none;
}

.logo span {
  color: var(--accent);
  font-weight: 500;
}

.home-link {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.home-link:hover {
  color: var(--text);
}

.home-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* CONTENT AREA */

.content-wrapper {
  max-width: 720px;
  margin: 0 auto;
  padding: 120px 24px 100px;
}

.page-title {
  font-size: clamp(32px, 5vw, 42px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 28px;
  color: var(--text);
  text-wrap: balance;
}

.page-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 28px;
  text-wrap: pretty;
}

/* LEGAL CONTENT */

.legal-content {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  overflow-wrap: break-word;
}

.legal-content h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-top: 28px;
  margin-bottom: 12px;
  color: var(--text);
  text-wrap: balance;
}

.legal-content h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 20px;
  margin-bottom: 8px;
  color: var(--text);
  text-wrap: balance;
}

.legal-content p {
  margin-bottom: 14px;
  text-wrap: pretty;
}

.legal-content ul {
  margin: 10px 0 14px 24px;
}

.legal-content li {
  margin-bottom: 6px;
  line-height: 1.6;
  text-wrap: pretty;
}

.legal-content a {
  color: var(--accent);
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

.legal-content .note {
  font-size: 13px;
  color: var(--text-secondary);
  font-style: italic;
}

/* CONTACT FORM */

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input,
.form-textarea {
  width: 100%;
  font-size: 15.5px;
  font-family: var(--font);
  font-weight: 500;
  border: 1.5px solid rgba(0, 0, 0, 0.09);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  padding: 14px 18px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus-visible,
.form-textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--accent);
  box-shadow: rgba(0, 113, 227, 0.14) 0 0 0 4px;
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.submit-btn {
  height: 54px;
  padding: 0 28px;
  background: var(--accent);
  color: #fff;
  font-size: 15.5px;
  font-weight: 600;
  font-family: var(--font);
  border: none;
  border-radius: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: rgba(0, 113, 227, 0.3) 0 4px 16px;
}

.submit-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.03);
  box-shadow: rgba(0, 113, 227, 0.4) 0 6px 22px;
}

.submit-btn:active {
  transform: scale(0.97);
}

/* FOOTER */

footer {
  background: var(--bg-secondary);
  padding: 36px 24px 28px;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-links a.active {
  color: var(--accent);
  font-weight: 600;
}

.footer-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.footer-copy {
  font-size: 12px;
  color: rgb(134, 134, 139);
}

/* MOBILE */

@media (max-width: 560px) {
  .content-wrapper {
    padding: 100px 18px 80px;
  }

  .nav-inner {
    padding: 0 18px;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
  }
}

/* Kontakt form */

.contact-form-heading {
  margin-top: 48px;
}

.contact-form-wrapper {
  margin-top: 24px;
}

.submit-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* iOS Safari input zoom prevention */

@media (max-width: 640px) {
  .form-input,
  .form-textarea {
    font-size: 16px;
  }

  /* Kontakt form button: full width on mobile for better tap targets */
  #contact-form .submit-btn {
    width: 100%;
  }
}

/* Reduced motion guard */

@media (prefers-reduced-motion: reduce) {
  .form-input:focus-visible,
  .form-textarea:focus-visible {
    box-shadow: none;
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }

  .submit-btn:hover {
    transform: none;
  }

  .submit-btn:active {
    transform: none;
  }
}

/* Contact form messages */

.contact-message {
  text-align: center;
  font-size: 14.5px;
  font-weight: 500;
  margin-top: 16px;
}

.contact-error {
  display: none;
  color: #ff3b30;
}

.contact-success {
  display: none;
  color: #34c759;
}
