/* Triebscheiderhof v4 - Rebuild im klassischen Look */

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

/* === Design Tokens === */
:root {
  --white: #ffffff;
  --cream: #f8f6f1;
  --paper: #fdfbf6;
  --ink: #2a3540;
  --ink-soft: #4a5563;
  --mute: #6b7580;
  --rule: #d8d3c6;
  --rule-soft: #e8e3d6;
  --green-light: #93c19b;
  --green: #2d7a4b;
  --green-deep: #0f6b35;
  --footer-bg: #2b2f33;
  --footer-text: #a8adb3;
  --footer-head: #ced3d8;

  --font-serif: "Fraunces", "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Jost", "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  --maxw: 1200px;
  --pad: 20px;
}

body {
  font-family: var(--font-serif);
  color: var(--ink);
  background: var(--white);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === Container === */
.container { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* === Top Bar (Datenschutz, Impressum, Flaggen) === */
.top-bar {
  font-family: var(--font-sans);
  font-size: 12px;
  padding: 10px var(--pad);
  letter-spacing: 0.02em;
  color: var(--mute);
}
.top-bar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: right;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.top-bar a { color: var(--mute); }
.top-bar a:hover { color: var(--green); }
.top-bar .sep { color: var(--rule); }

.lang-flags {
  display: inline-flex;
  gap: 8px;
  margin-left: 16px;
}
.flag {
  display: inline-block;
  width: 24px;
  height: 16px;
  font-size: 10px;
  text-align: center;
  line-height: 16px;
  color: var(--white);
  border-radius: 2px;
  letter-spacing: 0.02em;
  font-weight: 500;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.flag.active { opacity: 1; }
.flag:hover { opacity: 1; }
.flag-de { background: linear-gradient(to bottom, #000 33%, #d00 33% 66%, #ffcc00 66%); color: transparent; }
.flag-fr { background: linear-gradient(to right, #0055a4 33%, #fff 33% 66%, #ef4135 66%); color: transparent; }
.flag-en { background: #012169; color: #fff; }

/* === Side Icons (Facebook, Phone, Email, fixed left) === */
.side-icons {
  position: fixed;
  left: 0;
  top: 160px;
  z-index: 40;
  display: none;
  flex-direction: column;
  gap: 4px;
  background: var(--white);
  padding: 10px 10px 10px 8px;
  border: 1px solid var(--rule-soft);
  border-left: 0;
  border-radius: 0 4px 4px 0;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.04);
}
@media (min-width: 900px) {
  .side-icons { display: flex; }
}
.side-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--green);
  border-radius: 2px;
  transition: all 0.2s;
}
.side-icon:hover {
  background: var(--green);
  color: var(--white);
}
.side-icon svg {
  width: 20px;
  height: 20px;
}

/* === Header === */
.site-header {
  position: relative;
  background: var(--white);
  padding: 10px var(--pad) 10px;
  border-bottom: 1px solid var(--rule-soft);
}

/* Mobile Header: logo centered on top */
.header-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.brand-logo img {
  display: block;
  max-width: 280px;
  width: auto;
  height: auto;
  margin: 0 auto;
}

/* Desktop Header: nav-left | logo-center | nav-right */
@media (min-width: 900px) {
  .header-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
  }
  .brand-logo img {
    max-width: 260px;
    width: 260px;
  }
}

/* === Hauptnavigation === */
.main-nav {
  display: none;
}
@media (min-width: 900px) {
  .main-nav {
    display: block;
    font-family: var(--font-sans);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
  .main-nav ul {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
  }
  .main-nav-left ul { justify-content: flex-end; }
  .main-nav-right ul { justify-content: flex-start; }
  .main-nav li {
    position: relative;
    padding: 10px 16px;
  }
  .main-nav li + li::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    width: 1px;
    height: 14px;
    margin-top: -7px;
    background: var(--rule);
  }
  .main-nav a {
    color: var(--ink);
    transition: color 0.2s;
    white-space: nowrap;
  }
  .main-nav a:hover,
  .main-nav a.active { color: var(--green); }
}
@media (min-width: 1100px) {
  .main-nav { font-size: 13px; }
  .main-nav li { padding: 10px 20px; }
}

/* === Mobile Burger === */
.burger {
  display: block;
  position: absolute;
  top: 48px;
  right: 14px;
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  z-index: 50;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px auto;
  transition: all 0.3s;
}
@media (min-width: 900px) {
  .burger { display: none; }
}

.mobile-nav {
  display: none;
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--white);
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
}
.mobile-nav.open { display: block; }
.mobile-nav ul { padding: 10px 0; }
.mobile-nav li { border-bottom: 1px solid var(--rule-soft); }
.mobile-nav li:last-child { border-bottom: 0; }
.mobile-nav a {
  display: block;
  padding: 14px 24px;
  color: var(--ink);
}
.mobile-nav a.active { color: var(--green); }
@media (min-width: 900px) {
  .mobile-nav { display: none !important; }
}

/* === Hero === */
.hero {
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: #000;
  position: relative;
}
.hero video,
.hero img {
  width: 100%;
  height: 56vw;
  max-height: 560px;
  min-height: 240px;
  object-fit: cover;
  display: block;
}
@media (min-width: 900px) {
  .hero video, .hero img {
    height: 60vh;
    max-height: 640px;
  }
}
.hero.hero-video .media-placeholder,
.hero.hero-strip .media-placeholder {
  height: 320px;
}
@media (min-width: 900px) {
  .hero.hero-video .media-placeholder { height: 460px; }
  .hero.hero-strip .media-placeholder { height: 220px; }
}
.hero.hero-strip .media-placeholder { height: 180px; }

/* === Media Placeholder (fallback) === */
.media-placeholder {
  width: 100%;
  background: linear-gradient(135deg, #e8e3d6 0%, #d4ccbb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.media-placeholder::before,
.media-placeholder::after {
  content: "";
  position: absolute;
  width: 140%;
  height: 1px;
  background: rgba(255,255,255,0.4);
  transform: rotate(-15deg);
}
.media-placeholder::before { top: 30%; left: -20%; }
.media-placeholder::after { top: 65%; left: -20%; }
.media-placeholder-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.placeholder-logo {
  display: block;
  max-width: 60%;
  max-height: 70%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.7;
  margin: 0 auto;
}
@media (min-width: 900px) {
  .placeholder-logo { max-width: 380px; }
}

.gallery-ph {
  height: 220px;
  border-radius: 2px;
}
.content-ph {
  height: 220px;
  margin: 20px 0;
  border-radius: 2px;
}
@media (min-width: 700px) {
  .content-ph.float-right {
    float: right;
    width: 45%;
    margin-left: 24px;
    margin-bottom: 12px;
    height: 200px;
  }
}

/* === Section Divider mit Icon === */
.divider {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 36px 0 24px;
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--pad);
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.divider img {
  width: 80px;
  height: auto;
  flex: 0 0 auto;
  object-fit: contain;
}
@media (min-width: 900px) {
  .divider img { width: 100px; }
}

/* Logo-mark (horse+fern only, used in dividers) */
img[src*="logo-mark"] {
  height: auto;
  max-width: 100px;
  object-fit: contain;
}

/* === Typography === */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: 32px; line-height: 1.2; }
h2 { font-size: 26px; line-height: 1.25; }
h3 { font-size: 20px; line-height: 1.3; }
h4 { font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; font-family: var(--font-sans); }

@media (min-width: 900px) {
  h1 { font-size: 42px; }
  h2 { font-size: 32px; }
  h3 { font-size: 22px; }
}

p { margin: 0 0 1em; color: var(--ink-soft); }

/* === Section Title mit Farn === */
.section-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 20px;
}
.section-title img.farn {
  width: 42px;
  height: 100px;
  flex: 0 0 auto;
  object-fit: contain;
  display: block;
}
@media (min-width: 900px) {
  .section-title img.farn { width: 50px; height: 120px; }
}
.section-title h2 { margin: 0; }
.section-title h1 { margin: 0; }
h3 > img[src*="farn"],
h4 > img[src*="farn"] {
  width: 20px;
  height: 56px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 10px;
  display: inline-block;
}

/* Lead paragraph */
.lead {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 28px;
  max-width: 900px;
}
@media (min-width: 900px) {
  .lead { font-size: 20px; }
}

/* Notice / callout box */
.notice-box {
  background: var(--paper);
  border-left: 3px solid var(--green);
  padding: 20px 24px;
  margin: 28px 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  font-family: var(--font-serif);
}

/* Feature / highlight box (e.g. Reitferien Ankündigung) */
.feature-box {
  background: linear-gradient(180deg, var(--paper) 0%, #f3ecd9 100%);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--green);
  padding: 28px 32px;
  margin: 36px 0 44px;
  border-radius: 2px;
  box-shadow: 0 2px 10px rgba(42, 53, 64, 0.04);
}
.feature-box h2 {
  margin: 10px 0 14px;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
}
.feature-box p { margin: 10px 0; }
.feature-box-badge {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 2px;
}
.feature-box-cta { margin-top: 20px !important; }
.btn-primary {
  display: inline-block;
  background: var(--green);
  color: #fff !important;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 13px 28px;
  border-radius: 2px;
  transition: background 0.15s ease, transform 0.1s ease;
}
.btn-primary:hover {
  background: var(--green-deep);
  transform: translateY(-1px);
}
.feature-box small {
  color: var(--mute);
  font-family: var(--font-sans);
  font-size: 13px;
}
.feature-box small a { color: var(--green); text-decoration: underline; }
@media (max-width: 640px) {
  .feature-box { padding: 24px 20px; }
  .feature-box h2 { font-size: 24px; }
}

/* === Content Grid === */
.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 40px var(--pad);
}
@media (min-width: 900px) {
  .content-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 48px var(--pad);
  }
}
.content-col h2 {
  font-size: 24px;
  margin-bottom: 12px;
}
.content-col p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
  font-style: italic;
}

/* === Chevron Links === */
.chevron-link {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--green);
  display: inline-block;
  padding: 6px 0;
  font-size: 15px;
}
.chevron-link::before {
  content: "›";
  display: inline-block;
  margin-right: 6px;
  font-weight: 600;
  color: var(--green);
}
.chevron-link:hover { color: var(--green-deep); }

