* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: linear-gradient(180deg, #f8fbfb, #eef6f7 58%, #f8fbfb);
  color: #213436;
  line-height: 1.62;
}
a { color: #286f78; text-decoration: none; }
a:hover { text-decoration: underline; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(50,90,94,.14);
}
.header-inner {
  max-width: 1180px;
  margin: auto;
  padding: 13px 22px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
}
.brand {
  justify-self: center;
  font-size: 18px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #213436;
  font-weight: 650;
}
.nav-left, .nav-right { display: flex; gap: 18px; align-items: center; font-size: 14px; }
.nav-left { justify-content: flex-start; }
.nav-right { justify-content: flex-end; }
.nav-left a, .nav-right a { color: #4d6669; }
main { max-width: 1180px; margin: auto; padding: 0 22px; }
.hero, .page-hero {
  padding: 42px 0 28px;
  text-align: center;
}
.hero h1, .page-hero h1 { margin: 0 auto 16px; max-width: 900px; font-size: clamp(34px, 6vw, 72px); line-height: 1.03; letter-spacing: -.04em; }
.hero p, .page-hero p { max-width: 700px; margin: 0 auto; color: #52696c; font-size: 18px; }
.kicker { margin: 0 0 10px; text-transform: uppercase; letter-spacing: .18em; font-size: 12px; color: #6b8588; font-weight: 700; }
.section { padding: 28px 0; border-top: 1px solid rgba(50,90,94,.12); }
.narrow { max-width: 680px; margin: auto; }
.wide { max-width: 960px; margin: auto; }
.split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .7fr); gap: 26px; align-items: start; }
.grid { display: grid; gap: 22px; }
.cards { grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); }
.two { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card, .softbox, .content-block, .table-wrap {
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(50,90,94,.13);
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(33,52,54,.06);
}
.card { overflow: hidden; }
.card img { width: 100%; height: 210px; object-fit: cover; display: block; }
.card-body, .softbox, .content-block { padding: 24px; }
.card h3, .softbox h2 { margin-top: 0; }
.meta, .muted { color: #667b7e; font-size: 14px; }
.textlink { font-weight: 700; }
.section-head { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin-bottom: 20px; }
.button, button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(40,111,120,.25);
  border-radius: 999px;
  background: #286f78;
  color: white;
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
  font: inherit;
}
.button:hover { text-decoration: none; filter: brightness(.95); }
.button.secondary { background: transparent; color: #286f78; }
.button.danger { background: #7d3c35; border-color: rgba(125,60,53,.35); }
.badge, .notice, .error {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(40,111,120,.1);
  color: #286f78;
  font-size: 14px;
}
.error { background: rgba(125,60,53,.12); color: #7d3c35; }
.notice { background: rgba(201,169,98,.18); color: #6e5b26; }
.owner-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.owner-actions form { margin: 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.gallery figure { margin: 0; background: rgba(255,255,255,.7); border-radius: 24px; overflow: hidden; border: 1px solid rgba(50,90,94,.13); }
.gallery img { width: 100%; height: 310px; object-fit: cover; display: block; }
.gallery figcaption { padding: 12px 16px; color: #52696c; font-size: 14px; }
.map-wrap iframe { width: 100%; height: min(56vw, 420px); border: 0; border-radius: 24px; box-shadow: 0 18px 40px rgba(33,52,54,.08); }
.link-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.link-pills a { padding: 8px 14px; border-radius: 999px; background: rgba(40,111,120,.09); color: #286f78; font-weight: 700; }
.form { display: grid; gap: 18px; }
.form label { display: grid; gap: 7px; font-weight: 700; color: #40595c; }
.form input, .form textarea, .form select {
  width: 100%;
  border: 1px solid rgba(50,90,94,.18);
  background: rgba(255,255,255,.86);
  border-radius: 16px;
  padding: 12px 14px;
  font: inherit;
  color: #213436;
}
.form textarea { resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.upload-block { padding: 22px; border: 1px dashed rgba(50,90,94,.24); border-radius: 22px; }
.image-edit-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid rgba(50,90,94,.1); }
.image-edit-row img { width: 120px; height: 82px; object-fit: cover; border-radius: 12px; }
.check { display: flex !important; grid-template-columns: auto auto !important; align-items: center; gap: 8px !important; white-space: nowrap; }
.check input { width: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px; text-align: left; border-bottom: 1px solid rgba(50,90,94,.1); }
.site-footer { text-align: center; color: #6b8588; padding: 44px 20px; font-size: 13px; }
@media (max-width: 820px) {
  .header-inner { grid-template-columns: 1fr; gap: 8px; }
  .brand { order: -1; }
  .nav-left, .nav-right { justify-content: center; flex-wrap: wrap; gap: 12px; }
  .split { grid-template-columns: 1fr; }
  .section-head { align-items: start; flex-direction: column; }
  .image-edit-row { grid-template-columns: 1fr; }
  .image-edit-row img { width: 100%; height: 170px; }
}

/* Launchbasis Ergänzung: Matrix · Händi · Sofortaction · A6 */
.matrix-grid, .dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.matrix-card { position: relative; }
.mini-like {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(50,90,94,.16);
  border-radius: 999px;
  padding: 5px 10px;
  font-weight: 800;
  color: #286f78;
}
.card-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.instantbar {
  position: sticky;
  top: 58px;
  z-index: 18;
  margin: 12px auto 0;
  max-width: 860px;
  min-height: 52px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(50,90,94,.14);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 34px rgba(33,52,54,.08);
}
.like-form { margin: 0; }
.like-button, .instant-main, .instant-soft {
  min-height: 38px;
  border: 1px solid rgba(40,111,120,.2);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
}
.like-button { background: #fff; color: #286f78; cursor: pointer; }
.instant-main { background: #286f78; color: #fff; text-align: center; }
.instant-soft { background: transparent; color: #286f78; }
.instant-main.disabled { background: rgba(40,111,120,.08); color: #6b8588; }
.page-address { margin-top: 14px !important; font-size: 14px !important; letter-spacing: .04em; color: #6b8588 !important; }
.tech-details {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(50,90,94,.13);
  background: rgba(255,255,255,.55);
}
.tech-details summary { cursor: pointer; font-weight: 800; color: #4d6669; }
.data-pre {
  overflow: auto;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(50,90,94,.13);
  white-space: pre-wrap;
}
.dash-card h2 { margin-top: 0; }

@media (max-width: 720px) {
  html { scroll-padding-top: 86px; }
  main { padding: 0 12px; }
  .site-header { position: sticky; }
  .header-inner { padding: 9px 12px; }
  .nav-left, .nav-right { font-size: 12px; gap: 8px; }
  .brand { font-size: 15px; letter-spacing: .13em; }
  .hero, .page-hero { padding: 46px 0 32px; }
  .hero h1, .page-hero h1 { font-size: clamp(34px, 13vw, 54px); }
  .section { padding: 26px 0; }
  .matrix-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .matrix-card, .softbox, .content-block {
    border-radius: 26px;
  }
  .matrix-card {
    min-height: 78vh;
    display: flex;
    flex-direction: column;
  }
  .matrix-card img { height: 42vh; }
  .matrix-card .card-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
  .instantbar {
    top: 48px;
    max-width: none;
    width: calc(100% - 16px);
    grid-template-columns: auto minmax(0, 1fr) auto;
    border-radius: 22px;
    padding: 7px;
  }
  .like-button, .instant-main, .instant-soft { min-height: 42px; padding: 8px 10px; font-size: 13px; }
  .instant-main { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .gallery.mobile-focus { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding-bottom: 12px; }
  .gallery.mobile-focus figure { min-width: 86vw; scroll-snap-align: center; }
  .gallery.mobile-focus img { height: 48vh; }
  .form-grid { grid-template-columns: 1fr; }
}

.searchline {
  max-width: 980px;
  margin: 0 auto;
  padding: 16px 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(50,90,94,.12);
}

.searchline label {
  font-weight: 700;
  color: #213436;
}

.searchline input {
  width: 260px;
  padding: 9px 10px;
  border: 1px solid rgba(50,90,94,.28);
  border-radius: 8px;
}

.print-body { background: #f8fbfb; }
.a6-flyer {
  width: 105mm;
  min-height: 148mm;
  max-width: 105mm;
  margin: 16px auto;
  padding: 7mm 7mm 6mm;
  background: #fff;
  color: #213436;
  border: 1px solid rgba(50,90,94,.22);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 20px 60px rgba(33,52,54,.12);
}
.flyer-path { text-align: center; font-size: 9px; letter-spacing: .08em; color: #6b8588; }
.flyer-main { text-align: center; }
.flyer-main h1 { font-size: 28px; line-height: 1.02; letter-spacing: -.04em; margin: 8mm 0 4mm; }
.flyer-summary { font-size: 12px; line-height: 1.35; color: #52696c; }
.flyer-image { width: 100%; max-height: 42mm; object-fit: cover; border-radius: 14px; margin: 4mm 0; }
.flyer-location, .flyer-price, .flyer-contact { font-size: 11px; margin: 3mm 0; }
.flyer-url { text-align: center; font-weight: 800; font-size: 11px; margin-top: auto; }
.flyer-footer { text-align: center; font-size: 9px; color: #6b8588; padding-top: 4mm; }
.screen-print-actions { text-align: center; margin: 14px; display: flex; justify-content: center; gap: 10px; }
@page { size: A6 portrait; margin: 0; }
@media print {
  body { background: #fff; margin: 0; }
  .screen-print-actions { display: none; }
  .a6-flyer { margin: 0; box-shadow: none; border: none; width: 105mm; min-height: 148mm; }
}

/* Feinschliff 23.07.2026: Volltextsuche und schlanke Ergebnisliste */

.searchline {
  max-width: 980px;
  margin: 0 auto;
  padding: 14px 0 22px;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(150px, auto) auto;
  gap: 12px;
  align-items: end;
  border-bottom: 1px solid rgba(50, 90, 94, .12);
}

.search-main,
.search-group {
  display: grid;
  gap: 5px;
}

.searchline label {
  color: #213436;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.searchline input,
.searchline select {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid rgba(50, 90, 94, .28);
  border-radius: 9px;
  background: rgba(255, 255, 255, .84);
  color: #213436;
  font: inherit;
}

.search-count {
  align-self: center;
  color: #6b8588;
  font-size: 13px;
  white-space: nowrap;
}

.world-file-wrap {
  width: 100%;
  max-height: 500px;
  overflow: auto;
  border: 1px solid rgba(50, 90, 94, .15);
  border-radius: 10px;
  background: rgba(255, 255, 255, .68);
  box-shadow: 0 10px 28px rgba(33, 52, 54, .05);
}

.world-file-table {
  width: 100%;
  min-width: 950px;
  table-layout: fixed;
  border-collapse: collapse;
  background: transparent;
}

.world-file-table th,
.world-file-table td {
  height: 46px;
  max-height: 46px;
  padding: 7px 10px;
  border-bottom: 1px solid rgba(50, 90, 94, .1);
  text-align: left;
  vertical-align: middle;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.world-file-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 38px;
  color: #6b8588;
  background: #eef6f7;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.world-file-row:hover td {
  background: rgba(255, 255, 255, .94);
}

.world-file-row.group-start td {
  border-top: 2px solid rgba(40, 111, 120, .24);
}

.world-file-row[hidden] {
  display: none;
}

.col-category { width: 100px; }
.col-location { width: 145px; }
.col-title { width: 180px; }
.col-summary { width: 250px; }
.col-contact { width: 140px; }
.col-updated { width: 135px; }

.file-title-cell a,
.file-cell-ellipsis {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.file-title-cell a {
  color: #213436;
  font-weight: 750;
}

.search-empty {
  margin-top: 16px;
}

.home-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.home-content-form .softbox {
  display: grid;
  gap: 16px;
}

/* Editor: Foto zuerst, automatische Sicherung, klare Veröffentlichung */

.editor-photo-first {
  border-style: solid;
  background: rgba(255, 255, 255, .68);
}

.title-label-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}

.draft-status {
  color: #6b8588;
  font-size: 12px;
  font-weight: 500;
  text-align: right;
}

.draft-status[data-state="saving"] {
  color: #286f78;
}

.draft-status[data-state="error"] {
  color: #7d3c35;
}

.visibility-panel,
.draft-resume {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 20px 22px;
  border: 1px solid rgba(50, 90, 94, .14);
  border-radius: 20px;
  background: rgba(255, 255, 255, .68);
}

.visibility-panel h2,
.draft-resume h2 {
  margin: 0 0 6px;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.tech-grid p {
  margin: 0;
  overflow-wrap: anywhere;
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 720px) {
  .searchline {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .searchline label,
  .search-count {
    white-space: normal;
  }

  .world-file-wrap {
    max-height: 478px;
    border-radius: 9px;
  }

  .world-file-table {
    min-width: 950px;
  }

  .world-file-table th,
  .world-file-table td {
    height: 44px;
    max-height: 44px;
    padding: 6px 9px;
  }

  .world-file-table tbody tr {
    height: 44px;
    max-height: 44px;
  }

  .title-label-row,
  .visibility-panel,
  .draft-resume {
    align-items: stretch;
    flex-direction: column;
  }

  .draft-status {
    text-align: left;
  }
}

.system-warning {
  max-width: 1180px;
  margin: 10px auto 0;
  padding: 10px 14px;
  border: 1px solid rgba(201, 169, 98, .35);
  border-radius: 12px;
  background: rgba(201, 169, 98, .16);
  color: #6e5b26;
  font-size: 14px;
}
