/* =============================================================
   Peter Lock — Innenarchitekt Dresden
   Global Stylesheet (style.css)
   ============================================================= */

/* ---- Reset & Base ------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #f8f5f0;
  color: #1a1a1a;
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ---- Typography -------------------------------------------- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: #1a1a1a;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); margin-bottom: 0.75rem; }
h4 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: #3a3a3a;
}

p:last-child { margin-bottom: 0; }

/* ---- Layout Utilities -------------------------------------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

.section-intro {
  max-width: 680px;
  margin-bottom: 2.5rem;
  color: #555;
  font-size: 1.05rem;
}

/* ---- Colors / Tokens --------------------------------------- */
:root {
  --color-bg: #f8f5f0;
  --color-bg-card: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #666666;
  --color-accent: #8b6914;
  --color-accent-light: #e8dfc8;
  --color-border: #e0d8cc;
  --color-dark: #1a1a1a;
  --radius: 8px;
  --shadow: 0 2px 16px rgba(0,0,0,0.07);
  --shadow-hover: 0 6px 24px rgba(0,0,0,0.12);
  --transition: 0.2s ease;
}

/* ---- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

.btn-primary {
  background: var(--color-dark);
  color: #fff;
  border-color: var(--color-dark);
}
.btn-primary:hover {
  background: #333;
  border-color: #333;
}

.btn-secondary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn-secondary:hover {
  background: #7a5c12;
  border-color: #7a5c12;
}

.btn-outline {
  background: transparent;
  color: var(--color-dark);
  border-color: var(--color-dark);
}
.btn-outline:hover {
  background: var(--color-dark);
  color: #fff;
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
}

.btn-white {
  background: #fff;
  color: var(--color-dark);
  border-color: #fff;
}
.btn-white:hover {
  background: #f0ede8;
}

/* ---- Icon Base -------------------------------------------- */
.icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ---- Header / Navigation ---------------------------------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-dark);
  letter-spacing: -0.01em;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo span {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #444;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--color-accent);
}

.nav-cta {
  background: var(--color-dark);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: var(--radius);
  font-weight: 600 !important;
  transition: background var(--transition) !important;
}

.nav-cta:hover {
  background: #333 !important;
  color: #fff !important;
}

/* Mobile menu toggle */
.nav-toggle-checkbox {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: 4px;
  color: var(--color-dark);
}

@media (max-width: 768px) {
  .nav-toggle-label {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 8px 0 16px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 12px 24px;
    font-size: 1rem;
  }

  .nav-cta {
    margin: 8px 24px 0;
    text-align: center;
    border-radius: var(--radius);
  }

  .nav-toggle-checkbox:checked ~ .nav-links {
    display: flex;
  }
}

/* ---- Footer ----------------------------------------------- */
footer {
  background: var(--color-dark);
  color: #ccc;
  padding: 56px 0 0;
}

.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 0.9rem;
  color: #999;
  line-height: 1.5;
  margin-bottom: 0;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  color: #999;
  font-size: 0.9rem;
  transition: color var(--transition);
  text-decoration: none;
}

.footer-col ul a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: 1100px;
  margin: 40px auto 0;
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #777;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* ---- Table Base ------------------------------------------- */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

thead {
  background: var(--color-dark);
  color: #fff;
}

th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

tbody tr:nth-child(even) {
  background: #f4f1eb;
}

/* ---- FAQ Accordion ---------------------------------------- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: var(--color-bg-card);
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
  list-style: none;
  transition: background var(--transition);
  gap: 16px;
}

.faq-question:hover {
  background: #f4f1eb;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-arrow {
  transition: transform 0.2s ease;
  flex-shrink: 0;
  color: var(--color-accent);
}

details[open] .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 24px 20px;
  color: #555;
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
}

.faq-answer p {
  color: #555;
  margin-bottom: 0;
}
