/* =============================
   CSS Reset & Normalize
   ============================= */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, main, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
  background: #F6F2EF;
}
body {
  line-height: 1.5;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #F6F2EF;
  color: #3C2D23;
  min-height: 100vh;
}
ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
  background: none;
}
button {
  cursor: pointer;
}
*:focus-visible {
  outline: 2px dashed #9A7A2C;
  outline-offset: 2px;
}

/* =============================
   Font Faces (retro, vintage)
   ============================= */
@import url('https://fonts.googleapis.com/css?family=Merriweather:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');
@font-face {
  font-family: 'Cooper Black';
  src: local('Cooper Black'), local('CooperBlack'), url('/fonts/CooperBlack.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

/* =============================
   Color Variables
   ============================= */
:root {
  --primary: #24344B;      /* Brand navy */
  --secondary: #DFDDD9;    /* Brand light tan */
  --accent: #9A7A2C;       /* Brand vintage gold */
  --white: #FFFFFF;
  --black: #231F20;
  --vintage-red: #C05337;
  --vintage-green: #4D715A;
  --vintage-blue: #488CA5;
  --vintage-cream: #F6F2EF;
  --card-shadow: 0 4px 18px 0 rgba(36,52,75,0.10);
  --border-radius: 16px;
  --card-radius: 14px;
  --pattern-bg: repeating-linear-gradient(135deg, #f6f2ef 0, #f6f2ef 20px, #ece2d2 21px, #ece2d2 28px);
  --text-dark: #2B2730;
  --text-muted: #776959;
  --shadow-accent: 0 2px 12px rgba(154,122,44,0.07);
}

/* =============================
   Layout Containers
   ============================= */
.container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--pattern-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  position: relative;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--secondary);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-accent);
  padding: 28px 20px 22px 20px;
  color: var(--primary);
  min-width: 270px;
  flex: 1 1 320px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 8px 28px 0 rgba(36,52,75,0.17);
  transform: translateY(-4px) scale(1.018);
}
.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;
}
@media(max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  background: var(--white);
  color: var(--primary);
  margin-bottom: 20px;
  transition: box-shadow 0.2s;
  border-left: 6px solid var(--accent);
}
.testimonial-card:hover {
  box-shadow: 0 4px 28px rgba(36,52,75,0.15);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}
.map-block {
  margin-top: 20px;
  border-radius: var(--card-radius);
  background: var(--secondary);
  padding: 24px;
  font-style: italic;
  color: var(--text-muted);
}

/* =============================
   Typography & Headings
   ============================= */
h1 {
  font-family: 'Cooper Black', 'Merriweather', serif;
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 18px;
  letter-spacing: -1px;
  text-shadow: 1px 1px 0 #dfddd9, 2px 2px 0 #b3914b22;
}
h2 {
  font-family: 'Merriweather', serif;
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
h3, h4, h5 {
  font-family: 'Merriweather', serif;
  font-size: 1.25rem;
  color: var(--primary);
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}
h4, h5 {
  font-size: 1.125rem;
}
p, li {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.08rem;
  color: var(--text-dark);
  margin-bottom: 14px;
}
strong {
  color: var(--primary);
  font-weight: 700;
}
.text-muted {
  color: var(--text-muted);
}

ul {
  margin-bottom: 20px;
  padding-left: 16px;
  list-style: none;
}
ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 11px;
  font-size: 1.07rem;
}
ul li:before {
  content: '\2022';
  font-size: 1.35em;
  color: var(--accent);
  position: absolute;
  left: 2px; top: 0.7em;
  transform: translateY(-50%);
  font-family: 'Merriweather', serif;
}

/* Vintage Retro Styling for List icons in some sections */
.features-section ul li:before, .services-section ul li:before {
  content: '\25C6';
  color: var(--vintage-red);
  font-size: 1.3em;
  left: 2px; top: .8em;
}


/* =============================
   Header & Navigation
   ============================= */
