/*
Theme Name: Fährmann Theme
Theme URI: https://faehrmann-schaprode.de
Author: JTS Marketing
Description: Custom theme for Restaurant Fährmann, Schaprode
Version: 1.0.0
License: Private
Text Domain: faehrmann
*/

:root {
  --sand: #E8DFC8;
  --sand-light: #F4F0E6;
  --ocean: #1B2F5E;
  --ocean-mid: #2A4480;
  --ocean-light: #3D5FA0;
  --gold: #E8A320;
  --gold-dark: #C48A10;
  --cream: #F8F5EE;
  --wood: #F0EDE4;
  --text: #1B2F5E;
  --text-muted: #5A5E72;
  --white: #ffffff;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  color: var(--text);
  background: var(--wood);
  overflow-x: hidden;
}

/* Elementor full-width resets */
.elementor-section.elementor-section-stretched {
  left: 0 !important;
  width: 100% !important;
}

/* Nav */
.faehrmann-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 3rem;
  background: rgba(27,47,94,0.94);
  backdrop-filter: blur(8px);
}
.faehrmann-nav-logo img { height: 56px; width: auto; }
.faehrmann-nav-links { display: flex; gap: 2rem; list-style: none; }
.faehrmann-nav-links a {
  color: var(--sand); text-decoration: none;
  font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase;
  opacity: 0.85; transition: opacity 0.2s;
}
.faehrmann-nav-links a:hover { opacity: 1; }

/* Hero slider */
.faehrmann-hero { position: relative; height: 100vh; overflow: hidden; }
.fh-slides { display: flex; height: 100%; transition: transform 0.9s cubic-bezier(0.77,0,0.175,1); }
.fh-slide { min-width: 100%; height: 100%; position: relative; display: flex; align-items: center; justify-content: center; flex-direction: column; }
.fh-slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.fh-slide-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(26,58,74,0.35) 0%, rgba(26,58,74,0.6) 100%); }
.fh-hero-content { position: relative; z-index: 2; text-align: center; padding: 0 2rem; }
.fh-hero-eyebrow { font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--sand); margin-bottom: 1rem; opacity: 0.9; font-family: 'Lato', sans-serif; }
.fh-hero-title { font-family: 'Playfair Display', serif; font-size: clamp(3rem, 8vw, 6rem); color: var(--white); line-height: 1.05; margin-bottom: 0.3rem; }
.fh-hero-title em { font-style: italic; color: var(--sand); }
.fh-hero-subtitle { font-size: 1rem; color: var(--sand); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 0.8rem; opacity: 0.85; font-family: 'Lato', sans-serif; }
.fh-hero-cta { margin-top: 2.5rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.fh-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 2rem; text-decoration: none; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; transition: all 0.25s; cursor: pointer; border: none; font-family: 'Lato', sans-serif; font-weight: 700; }
.fh-btn-primary { background: var(--gold); color: var(--ocean); }
.fh-btn-primary:hover { background: var(--gold-dark); color: var(--white); }
.fh-btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.7); font-weight: 400; }
.fh-btn-outline:hover { background: rgba(255,255,255,0.1); }
.fh-slider-dots { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.5rem; z-index: 3; }
.fh-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.3s; border: none; }
.fh-dot.active { background: var(--white); width: 24px; border-radius: 3px; }
.fh-slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25); color: white; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 3; font-size: 1.2rem; transition: background 0.2s; }
.fh-slider-arrow:hover { background: rgba(255,255,255,0.22); }
.fh-slider-prev { left: 2rem; }
.fh-slider-next { right: 2rem; }

/* Phone box shortcode */
.fh-phone-box { background: var(--ocean); padding: 2rem; display: inline-flex; align-items: center; gap: 1.2rem; margin-top: 2rem; }
.fh-phone-icon { width: 48px; height: 48px; background: var(--gold); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fh-phone-icon svg { width: 22px; height: 22px; color: var(--ocean); }
.fh-phone-info span { display: block; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sand); opacity: 0.7; margin-bottom: 0.3rem; }
.fh-phone-info a { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--white); text-decoration: none; letter-spacing: 0.02em; }
.fh-phone-info a:hover { color: var(--sand); }