/* === Blockquote === */
.quote-section {
  padding: 48px var(--pad);
  text-align: center;
  background: var(--paper);
}
.quote-section blockquote {
  margin: 0 auto;
  max-width: 760px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink);
  position: relative;
  padding: 0 32px;
}
.quote-section blockquote::before {
  content: "\201C";
  position: absolute;
  left: 0;
  top: -24px;
  font-size: 72px;
  color: var(--green);
  font-family: var(--font-serif);
  line-height: 1;
}
@media (min-width: 900px) {
  .quote-section blockquote { font-size: 26px; padding: 0 56px; }
  .quote-section blockquote::before { font-size: 88px; top: -30px; }
}

/* === Gallery Grid === */
.gallery {
  padding: 24px var(--pad) 48px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.gallery-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 700px) {
  .gallery-row {
    grid-template-columns: repeat(3, 1fr);
  }
}
.gallery-row img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 2px;
}
@media (min-width: 900px) {
  .gallery-row img { height: 260px; }
}

/* === Page Layout mit Sidebar === */
.page-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 36px var(--pad);
}
.page-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 900px) {
  .page-grid {
    grid-template-columns: 240px 1fr;
    gap: 48px;
  }
}

.sub-nav {
  font-family: var(--font-serif);
  font-size: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule-soft);
  margin-bottom: 24px;
}
@media (min-width: 900px) {
  .sub-nav {
    border-bottom: 0;
    padding-bottom: 0;
    margin-bottom: 0;
  }
}
.sub-nav h4 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
.sub-nav h4 img { width: 24px; }
.sub-nav ul li a {
  display: block;
  padding: 6px 0;
  color: var(--ink-soft);
  font-size: 16px;
}
.sub-nav ul li a::before {
  content: "- ";
  color: var(--ink-soft);
}
.sub-nav ul li a.active {
  color: var(--green);
}
.sub-nav ul li a.active::before {
  content: "- ";
  color: var(--green);
}
.sub-nav ul li a:hover { color: var(--green); }