header {
  width: 100%;
  background: var(--vintage-cream);
  padding: 22px 0 18px 0;
  border-bottom: 6px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 40;
  box-shadow: 0 2px 13px rgba(36,52,75,0.04);
}
header > a img {
  height: 38px;
  margin-right: 32px;
}
header nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
header nav a {
  font-family: 'Merriweather', serif;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 6px 12px 5px 12px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
}
header nav a:hover, header nav a:focus {
  background: var(--accent);
  color: var(--white);
}
.cta-btn {
  margin-left: 32px;
  background: var(--accent);
  color: var(--white);
  border-radius: 30px;
  padding: 13px 32px;
  font-family: 'Merriweather', serif;
  font-weight: 900;
  font-size: 1.12rem;
  box-shadow: 0 2px 8px #9a7a2c38;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border: none;
  transition: background 0.2s, transform 0.16s, box-shadow 0.2s;
  position: relative;

}
.cta-btn:hover, .cta-btn:focus {
  background: var(--primary);
  color: var(--accent);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 14px #24344b27;
}
@media (max-width: 980px) {
  .cta-btn { margin-left: 12px; font-size: 1rem; padding: 12px 18px; }
  header nav { gap: 14px; }
}
@media (max-width: 800px) {
  header nav {
    display: none;
  }
  .cta-btn { display: none; }
}

/* =============================
   Mobile Menu
   ============================= */
.mobile-menu-toggle {
  appearance: none;
  background: var(--primary);
  color: var(--accent);
  font-size: 2rem;
  border-radius: 8px;
  border: 2px solid var(--accent);
  padding: 8px 18px;
  position: fixed;
  top: 22px;
  right: 18px;
  z-index: 200;
  display: none;
  transition: box-shadow 0.16s, background 0.14s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(154,122,44,0.18);
}
@media (max-width: 800px) {
  .mobile-menu-toggle {
    display: block;
  }
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; height: 100vh; width: 100vw;
  background: #ede7dfcc;
  backdrop-filter: blur(3px);
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.45s cubic-bezier(.8,.24,.22,1.12);
  will-change: transform;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.1rem;
  color: var(--primary);
  background: none;
  border: none;
  align-self: flex-end;
  margin: 28px 38px 0 0;
  cursor: pointer;
  transition: color 0.13s;
  z-index: 10001;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: var(--accent);
}
.mobile-nav {
  margin: 48px 24px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.mobile-nav a {
  font-family: 'Cooper Black', 'Merriweather', serif;
  font-size: 1.43rem;
  color: var(--primary);
  text-decoration: none;
  padding: 10px 0;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--white);
  background: var(--accent);
}
@media (max-width: 800px) {
  .mobile-menu { display: flex; }
}


/* =============================
   Hero Section
   ============================= */
.hero-section {
  background: var(--primary);
  color: var(--secondary);
  padding: 66px 0 56px 0;
  margin-bottom: 64px;
  border-bottom: 13px solid var(--accent);
  background-image:
    repeating-linear-gradient(115deg, transparent, transparent 38px, #2B27300C 39px, #2B27300D 49px);
}
.hero-section h1 {
  color: var(--accent);
  font-family: 'Cooper Black', 'Merriweather', serif;
  font-size: 2.6rem;
  text-shadow: 1px 2px 0 #fff2, 0 1px 0 #b3914b18;
  margin-bottom: 18px;
}
.hero-section p {
  color: var(--secondary);
  font-size: 1.17rem;
  margin-bottom: 22px;
}
.hero-section .cta-btn {
  background: var(--accent);
  color: var(--white);
  margin-left: 0;
  font-size: 1.23rem;
}
.hero-section .container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-section .content-wrapper {
  align-items: flex-start;
}

@media (max-width: 600px) {
  .hero-section h1 {
    font-size: 1.44rem;
    line-height: 1.17;
  }
  .hero-section {
    padding: 42px 0 30px 0;
    margin-bottom: 28px;
  }
}

/* =============================
   Features & Services Sections
   ============================= */
.features-section, .services-section {
  background: var(--pattern-bg);
  box-shadow: var(--shadow-accent);
  border-radius: var(--border-radius);
  margin-bottom: 60px;
  padding: 40px 20px;
}
.features-section h2, .services-section h2 {
  color: var(--accent);
  text-shadow: 0 1px 0 #fff8, 0 2px 0 #a58c4d11;
}
.features-section ul li, .services-section ul li {
  font-family: 'Open Sans', Arial, sans-serif;
}

/* =============================
   Team List (About, Anwaltsteam)
   ============================= */
.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin: 0 -6px 0 -6px;
}
.team-list > div {
  flex: 1 1 240px;
  background: var(--white);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-accent);
  padding: 22px 20px;
  margin-bottom: 16px;
  border-left: 4px solid var(--accent);
  min-width: 240px;
  max-width: 330px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.team-list > div:hover {
  box-shadow: 0 6px 18px rgba(36,52,75,0.12);
  transform: translateY(-3px) scale(1.012);
}
@media (max-width: 900px) {
  .team-list {
    flex-direction: column;
    gap: 18px;
  }
  .team-list > div {
    max-width: none;
    width: 97%;
  }
}


