/* ===============================
   Pearl Excursion Immobilien - Minimalist Flexbox CSS
   - Mobile-first, minimalist aesthetic
   - Only Flexbox for layouts (no grid/columns)
   - Consistent spacing, clean typography, subtle shadows
   =============================== */

/* 1) Reset & Base --------------------------------------------------------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: #0F1A24; background: #FFFFFF; line-height: 1.6; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5 { font-family: Georgia, 'Times New Roman', serif; color: #143C64; line-height: 1.25; margin: 0 0 16px 0; font-weight: 700; }
p { margin: 0 0 12px 0; }
ul { margin: 0 0 12px 20px; padding: 0; }
ol { margin: 0 0 12px 20px; padding: 0; }
strong { font-weight: 700; }
em { font-style: italic; }

:root {
  --primary: #143C64;
  --secondary: #3E8E7E;
  --accent: #F4F6FA;
  --text: #0F1A24;
  --muted: #6B7280;
  --border: #E5E7EB;
  --shadow: rgba(20, 60, 100, 0.08);
}

/* Accessibility & Focus */
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--secondary); outline-offset: 2px; }

/* 2) Global Layout Utilities (Flex-only) --------------------------------- */
.container { width: 100%; padding: 0 20px; display: flex; flex-direction: column; align-items: center; }
.container > .content-wrapper { width: 100%; max-width: 1120px; display: flex; flex-direction: column; gap: 16px; }

/* Mandatory spacing pattern for sections */
section { margin-bottom: 60px; padding: 40px 0; background: transparent; }
/* Also include the required .section class explicitly */
.section { margin-bottom: 60px; padding: 40px 20px; }

/* Content blocks */
.text-section { display: flex; flex-direction: column; gap: 10px; color: var(--text); }
.content-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.text-image-section { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Cards */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: #FFFFFF; border: 1px solid var(--border); border-radius: 12px; padding: 20px; box-shadow: 0 6px 20px var(--shadow); display: flex; flex-direction: column; gap: 10px; }

/* Testimonial card - high contrast on light bg */
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; background: var(--accent); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 6px 20px var(--shadow); color: var(--text); }
.testimonial-card h3 { margin: 0; color: var(--primary); font-size: 18px; }

/* Subtle alternate background for very long text areas (optional) */
section:nth-of-type(odd) .text-section.highlight { background: var(--accent); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }

/* 3) Header & Navigation -------------------------------------------------- */
header { position: sticky; top: 0; background: #FFFFFF; border-bottom: 1px solid var(--border); z-index: 50; }
header .content-wrapper { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }

.logo img { height: 28px; width: auto; }

.main-nav { display: none; align-items: center; gap: 16px; }
.main-nav a { color: var(--text); padding: 8px 10px; border-radius: 8px; }
.main-nav a:hover { background: var(--accent); text-decoration: none; }

/* Header CTAs */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 10px; border: 1px solid transparent; font-weight: 600; line-height: 1; cursor: pointer; transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 120ms ease; text-decoration: none; }
.button:active { transform: translateY(1px); }
.button-primary { background: var(--primary); color: #FFFFFF; border-color: var(--primary); box-shadow: 0 6px 18px var(--shadow); }
.button-primary:hover { background: #0F3152; border-color: #0F3152; text-decoration: none; }
.button-secondary { background: transparent; color: var(--primary); border-color: var(--primary); }
.button-secondary:hover { background: var(--accent); text-decoration: none; }

/* Mobile burger */
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 8px; background: #FFFFFF; color: var(--text); cursor: pointer; transition: background-color 180ms ease, border-color 180ms ease; }
.mobile-menu-toggle:hover { background: var(--accent); }

/* Mobile menu overlay */
.mobile-menu { position: fixed; inset: 0; background: #FFFFFF; z-index: 999; transform: translateX(100%); transition: transform 260ms ease; display: flex; flex-direction: column; }
.mobile-menu.open { transform: translateX(0); }

.mobile-menu-close { align-self: flex-end; margin: 14px 18px 0 0; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); background: #FFFFFF; color: var(--text); border-radius: 8px; cursor: pointer; }
.mobile-nav { display: flex; flex-direction: column; gap: 12px; padding: 20px; }
.mobile-nav a { display: flex; align-items: center; padding: 14px 10px; font-size: 18px; color: var(--text); border-bottom: 1px solid var(--border); }
.mobile-nav a:hover { background: var(--accent); text-decoration: none; }

/* 4) Typography scale ----------------------------------------------------- */
h1 { font-size: 32px; margin-bottom: 10px; }
h2 { font-size: 24px; margin-bottom: 6px; }
h3 { font-size: 18px; margin-bottom: 6px; }
.small { font-size: 14px; color: var(--muted); }

/* Inline icons in contact lines */
.text-section p img { display: inline-block; vertical-align: middle; margin-right: 8px; height: 18px; width: auto; }

/* 5) Footer --------------------------------------------------------------- */
footer { background: #FFFFFF; border-top: 1px solid var(--border); }
footer .content-wrapper { display: flex; flex-direction: column; gap: 20px; padding: 20px 0; }
footer .logo img { height: 30px; }
.footer-nav, .footer-legal { display: flex; flex-direction: column; gap: 8px; }
.footer-nav h3, .footer-legal h3 { font-size: 16px; margin-bottom: 6px; color: var(--primary); }
.footer-nav a, .footer-legal a { color: var(--text); }
.footer-nav a:hover, .footer-legal a:hover { text-decoration: underline; }

/* 6) Lists as soft cards when nested in text-section (used in Angebotsliste) */
.text-section > .content-wrapper { border: 1px solid var(--border); border-radius: 12px; padding: 16px; box-shadow: 0 6px 20px var(--shadow); display: flex; flex-direction: column; gap: 8px; background: #FFFFFF; }

/* 7) Cookie Consent Banner & Modal --------------------------------------- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; background: #FFFFFF; border-top: 1px solid var(--border); box-shadow: 0 -8px 24px var(--shadow); padding: 16px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; transform: translateY(100%); transition: transform 260ms ease; z-index: 998; }
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .cookie-text { flex: 1 1 260px; min-width: 240px; color: var(--text); }
.cookie-actions { display: flex; align-items: center; gap: 10px; }
.cookie-button { padding: 10px 14px; border-radius: 8px; border: 1px solid var(--border); background: #FFFFFF; color: var(--text); cursor: pointer; transition: background-color 180ms ease, border-color 180ms ease; }
.cookie-button:hover { background: var(--accent); }
.cookie-accept { background: var(--primary); color: #FFFFFF; border-color: var(--primary); box-shadow: 0 6px 18px var(--shadow); }
.cookie-accept:hover { background: #0F3152; border-color: #0F3152; }
.cookie-reject { border-color: var(--primary); color: var(--primary); background: transparent; }
.cookie-settings { border-color: var(--border); }

.cookie-modal { position: fixed; inset: 0; background: rgba(15, 26, 36, 0.45); display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity 220ms ease; z-index: 1000; }
.cookie-modal.open { opacity: 1; pointer-events: auto; }
.cookie-modal-content { background: #FFFFFF; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,0.12); display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 560px; padding: 20px; }
.cookie-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.cookie-row:last-child { border-bottom: none; padding-bottom: 0; }
.cookie-toggle { display: inline-flex; align-items: center; gap: 8px; }
.cookie-badges { display: flex; align-items: center; gap: 8px; }
.badge { display: inline-flex; align-items: center; padding: 6px 8px; border-radius: 999px; font-size: 12px; border: 1px solid var(--border); color: var(--text); background: #FFFFFF; }
.badge.on { background: var(--accent); border-color: var(--primary); color: var(--primary); }

/* 8) Responsive Layouts --------------------------------------------------- */
@media (min-width: 480px) {
  h1 { font-size: 36px; }
}

@media (min-width: 768px) {
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }

  .text-image-section { flex-direction: row; }
  .testimonial-card { flex-direction: row; }

  footer .content-wrapper { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; }
  .footer-nav, .footer-legal { min-width: 220px; }
}

@media (min-width: 992px) {
  .main-nav { display: flex; }
  .mobile-menu-toggle { display: none; }
  header .content-wrapper { gap: 16px; }
  .logo img { height: 32px; }
}

/* 9) Additional Minimalist Polishing ------------------------------------- */
/* Section headings spacing harmony */
.container > .content-wrapper > h1,
.container > .content-wrapper > h2 { margin-top: 6px; }

/* Provide comfortable whitespace rhythm */
.container > .content-wrapper > .text-section + .text-section { margin-top: 8px; }

/* Make long link lists breathe in mobile menu */
.mobile-nav a:last-child { border-bottom: none; }

/* Make sure cards and sections never collide */
.container > .content-wrapper > * + * { margin-top: 6px; }

/* Ensure lists have adequate spacing */
.text-section ul li + li,
.text-section ol li + li { margin-top: 6px; }

/* Icons and text alignment in quick contact blocks */
.text-section p { display: inline-flex; align-items: center; gap: 8px; }

/* 10) Visual Hierarchy & Micro-interactions ------------------------------- */
/* Subtle shadow on hover for cards and soft raise */
.card:hover, .text-section > .content-wrapper:hover, .testimonial-card:hover { box-shadow: 0 10px 28px var(--shadow); transform: translateY(-1px); transition: box-shadow 220ms ease, transform 120ms ease; }

/* 11) Compliance with REQUIRED CLASS PATTERNS ----------------------------- */
/* Already defined above but reiterated to ensure exact match present */
/* .section, .card-container, .card, .content-grid, .text-image-section, .testimonial-card, .feature-item are included and flex-only */

/* 12) General Helpers ----------------------------------------------------- */
.hide { display: none !important; }
.muted { color: var(--muted); }
.center { display: flex; align-items: center; justify-content: center; }

/* 13) Prevent any overlap with cookie banner on very short pages */
main { display: flex; flex-direction: column; }

/* 14) Maintain strong readability in testimonials and review sections */
/* Dark text on light backgrounds ensured already; reinforce link styles */
.testimonial-card a { color: var(--primary); text-decoration: underline; }

/* End of stylesheet */