main .section-title { margin-bottom: 24px; }
main .section-title h1,
main .section-title h2 {
  margin: 0;
  font-size: 28px;
}
@media (min-width: 900px) {
  main .section-title h1,
  main .section-title h2 { font-size: 32px; }
}

main p { font-size: 16px; line-height: 1.7; color: var(--ink-soft); }
main h2 { margin-top: 36px; }
main h3 { margin-top: 28px; font-size: 20px; }

main img {
  margin: 20px 0;
  border-radius: 2px;
}
@media (min-width: 700px) {
  main img.float-right {
    float: right;
    width: 45%;
    margin-left: 24px;
    margin-bottom: 12px;
  }
}

main strong { color: var(--ink); }
main a { color: var(--green); border-bottom: 1px solid var(--green-light); }
main a:hover { color: var(--green-deep); }

main ul {
  padding-left: 20px;
  margin-bottom: 1em;
}
main ul li {
  padding: 3px 0;
  list-style: disc;
  color: var(--ink-soft);
}

/* === Price Tables === */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 32px;
  font-size: 15px;
}
.price-table th,
.price-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--rule-soft);
}
.price-table th {
  background: var(--paper);
  font-weight: 500;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.03em;
}

.price-category {
  background: var(--paper);
  padding: 24px;
  margin-bottom: 20px;
  border-radius: 2px;
}
.price-category h3 {
  margin-top: 0;
  color: var(--green);
  font-size: 20px;
}
.price-category dl { margin: 0; }
.price-category dt {
  font-weight: 500;
  color: var(--ink);
  margin-top: 12px;
}
.price-category dd {
  margin: 4px 0 0;
  color: var(--ink-soft);
}
.price-highlight {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 14px;
  background: var(--green);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 0.03em;
}