/* =============================
   Contact Details Block
   ============================= */
.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.contact-details div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  background: var(--secondary);
  border-radius: 9px;
  padding: 10px 18px 9px 14px;
  box-shadow: 0 2px 6px #24344b12;
  color: var(--primary);
}
.contact-details img {
  height: 22px;
  width: 22px;
  object-fit: contain;
}

@media (max-width: 600px) {
  .contact-details { flex-direction: column; gap: 15px; }
}

/* =============================
   Footer
   ============================= */
footer {
  background: var(--primary);
  padding: 0;
  color: var(--secondary);
}
footer section {
  padding: 28px 0 22px 0;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
footer nav a {
  color: var(--accent);
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 5px;
  padding: 3px 10px;
  transition: background 0.16s, color 0.15s;
}
footer nav a:hover, footer nav a:focus {
  background: var(--accent);
  color: var(--primary);
}
footer .mini-contact-details {
  font-size: 0.95rem;
  color: var(--secondary);
  opacity: 0.94;
  margin-top: 4px;
  font-family: 'Open Sans', Arial, sans-serif;
}
footer a img {
  height: 31px;
  margin-right: 12px;
}
@media(max-width: 600px) {
  footer .content-wrapper { /* Stack footer */
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  footer section { padding: 22px 0 14px 0; }
}

/* =============================
   Testimonial & Review Styling
   ============================= */
.testimonials-section {
  background: #FEF7ED;
}
.testimonials-section h2 {
  color: var(--vintage-red);
  text-shadow: 0 1px 0 #ffeedd88, 0 1px 0 #b3914b14;
}
.testimonial-card {
  background: #FFF7F3;
  border-left: 7px solid var(--vintage-red);
  color: var(--text-dark);
  box-shadow: 0 4px 18px #9a7a2c13;
}
.testimonial-card p {
  font-size: 1.09rem;
  font-style: italic;
  color: var(--primary);
  flex: 1; }
.testimonial-card span,
.testimonial-card strong {
  font-size: 1rem;
  color: var(--accent);
  font-family: 'Merriweather', serif;
  margin-left: 12px;
}
@media (max-width: 650px) {
  .testimonials-section .content-wrapper {
    gap: 16px;
  }
  .testimonial-card { flex-direction: column; }
}


/* =============================
   Cookie Consent Banner + Modal
   ============================= */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 14px;
  background: #FCF4E2;
  color: #2B2730;
  z-index: 15000;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 -5px 32px #24344b1d;
  border-top: 3px dashed var(--accent);
  font-size: 1rem;
  animation: fadein 0.7s cubic-bezier(.9,.12,.33,1.1);
  gap: 18px;
}
.cookie-banner p {
  margin-bottom: 8px;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 16px;
  margin-top: 3px;
}
.cookie-btn, .cookie-prefs-open {
  border-radius: 20px;
  background: var(--accent);
  color: var(--white);
  font-family: 'Merriweather', serif;
  font-weight: 700;
  text-transform: uppercase;
  padding: 10px 22px;
  font-size: 1rem;
  margin-right: 6px;
  box-shadow: 0 2px 9px #9a7a2c29;
  transition: background 0.15s, color 0.14s, transform 0.13s;
  border: none;
}
.cookie-btn:last-child, .cookie-prefs-open:last-child { margin-right: 0; }
.cookie-btn:hover, .cookie-btn:focus, .cookie-prefs-open:hover, .cookie-prefs-open:focus {
  background: var(--primary);
  color: var(--accent);
  transform: scale(1.05);
}
.cookie-btn.reject {
  background: var(--vintage-red);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--primary);
  color: var(--vintage-red);
}

