:root {
  --ink: #15323b;
  --muted: #687980;
  --sea: #0f6d83;
  --deep-sea: #073f4e;
  --gold: #c79a52;
  --sand: #f1e7d6;
  --paper: #fffaf2;
  --white: #ffffff;
  --line: rgba(21, 50, 59, 0.14);
  --shadow: 0 20px 60px rgba(8, 39, 49, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f7f3eb;
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  min-height: 100vh;
}

.hero {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px max(16px, calc((100vw - 1180px) / 2)) 52px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(5, 36, 45, 0.82), rgba(5, 36, 45, 0.28)),
    linear-gradient(0deg, rgba(5, 36, 45, 0.52), rgba(5, 36, 45, 0.04)),
    url("druck1.webp") center / cover no-repeat;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  color: #ffe2a2;
  font-family: Georgia, serif;
  font-size: 24px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 17px;
}

.brand small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: flex;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.lang-switch button {
  width: 42px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: transparent;
  cursor: pointer;
}

.lang-switch button.active {
  color: var(--deep-sea);
  background: var(--white);
}

.ghost-button,
.secondary-button,
.primary-button,
.danger-button {
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0 18px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.ghost-button {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.1);
}

.primary-button {
  color: var(--white);
  background: var(--sea);
  box-shadow: 0 10px 24px rgba(15, 109, 131, 0.24);
}

.secondary-button {
  color: var(--ink);
  border-color: var(--line);
  background: var(--white);
}

.danger-button {
  color: var(--white);
  background: #9b2d24;
}

.hero-copy {
  max-width: 760px;
  padding-top: 90px;
  padding-left: 0;
}

.hero-copy p:first-child,
.content-head p,
.admin-head p {
  margin: 0 0 10px;
  color: #ffe2a2;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  max-width: 740px;
  font-family: Georgia, serif;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-title-row {
  display: grid;
  grid-template-columns: minmax(480px, 560px) minmax(260px, 340px);
  gap: 22px;
  align-items: end;
  max-width: 940px;
}

.hotel-select-label {
  display: grid;
  gap: 8px;
  max-width: 340px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.hotel-select-label select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--deep-sea);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 36px rgba(8, 39, 49, 0.18);
}

.hero-copy p:last-child {
  max-width: 610px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.55;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: -34px auto 70px;
}

.quick-info {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 34px;
}

.quick-info article,
.card,
.detail-card,
.admin-login,
.admin-panel {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.quick-info article {
  min-height: 112px;
  padding: 18px;
  border-radius: 8px;
}

.quick-info span,
.detail-meta,
.card-category {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.quick-info strong {
  display: block;
  margin-top: 12px;
  font-size: 18px;
}

.quick-info small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.content-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 26px 0 18px;
}

.content-head p {
  color: var(--gold);
}

.content-head h2,
.admin-head h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 34px;
}

.search-box {
  display: grid;
  gap: 7px;
  min-width: min(330px, 100%);
  color: var(--muted);
  font-size: 13px;
}

.search-box input,
.admin-grid input,
.admin-grid textarea,
.admin-grid select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--white);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  display: grid;
  min-height: 310px;
  overflow: hidden;
  border-radius: 8px;
}

.card-visual {
  position: relative;
  min-height: 178px;
  display: flex;
  align-items: end;
  padding: 16px;
  color: var(--white);
  overflow: hidden;
  background: #0f6d83;
}

.card-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-visual.manual-image img {
  object-fit: contain;
  padding: 12px;
  background: #dfe8e7;
}

.card-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(7, 63, 78, 0.36), rgba(15, 109, 131, 0.12));
}

.card-icon {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 27px;
}

.admin-edit-button {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  color: var(--deep-sea);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 18px rgba(8, 39, 49, 0.18);
  cursor: pointer;
}

.admin-edit-button::before {
  content: "✎";
  margin-right: 6px;
}

.card-body {
  padding: 18px;
}

.card h3 {
  margin: 8px 0 8px;
  font-size: 22px;
  line-height: 1.18;
}

.card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.5;
}

.card button {
  width: 100%;
}

.detail-panel {
  margin-top: 28px;
}

.detail-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.35fr);
  overflow: hidden;
  border-radius: 8px;
}

.detail-visual {
  min-height: 430px;
  background:
    linear-gradient(150deg, rgba(7, 63, 78, 0.86), rgba(15, 109, 131, 0.45)),
    url("druck1.webp") center / cover no-repeat;
}

.detail-content {
  padding: clamp(22px, 4vw, 46px);
  min-width: 0;
  overflow-wrap: anywhere;
}

.detail-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.detail-content h2 {
  margin: 14px 0 10px;
  font-family: Georgia, serif;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
}

.lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.body-text {
  margin-top: 24px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.body-text p {
  margin: 0 0 13px;
  line-height: 1.65;
}

.contact-block {
  display: grid;
  gap: 4px;
  margin-top: 28px;
  padding: 18px;
  border-left: 4px solid var(--gold);
  background: var(--paper);
  color: var(--ink);
}

.contact-block span {
  color: var(--muted);
}

.detail-actions,
.admin-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 12px;
  margin: 20px 0 24px;
}