/* Contact form shortcode */
.fh-contact-form .fh-form-title { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--ocean); margin-bottom: 1.5rem; }
.fh-form-group { margin-bottom: 1.2rem; }
.fh-form-group label { display: block; font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.4rem; }
.fh-form-group input, .fh-form-group textarea, .fh-form-group select { width: 100%; padding: 0.8rem 1rem; border: 1px solid #D5CEBF; background: var(--white); color: var(--text); font-family: 'Lato', sans-serif; font-size: 0.95rem; outline: none; transition: border-color 0.2s; }
.fh-form-group input:focus, .fh-form-group textarea:focus, .fh-form-group select:focus { border-color: var(--ocean-mid); }
.fh-form-group textarea { resize: vertical; min-height: 120px; }
.fh-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.fh-btn-submit { width: 100%; padding: 1rem; background: var(--ocean); color: var(--white); border: none; cursor: pointer; font-family: 'Lato', sans-serif; font-size: 0.85rem; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 700; transition: background 0.25s; margin-top: 0.5rem; }
.fh-btn-submit:hover { background: var(--gold); color: var(--ocean); }
.fh-form-success { display: none; margin-top: 1rem; padding: 0.8rem 1rem; background: #e8f5e9; color: #2e7d32; font-size: 0.9rem; }
.fh-form-privacy { font-size: 0.75rem; color: var(--text-muted); line-height: 1.6; margin-top: 0.8rem; }
.fh-form-privacy a { color: var(--gold-dark); }
.fh-btn-submit[disabled] { opacity: 0.6; cursor: not-allowed; }
/* Honeypot: für Menschen unsichtbar, aber nicht display:none (Bots erkennen das) */
.fh-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Spamschutz-Rechenaufgabe */
.fh-captcha-row { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.fh-captcha-task {
  display: flex; align-items: center; justify-content: center;
  min-width: 140px; min-height: 52px; padding: 0 0.5rem;
  background: var(--sand-light); border: 1px solid #D5CEBF;
}
.fh-captcha-img { display: block; max-width: 100%; height: auto; }
.fh-captcha-text { font-family: 'Playfair Display', serif; font-size: 1.35rem; color: var(--ocean); letter-spacing: 0.08em; }
.fh-captcha-loading { font-size: 0.78rem; color: var(--text-muted); }
.fh-captcha-reload {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--ocean); color: var(--white); border: none; cursor: pointer;
  font-size: 1.1rem; line-height: 1; transition: background 0.2s;
}
.fh-captcha-reload:hover { background: var(--gold); color: var(--ocean); }
.fh-captcha .fh-captcha-row input[name="captcha"] { width: 120px; flex: 0 0 auto; text-align: center; }
.fh-captcha-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.6rem; }
.fh-captcha-hint a { color: var(--gold-dark); }

@media (max-width: 480px) {
  .fh-captcha .fh-captcha-row input[name="captcha"] { width: 100%; }
}

/* Footer */
.faehrmann-footer { background: var(--ocean); padding: 3rem 2rem; text-align: center; }
.fh-footer-inner { text-align: center; }
.fh-footer-logo { margin-bottom: 0.5rem; }
.fh-footer-logo img { height: 100px; width: auto; }
.fh-footer-sub { font-size: 0.78rem; letter-spacing: 0.18em; color: var(--sand); opacity: 0.5; text-transform: uppercase; margin-bottom: 1.5rem; }
.fh-footer-info { font-size: 0.85rem; color: var(--sand); opacity: 0.55; line-height: 2; }
.fh-footer-info a { color: inherit; text-decoration: none; }
.fh-footer-info a:hover { opacity: 1; }
.fh-footer-divider { width: 40px; height: 1px; background: rgba(232,224,208,0.25); margin: 1.5rem auto; }
.fh-footer-legal { font-size: 0.72rem; color: var(--sand); opacity: 0.35; letter-spacing: 0.08em; }
.fh-footer-legal a { color: inherit; text-decoration: none; }
.fh-footer-legal a:hover { text-decoration: underline; }

/* Credit-Zeile */
.fh-footer-credit { margin-top: 0.7rem; font-size: 0.7rem; color: var(--sand); opacity: 0.32; letter-spacing: 0.06em; }
.fh-footer-credit a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(232,224,208,0.35); transition: opacity 0.2s, border-color 0.2s; }
.fh-footer-credit a:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* Rechtstexte (Impressum / Datenschutz) */
.fh-legal-page { max-width: 820px; margin: 0 auto; padding: 8rem 1.5rem 5rem; }
.fh-legal-page h1 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 5vw, 2.8rem); color: var(--ocean); margin-bottom: 1.5rem; }
.fh-legal-page h2 { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--ocean); margin: 2.5rem 0 0.8rem; }
.fh-legal-page h3 { font-size: 1rem; color: var(--ocean); margin: 1.6rem 0 0.5rem; font-weight: 700; }
.fh-legal-page p, .fh-legal-page li { font-size: 0.95rem; line-height: 1.85; color: var(--text-muted); font-weight: 300; }
.fh-legal-page ul { margin: 0.5rem 0 1rem 1.2rem; }
.fh-legal-page a { color: var(--gold-dark); }

/* Elementor image carousel aspect ratio fix */
.elementor-image-carousel .swiper-wrapper { align-items: center; }
.elementor-image-carousel img { aspect-ratio: 4/5; object-fit: cover; width: 100%; }

@media (max-width: 768px) {
  .faehrmann-nav { padding: 1rem 1.5rem; }
  .faehrmann-nav-links { display: none; }
  .fh-slider-arrow { display: none; }
  .fh-form-row { grid-template-columns: 1fr; }
}
