/* ==========================================================================
   Gattas — global.css
   Shared styles: reset, typography, header, footer, buttons, icons
   Design language: dieraumpiraten.de — black/white + #fd2504,
   dotted/dashed borders, rough uneven "hand-drawn" borders
   ========================================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: #111;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; vertical-align: middle; }
ul[class], ol[class] { list-style: none; }
a { color: #fd2504; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration: none; }

/* ---------- Design tokens ---------- */
:root {
  --ink: #111;
  --paper: #fff;
  --accent: #fd2504;
  --rough-1: 255px 15px 225px 15px / 15px 225px 15px 255px;
  --rough-2: 15px 225px 15px 255px / 255px 15px 225px 15px;
  --rough-3: 125px 10px 20px 185px / 25px 205px 205px 25px;
  --shadow-hard: 5px 5px 0 var(--ink);
}

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: 'Permanent Marker', 'Rubik', cursive; line-height: 1.2; font-weight: 400; }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: .6rem; }
h4, h5 { font-family: 'Rubik', sans-serif; font-weight: 700; }
p { margin-bottom: 1rem; }
.accent { color: var(--accent); }
.handwritten { font-family: 'Permanent Marker', cursive; }

/* ---------- Layout ---------- */
.container { max-width: 800px; margin: 0 auto; padding: 0 1.25rem; }
.container-wide { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }
main > section { padding: 3rem 0; }
main > section + section { border-top: 3px dashed var(--ink); }

/* ---------- Icons ---------- */
.icon { width: 22px; height: 22px; flex: none; vertical-align: -4px; }
.icon-lg { width: 40px; height: 40px; }
.icon-check { color: #1a7a2e; }
.icon-cross { color: var(--accent); }
.icon-star { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: 'Permanent Marker', cursive;
  font-size: 1.05rem;
  padding: .8rem 1.6rem;
  border: 3px solid var(--ink);
  border-radius: var(--rough-1);
  text-decoration: none;
  box-shadow: var(--shadow-hard);
  transition: transform .12s ease, box-shadow .12s ease;
  cursor: pointer;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-secondary { background: var(--paper); color: var(--ink); }
.btn-ghost { background: transparent; color: #fff; border-color: #fff; box-shadow: 5px 5px 0 var(--accent); }
.btn-ghost:hover { box-shadow: 2px 2px 0 var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 3px dashed var(--ink);
}
.site-nav {
  max-width: 1080px;
  margin: 0 auto;
  padding: .7rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}
.logo {
  font-family: 'Permanent Marker', cursive;
  font-size: 1.6rem;
  color: var(--ink);
  text-decoration: none;
  transform: rotate(-2deg);
  display: inline-block;
}
.logo .accent { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 1.1rem; list-style: none; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--accent); }
.nav-links .nav-cta {
  font-family: 'Permanent Marker', cursive;
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--rough-2);
  padding: .35rem .9rem;
  box-shadow: 3px 3px 0 var(--ink);
}
.nav-links .nav-cta:hover { color: #fff; transform: translate(1px,1px); box-shadow: 2px 2px 0 var(--ink); }
.nav-toggle-checkbox { display: none; }
.nav-toggle-label { display: none; cursor: pointer; color: var(--ink); }

@media (max-width: 768px) {
  .nav-toggle-label { display: block; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: .8rem;
    padding: 1rem 0 .5rem;
    border-top: 2px dotted var(--ink);
    margin-top: .6rem;
  }
  .nav-toggle-checkbox:checked ~ .nav-links { display: flex; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #fff;
  border-top: 6px double var(--accent);
  padding: 2.5rem 0 1.5rem;
  margin-top: 0;
}
.site-footer .logo { color: #fff; }
.footer-grid {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.footer-col h4 { color: var(--accent); margin-bottom: .7rem; font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .45rem; }
.footer-col a { color: #fff; text-decoration: none; font-size: .95rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1080px;
  margin: 2rem auto 0;
  padding: 1.2rem 1.25rem 0;
  border-top: 2px dotted rgba(255,255,255,.4);
  font-size: .85rem;
  color: #bbb;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
}

/* ---------- Cards (rough borders) ---------- */
.card {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--rough-1);
  padding: 1.4rem 1.5rem;
}
.card-dashed { border-style: dashed; }
.card-dotted { border-style: dotted; border-width: 4px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 3px dashed var(--ink); border-radius: 18px 4px 22px 6px; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 720px; }
thead th {
  position: sticky;
  top: 0;
  background: var(--ink);
  color: #fff;
  font-family: 'Permanent Marker', cursive;
  font-weight: 400;
  padding: .7rem .8rem;
  text-align: left;
  white-space: nowrap;
}
tbody td { padding: .65rem .8rem; border-bottom: 1px dotted var(--ink); vertical-align: top; }
tbody tr:nth-child(even) { background: #f7f6f4; }

/* ---------- FAQ accordion ---------- */
details {
  border: 3px dashed var(--ink);
  border-radius: 16px 5px 18px 7px;
  margin-bottom: .9rem;
  background: var(--paper);
}
summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .95rem 1.2rem;
  font-weight: 600;
}
summary::-webkit-details-marker { display: none; }
summary .icon-chevron { transition: transform .2s ease; }
details[open] summary .icon-chevron { transform: rotate(180deg); }
details > div { padding: 0 1.2rem 1.1rem; border-top: 2px dotted var(--ink); padding-top: .9rem; }

/* ---------- Image placeholders ---------- */
.img-placeholder {
  border: 3px dotted var(--ink);
  border-radius: var(--rough-3);
  background: repeating-linear-gradient(45deg, #fafafa 0 12px, #f1efec 12px 24px);
  padding: 1.5rem;
  font-size: .85rem;
  color: #555;
  font-style: italic;
}
.img-placeholder strong { color: var(--ink); font-style: normal; display: block; margin-bottom: .3rem; }

/* ---------- Utility ---------- */
.tilt-l { transform: rotate(-1deg); display: inline-block; }
.tilt-r { transform: rotate(1deg); display: inline-block; }
.badge {
  display: inline-block;
  font-family: 'Permanent Marker', cursive;
  font-size: .85rem;
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: 12px 3px 14px 4px;
  padding: .2rem .7rem;
  transform: rotate(-2deg);
}
.pros-cons { display: grid; gap: 1rem; grid-template-columns: 1fr; margin: 1rem 0; }
@media (min-width: 768px) { .pros-cons { grid-template-columns: 1fr 1fr; } }
.pros-cons ul { list-style: none; }
.pros-cons li { display: flex; gap: .5rem; margin-bottom: .45rem; align-items: flex-start; font-size: .95rem; }
.pros-cons li .icon { margin-top: 2px; }
.pros-cons h4 { margin-bottom: .5rem; }
