/* --- CSS RESET & BASE --- */
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, menu, 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, 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 {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #24262e;
  background: #fff;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  background-color: #fff;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #336699;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #b87412;
  outline: none;
}

/* --- VARIABLES (WITH FALLBACKS) --- */
:root {
  --color-primary: #264d73;
  --color-secondary: #ffffff;
  --color-accent: #b87412;
  --color-neutral: #ECECEC;
  --color-grey: #44454d;
  --color-background: #fff;
  --shadow-card: 0 2px 16px rgba(38, 77, 115, 0.06);
  --shadow-hover: 0 8px 32px rgba(38, 77, 115, 0.12);
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
  --radius-s: 8px;
  --radius-l: 22px;
  --transition: 0.3s cubic-bezier(.55,.07,.35,1.03);
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: #222;
  font-weight: 600;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.1;
  margin-bottom: 24px;
}
h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 14px;
}
h4, h5, h6 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}
p, ul, ol, li, details, summary {
  font-size: 1rem;
  color: #24262e;
}
p:not(:last-child) {
  margin-bottom: 18px;
}
strong {
  font-weight: 700;
  color: #264d73;
}
em {
  color: #b87412;
}

/* --- CONTAINERS & SECTIONS --- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.text-section {
  margin-top: 16px;
  margin-bottom: 16px;
}

/* --- FLEX LAYOUT PATTERNS (MANDATORY SPACING) --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: var(--radius-s);
  box-shadow: var(--shadow-card);
  position: relative;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #ECECEC;
  border-radius: var(--radius-s);
  box-shadow: var(--shadow-card);
  padding: 20px 28px;
  margin-bottom: 20px;
  min-width: 0;
  max-width: 700px;
  font-size: 1.09rem;
  color: #212121;
  border-left: 6px solid #b87412;
  position: relative;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- HEADER & TOP NAVIGATION --- */
header {
  background: #fff;
  box-shadow: 0 2px 8px 0 rgba(38,77,115,.03);
  z-index: 100;
  position: sticky;
  top: 0;
}
header nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 20px;
}
header nav > a {
  font-family: var(--font-display);
  font-size: 1.06rem;
  color: #264d73;
  padding: 8px 13px;
  border-radius: var(--radius-s);
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background var(--transition), color var(--transition);
  position: relative;
}
header nav > a:hover,
header nav > a:focus {
  background: #ececec;
  color: #b87412;
}
header nav .btn-primary {
  margin-left: 8px;
  padding: 9px 25px;
}
header nav img[alt="Marnaestro Pfotenstudio"] {
  height: 38px;
  width: auto;
  margin-right: 18px;
}

/* --- BUTTONS --- */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-s);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  text-align: center;
  outline: none;
  border: none;
  min-width: 150px;
  min-height: 42px;
  box-shadow: var(--shadow-card);
  letter-spacing: 0.01em;
  margin-top: 10px;
}
.btn-primary {
  background: #b87412;
  color: #fff;
  border: 2px solid #b87412;
  box-shadow: 0 4px 24px rgba(184,116,18,0.13);
}
.btn-primary:hover, .btn-primary:focus {
  background: #e2b979;
  color: #264d73;
  box-shadow: var(--shadow-hover);
  border-color: #e2b979;
}
.btn-secondary {
  background: #264d73;
  color: #fff;
  border: 2px solid #264d73;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #fff;
  color: #264d73;
  border-color: #264d73;
}

/* --- FOOTER --- */
footer {
  background: #f7f7f7;
  border-top: 3px solid #b87412;
  padding: 0;
}
footer .container {
  padding: 0 20px 28px 20px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding-top: 36px;
}
footer nav {
  display: flex;
  gap: 10px;
  margin-bottom: 5px;
  font-size: 14px;
  color: #333;
}
footer .btn-secondary {
  margin: 10px 0 0 0;
  padding: 6px 24px;
  font-size: 1rem;
}
footer img[alt="Marnaestro Pfotenstudio"] {
  height: 40px;
  margin-bottom: 14px;
}
footer .text-section {
  font-size: 15px;
  color: #24262e;
  text-align: center;
}
footer .social-media {
  display: flex;
  gap: 12px;
  margin: 8px 0 0 0;
}
footer .social-media a img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  padding: 3px;
  transition: background 0.18s;
  background: #fff;
  box-shadow: 0 1px 4px rgba(38,77,115,0.05);
}
footer .social-media a:hover img {
  background: #ececec;
}
footer .copyright {
  font-size: 13px;
  color: #b1b3bb;
  margin-top: 10px;
  text-align: center;
}