.cookie-modal-bg {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background: #2B27309C;
  z-index: 16000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadein 0.41s cubic-bezier(.88,.26,.13,1.04);
}
.cookie-modal {
  background: var(--white);
  color: var(--primary);
  border-radius: 20px;
  padding: 36px 28px 22px 28px;
  box-shadow: 0 8px 28px #24344b1c;
  max-width: 410px;
  width: 96vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: slidein 0.45s cubic-bezier(.87,.27,.19,1.1);
}
.cookie-modal h3 {
  color: var(--accent);
  margin-bottom: 9px;
  font-family: 'Merriweather', serif;
  font-size: 1.3rem;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
  font-size: 1.1rem;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 1rem;
}
.cookie-modal input[type='checkbox'] {
  accent-color: var(--accent);
  width: 19px; height: 19px;
  border-radius: 3px;
  margin: 0 6px 0 0;
}
.cookie-modal .cookie-essential {
  opacity: .68;
}
.cookie-modal .cookie-modal-actions {
  margin-top: 15px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-modal .cookie-btn {
  flex: 1 1 auto;
}
@media (max-width: 650px) {
  .cookie-modal{ padding: 16px 8px 13px 8px; max-width: 96vw; }
}
@keyframes fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slidein {
  from { transform: translateY(75px) scale(.92); opacity:0; }
  to { transform: translateY(0) scale(1); opacity:1; }
}


/* =============================
   Misc. & Utility Classes
   ============================= */
.text-section {
  margin: 0 0 20px 0;
  color: var(--text-dark);
  font-size: 1.05rem;
}
::-webkit-scrollbar {
  width: 10px;
  background: #ede7df;
}
::-webkit-scrollbar-thumb {
  background: #cfb987;
  border-radius: 8px;
}

/* Spacing utilities */
.mb-20 { margin-bottom: 20px !important; }
.mb-32 { margin-bottom: 32px !important; }
.mb-60 { margin-bottom: 60px !important; }
.pt-16 { padding-top: 16px !important; }
.pb-40 { padding-bottom: 40px !important; }

/* =============================
   Responsive Typography & Layout
   ============================= */
@media (max-width: 900px) {
  html { font-size: 15px; }
  .container { max-width: 98vw; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
}
@media (max-width: 600px) {
  html { font-size: 14px; }
  h1 { font-size: 1.2rem; }
  h2 { font-size: 1.09rem; }
  .section {
    padding: 22px 7px;
    margin-bottom: 30px;
  }
}


/* =============================
   Vintage/Retro Patterns & Details
   ============================= */
body {
  background: var(--vintage-cream);
}
.section {
  border: 4px double #B3914B;
  background: var(--pattern-bg);
}
.card {
  border: 2px solid #E7D4A2;
  background: linear-gradient(105deg, #FFFAF4 0%, #F6F2EF 96%);
}
.features-section, .services-section {
  background: var(--pattern-bg);
  border: 4px double #DFDDD9;
}

/* Vintage retro shadow and highlight accents */
h1, h2, .cta-btn, .mobile-menu-toggle {
  text-shadow:
    1px 1px 0 #fff6,
    2px 2px 0 #b3914b22;
}

/* Decorative corner overlay */
.section:before {
  content: '';
  display: block;
  width: 44px; height: 44px;
  position: absolute; left: 0; top: 0;
  background: url("data:image/svg+xml,%3Csvg width='44' height='44' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cellipse cx='22' cy='22' rx='22' ry='22' fill='%239A7A2C22'/%3E%3C/svg%3E") no-repeat center;
  z-index: 0;
}
.section:after {
  content: '';
  display: block;
  width: 44px; height: 44px;
  position: absolute; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='44' height='44' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cellipse cx='22' cy='22' rx='22' ry='22' fill='%239A7A2C22'/%3E%3C/svg%3E") no-repeat center;
  z-index: 0;
}
@media(max-width:590px) {
  .section:before, .section:after { display: none; }
}

/* =============================
   Animations and Microinteractions
   ============================= */
.cta-btn, .cookie-btn, .mobile-menu-toggle { transition: box-shadow 0.17s, background 0.13s, color 0.18s, transform 0.13s; }
.card, .team-list > div, .testimonial-card {
  transition: box-shadow 0.22s, transform 0.18s;
}
.card:hover, .team-list > div:hover, .testimonial-card:hover {
  transform: translateY(-4px) scale(1.018);
  box-shadow: 0 8px 28px #24344b18;
}

/* =============================
   Print Styles (Basic)
   ============================= */
@media print {
  header, .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal-bg, footer { display: none !important; }
  .content-wrapper, .container, .section, .card, .team-list > div { box-shadow: none !important; background: white !important; border: none !important; }
}