.detail-actions > * {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

.admin-login,
.admin-panel {
  margin-top: 30px;
  border-radius: 8px;
  padding: clamp(18px, 4vw, 30px);
}

.admin-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.admin-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-head p {
  color: var(--gold);
}

.admin-head .ghost-button {
  color: var(--ink);
  border-color: var(--line);
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-grid label,
.login-row label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.admin-grid .full {
  grid-column: 1 / -1;
}

.login-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.login-row input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
}

.login-error {
  margin: 12px 0 0;
  color: #9b2d24;
  font-weight: 700;
}

.save-note {
  margin: 10px 0 0;
  color: var(--sea);
  font-weight: 700;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--white);
  background: var(--sea);
  box-shadow: 0 14px 34px rgba(8, 39, 49, 0.22);
  font-weight: 700;
}

.admin-image-preview {
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper) center / cover no-repeat;
}

.image-adjust {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6efe4;
}

.image-adjust[hidden] {
  display: none;
}

.image-adjust-stage {
  overflow: hidden;
  border: 1px solid rgba(21, 50, 59, 0.16);
  border-radius: 8px;
  background: #dfe8e7;
  aspect-ratio: 16 / 10;
}

.image-adjust-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.image-adjust-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.image-adjust-controls input {
  width: 100%;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #f6efe4;
}

.editor-toolbar button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 11px;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
}

.rich-editor {
  min-height: 260px;
  max-height: 520px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
  padding: 14px;
  color: var(--ink);
  background: var(--white);
  font-size: 15px;
  line-height: 1.55;
}

.rich-editor:focus {
  outline: 2px solid rgba(15, 109, 131, 0.22);
  outline-offset: 2px;
}

.rich-editor h2,
.body-text h2 {
  margin: 20px 0 10px;
  font-family: Georgia, serif;
  font-size: 26px;
  line-height: 1.15;
}

.rich-editor p,
.rich-editor ul,
.rich-editor ol {
  margin: 0 0 12px;
}

.body-text ul,
.body-text ol {
  margin: 0 0 15px 22px;
  line-height: 1.65;
}

@media (max-width: 880px) {
  .hero {
    min-height: 68vh;
    padding-left: 11px;
    padding-right: 11px;
    padding-bottom: 42px;
  }

  .topbar,
  .content-head,
  .admin-head {
    align-items: stretch;
    flex-direction: column;
  }

  .top-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .quick-info,
  .cards-grid,
  .detail-card,
  .admin-grid,
  .hero-title-row,
  .image-adjust-controls {
    grid-template-columns: 1fr;
  }

  .hotel-select-label {
    max-width: 100%;
  }

  .login-row {
    grid-template-columns: 1fr;
  }

  .detail-visual {
    min-height: 210px;
  }
}

@media (max-width: 520px) {
  .hero {
    min-height: 620px;
    padding-top: 18px;
    padding-bottom: 34px;
  }

  .hero-copy {
    padding-top: 210px;
  }

  .hero-copy h1 {
    font-size: 42px;
    line-height: 1.02;
  }

  .hero-copy p:last-child {
    max-width: 330px;
    font-size: 16px;
    line-height: 1.45;
  }

  .brand small {
    display: none;
  }

  .ghost-button#adminToggle {
    display: inline-flex;
  }

  .lang-switch button {
    width: 38px;
  }

  main {
    width: min(100% - 22px, 1180px);
  }

  .quick-info {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-bottom: 22px;
  }

  .quick-info article {
    min-height: 0;
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: center;
    column-gap: 10px;
    padding: 9px 11px;
    border-radius: 7px;
    box-shadow: 0 10px 26px rgba(8, 39, 49, 0.12);
  }

  .quick-info span {
    font-size: 10px;
  }

  .quick-info strong {
    margin-top: 0;
    font-size: 15px;
    line-height: 1.15;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .quick-info small {
    grid-column: 2;
    margin-top: -2px;
    font-size: 11px;
    line-height: 1.2;
  }

  .detail-actions > * {
    min-width: 0;
    width: auto;
  }
}

@media (max-width: 520px) {
  .detail-actions {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media print {
  body {
    background: #fff;
  }

  .hero,
  .quick-info,
  .content-head,
  .cards-grid,
  .detail-actions,
  .admin-panel {
    display: none !important;
  }

  main {
    width: auto;
    margin: 0;
  }

  .detail-panel,
  .detail-panel[hidden] {
    display: block !important;
    margin: 0;
  }

  .detail-card {
    display: block;
    border: 0;
    box-shadow: none;
  }

  .detail-visual {
    min-height: 95px;
    background: var(--deep-sea);
  }

  .detail-content {
    padding: 22mm 18mm;
  }

  .detail-content h2 {
    font-size: 28pt;
  }

  .lead,
  .body-text p {
    font-size: 11.5pt;
  }
}