.service-block {
  padding: 16px 0;
  border-top: 1px solid var(--rule-soft);
}
.service-block h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

/* === Footer === */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 48px var(--pad) 24px;
  margin-top: 48px;
  font-family: var(--font-sans);
  font-size: 14px;
}
.footer-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
.footer-col h4 {
  color: var(--footer-head);
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col ul li a {
  display: block;
  padding: 5px 0;
  color: var(--footer-text);
}
.footer-col ul li a::before {
  content: "› ";
  color: var(--footer-text);
}
.footer-col ul li a:hover { color: var(--white); }
.footer-col p {
  margin: 4px 0;
  color: var(--footer-text);
}
.footer-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
}
.footer-line a { color: var(--footer-text); }
.footer-line a:hover { color: var(--white); }
.fi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--green-light);
  font-size: 14px;
}

.footer-bottom {
  max-width: var(--maxw);
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--footer-text);
}
.footer-bottom a { color: var(--footer-text); }
.footer-bottom a:hover { color: var(--white); }

/* === Mobile Padding === */
@media (max-width: 899px) {
  body { font-size: 16px; }
  .page-wrap { padding: 24px 20px; }
}

/* === Price Lists === */
.price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
}
.price-list li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px dotted rgba(45, 122, 75, 0.3);
  line-height: 1.5;
}
.price-list li:last-child {
  border-bottom: 0;
}
.price-list .price-label {
  flex: 1 1 auto;
}
.price-list .price-value {
  flex: 0 0 auto;
  font-weight: 500;
  white-space: nowrap;
  color: #2d7a4b;
  margin-left: auto;
}
@media (max-width: 599px) {
  .price-list li {
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
  }
  .price-list .price-value {
    margin-left: auto;
  }
}

/* === Social Row (on Reitpsychologie page) === */
.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 1.25rem 0 1.75rem;
}
.social-row .social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(45, 122, 75, 0.35);
  border-radius: 999px;
  color: #2d7a4b;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: background-color .15s ease, color .15s ease;
}
.social-row .social-link svg {
  width: 20px;
  height: 20px;
}
.social-row .social-link:hover {
  background-color: #2d7a4b;
  color: #fff;
}