/* --- LISTS & TABLES --- */
ul, ol {
  margin-left: 24px;
  margin-bottom: 18px;
  color: #222;
}
li {
  margin-bottom: 8px;
  padding-left: 2px;
  font-size: 1rem;
  list-style: disc outside;
}
ul li img {
  vertical-align: middle;
  margin-right: 8px;
  height: 22px;
}
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  margin: 18px 0;
  font-size: 1.04rem;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-s);
  overflow: hidden;
}
th, td {
  text-align: left;
  padding: 12px 16px;
}
th {
  background: #ececec;
  color: #264d73;
  font-weight: 700;
  font-family: var(--font-display);
}
td {
  border-bottom: 1px solid #ececec;
}
tr:last-child td {
  border-bottom: none;
}

/* --- DETAILS/SUMMARY STYLES --- */
details {
  margin-bottom: 16px;
  background: #F9F8F6;
  border-radius: var(--radius-s);
  box-shadow: 0 1px 4px rgba(38,77,115,0.05);
  padding: 14px 20px;
  cursor: pointer;
  position: relative;
  border-left: 4px solid #b87412;
}
summary {
  font-weight: 600;
  font-family: var(--font-display);
  color: #264d73;
  margin-bottom: 8px;
  cursor: pointer;
  outline: none;
  transition: color .2s;
}
details[open] summary {
  color: #b87412;
}
details p {
  margin-bottom: 0;
}

/* --- RESPONSIVE IMAGES IN TEXT SECTION --- */
.text-section img {
  width: 22px;
  height: 22px;
  margin-right: 7px;
  vertical-align: text-bottom;
}

/* --- VISUAL HIERARCHY (SPACING) --- */
main {
  margin-bottom: 64px;
}
section {
  margin-bottom: 60px;
  padding: 40px 0 0 0;
}
@media (max-width: 900px) {
  section {
    padding-top: 25px;
  }
}

/* --- MOBILE MENU STYLES --- */
.mobile-menu-toggle {
  background: #fff;
  color: #b87412;
  border: none;
  border-radius: 50%;
  font-size: 2.1rem;
  padding: 7px 16px 9px 16px;
  position: absolute;
  top: 12px;
  right: 22px;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  z-index: 1202;
  display: none;
  transition: box-shadow var(--transition), background var(--transition), color var(--transition);
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: #ececec;
  color: #264d73;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(38, 77, 115, 0.98);
  z-index: 1201;
  transform: translateX(-100%);
  transition: transform .3s cubic-bezier(.7,.2,.25,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  color: #fff;
  border: none;
  font-size: 2.2rem;
  padding: 13px 18px 13px 10px;
  cursor: pointer;
  margin-top: 15px;
  margin-left: auto;
  display: block;
  transition: color .18s, background .18s;
  border-radius: 50%;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #b87412;
  background: #ececec12;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: 100vw;
  margin: 50px 0 0 0;
  align-items: flex-start;
  padding: 0 40px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.35rem;
  padding: 12px 0;
  font-family: var(--font-display);
  font-weight: 500;
  border-bottom: 1px solid #b87412;
  width: 100%;
  transition: background .18s, color .18s;
  border-radius: 0;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #fff1e0;
  color: #b87412;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff8f1;
  box-shadow: 0 0 18px 0 rgba(38,77,115,0.09);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 19px 11px 19px 11px;
  z-index: 1203;
  border-top: 3px solid #b87412;
  animation: cookieBannerSlideIn 0.38s cubic-bezier(.57,1.65,.31,1.08);
}
@keyframes cookieBannerSlideIn {
  from { transform: translateY(120%); }
  to {   transform: translateY(0); }
}
.cookie-banner p {
  color: #212121;
  font-size: 1rem;
  margin-bottom: 0;
  max-width: 480px;
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-banner button {
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 7px 18px;
  border-radius: var(--radius-s);
  border: 2px solid #b87412;
  background: #fff;
  color: #b87412;
  cursor: pointer;
  font-weight: 500;
  transition: background .18s, color .18s, border-color .18s;
}
.cookie-banner .accept {
  background: #b87412;
  color: #fff;
  border: 2px solid #b87412;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #e2b979;
  color: #264d73;
  border-color: #e2b979;
}
.cookie-banner .settings {
  background: #fff;
  color: #b87412;
  border: 2px solid #b87412;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #f1e5d2;
}
.cookie-banner .reject {
  background: #fff;
  color: #b87412;
  border: 2px solid #b87412;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #fce5d2;
}

/* --- COOKIE MODAL --- */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(38,77,115,0.97);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1300;
  animation: cookieModalFadeIn 0.25s cubic-bezier(.55,.1,.22,.88);
}
@keyframes cookieModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal.open {
  display: flex;
}
.cookie-modal .cookie-modal-content {
  background: #fff;
  padding: 38px 22px 32px 22px;
  border-radius: var(--radius-l);
  box-shadow: 0 8px 42px rgba(38,77,115,.13);
  max-width: 420px;
  width: 95%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: stretch;
}
.cookie-modal h2 {
  color: #264d73;
  margin-bottom: 12px;
  font-size: 1.3rem;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 1rem;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 22px;
}
.cookie-modal input[type=checkbox]:not(:disabled) {
  accent-color: #b87412;
}
.cookie-modal input[disabled] {
  accent-color: #C5BBBA;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 11px;
}
.cookie-modal button {
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 7px 18px;
  border-radius: var(--radius-s);
  border: 2px solid #b87412;
  background: #fff;
  color: #b87412;
  cursor: pointer;
  font-weight: 500;
  transition: background .17s, color .17s, border-color .18s;
}
.cookie-modal .accept {
  background: #b87412;
  color: #fff;
}
.cookie-modal .accept:hover,
.cookie-modal .accept:focus {
  background: #e2b979;
  color: #264d73;
  border-color: #e2b979;
}
@media (max-width: 900px) {
  .cookie-modal .cookie-modal-content {
    padding: 30px 10px 24px 10px;
  }
}

/* --- CARDS, MICRO-INTERACTIONS --- */
.card, .testimonial-card {
  box-shadow: var(--shadow-card);
  transition: box-shadow .23s, transform .16s;
}
.card:hover,
.testimonial-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px) scale(1.017);
}

/* --- TABLET/MOBILE STYLES --- */
@media (max-width: 1200px) {
  .container {
    max-width: 95vw;
  }
}
@media (max-width: 900px) {
  header nav {
    gap: 14px;
    padding-right: 40px;
  }
  .testimonial-card, .card {
    padding: 14px 14px;
    font-size: 1rem;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 95%;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.3rem;
  }
  .content-wrapper, .card-container, .content-grid {
    flex-direction: column !important;
    gap: 18px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    max-width: 100%;
    padding: 13px 6px;
  }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    z-index: 1202;
  }
  .section {
    margin-bottom: 40px;
    padding: 18px 5px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 14px;
  }
  .card,
  .feature-item {
    padding: 13px 8px;
    font-size: 1rem;
  }
  footer .content-wrapper {
    padding-top: 22px;
    gap: 8px;
  }
  .cookie-banner p {
    font-size: 15px;
    margin-bottom: 6px;
  }
  .mobile-nav {
    padding: 0 15px;
    gap: 16px;
    margin: 40px 0 0 0;
  }
  .mobile-nav a {
    font-size: 1.13rem;
    padding: 9px 0;
  }
}

@media (max-width: 450px) {
  html {
    font-size: 92%;
  }
  .cookie-banner {
    padding: 12px 2px;
  }
  .cookie-banner .cookie-btns {
    gap: 7px;
  }
}

/* --- VISUAL REFINEMENTS --- */
.card,
.feature-item,
.section,
.text-section {
  border-radius: var(--radius-s);
  background: #fff;
}
.card {
  border: 1px solid #F3E3CE;
}

.section h2 {
  border-left: 6px solid #b87412;
  padding-left: 13px;
  background: none;
  margin-bottom: 18px;
}

/* --- Z-INDEX LAYERING --- */
header,
.mobile-menu,
.cookie-banner,
.cookie-modal {
  z-index: 1200;
}

/* --- ACCENT DETAILS --- */
.btn-primary,
.btn-secondary {
  box-shadow: 0 3px 14px rgba(38,77,115,.06);
}

::selection {
  background: #ffedc9;
  color: #264d73;
}

/* --- FOR TABLE OVERFLOW ON MOBILE --- */
@media (max-width: 640px) {
  table, thead, tbody, th, td, tr {
    display: block;
    width: 100%;
  }
  th { background: #ececec; position: relative; z-index: 0; }
  tr { border-bottom: 2px solid #ececec; }
  td {
    position: relative;
    padding-left: 48%;
    min-height: 36px;
    border-bottom: 1px solid #ececec;
  }
  td:before {
    position: absolute;
    top: 10px;
    left: 8px;
    width: 45%;
    color: #264d73;
    white-space: nowrap;
    font-weight: bold;
    content: attr(data-label);
  }
}

/* --- MISC: MODERN SCROLLBAR FOR LUXURY --- */
body::-webkit-scrollbar {
  width: 10px;
  background: #ececec;
}
body::-webkit-scrollbar-thumb {
  background: #e2b979;
  border-radius: 6px;
}

/* --- FOCUS STYLES FOR ACCESSIBILITY --- */
:focus {
  outline: 2px solid #b87412;
  outline-offset: 2px;
}

/* --- UTILITY CLASSES (SPACING, FLEX, ETC) --- */
.mb-20 { margin-bottom: 20px !important; }
.mt-20 { margin-top: 20px !important; }
.gap-20 { gap: 20px !important; }
.align-center { align-items: center !important; }

/* --- HIDING NATIVE FOCUS ON IMAGES/LINKS (NOT BUTTONS) --- */
a img:focus {
  outline: none;
}

/* --- PRINT (OPTIONAL) --- */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  main { margin: 0 !important; }
}
