/* ============ Mühlstraße 14 — Student House Hof ============ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  --primary: #0e7a52;
  --primary-dark: #0a5138;
  --primary-deep: #073527;
  --primary-light: #e7f4ee;
  --accent: #f0a832;
  --accent-dark: #c9820f;
  --text: #17251e;
  --text-muted: #5a6b62;
  --bg: #f7f8f5;
  --card: #ffffff;
  --border: #e4e9e4;
  --green: #23a35d;
  --red: #d64545;
  --yellow: #e8a13c;
  --radius: 18px;
  --shadow: 0 2px 14px rgba(15, 45, 32, 0.07);
  --shadow-lg: 0 14px 40px rgba(15, 45, 32, 0.16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Plus Jakarta Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--primary); }

h1, h2, h3, h4 { letter-spacing: -0.015em; line-height: 1.25; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 22px;
}

/* ---------- Header / Nav ---------- */
header {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(20, 60, 40, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px;
  max-width: 1200px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 1.05rem;
}

.brand .logo {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(14, 122, 82, 0.35);
}

.brand small {
  display: block;
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.7rem;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

nav ul {
  display: flex;
  gap: 2px;
  list-style: none;
  align-items: center;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: 999px;
  transition: all 0.15s;
}

nav a:hover { background: var(--primary-light); color: var(--primary-dark); }

nav a.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 12px rgba(14, 122, 82, 0.3);
}

/* language switch */
.lang-switch {
  display: flex;
  gap: 2px;
  margin-left: 12px;
  background: #edf1ec;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}

.lang-switch button {
  border: none;
  background: transparent;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.15s;
}

.lang-switch button.active {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 2px 6px rgba(15, 45, 32, 0.15);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 1.3rem;
  padding: 4px 12px;
  cursor: pointer;
  color: var(--text);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(700px 340px at 15% -10%, rgba(240, 168, 50, 0.22), transparent 60%),
    radial-gradient(800px 400px at 90% 10%, rgba(60, 190, 130, 0.25), transparent 65%),
    linear-gradient(150deg, var(--primary-deep) 0%, var(--primary-dark) 55%, #0f6b49 100%);
  color: #fff;
  padding: 84px 22px 96px;
  text-align: center;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 70px;
  background: var(--bg);
  clip-path: ellipse(75% 100% at 50% 100%);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  margin-bottom: 18px;
  line-height: 1.12;
}

.hero p.sub {
  font-size: 1.12rem;
  opacity: 0.9;
  max-width: 660px;
  margin: 0 auto 34px;
}

.hero .address {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(6px);
  padding: 7px 20px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 26px;
}

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.98rem;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

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

.btn-accent {
  background: linear-gradient(135deg, #f6bc55, var(--accent));
  color: #2b1a05;
  box-shadow: 0 6px 20px rgba(240, 168, 50, 0.4);
}
.btn-outline-light { background: rgba(255,255,255,0.08); color: #fff; border: 1.5px solid rgba(255,255,255,0.65); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 6px 18px rgba(14, 122, 82, 0.3);
}
.btn-outline { background: transparent; color: var(--primary-dark); border: 1.5px solid var(--primary); }
.btn-sm { padding: 9px 18px; font-size: 0.86rem; }

.hero .btn { margin: 6px; }

/* ---------- Sections ---------- */
section.page-section { padding: 60px 0; }

.section-title {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--primary-deep);
}

.section-sub {
  color: var(--text-muted);
  margin-bottom: 34px;
  max-width: 660px;
}

.page-head {
  background:
    radial-gradient(500px 200px at 85% 0%, rgba(240, 168, 50, 0.12), transparent 60%),
    var(--primary-light);
  padding: 52px 0 46px;
  border-bottom: 1px solid var(--border);
}

.page-head h1 { color: var(--primary-deep); font-size: 2.2rem; font-weight: 800; margin-bottom: 8px; }
.page-head p { color: var(--text-muted); max-width: 700px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Cards Grid ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }

.card h3 { margin-bottom: 8px; font-size: 1.13rem; font-weight: 700; }
.card p { color: var(--text-muted); font-size: 0.94rem; }

/* room photo / placeholder */
.room-photo {
  height: 195px;
  background: linear-gradient(135deg, #e2eee7, #c8dcd0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 2.8rem;
  position: relative;
  overflow: hidden;
}

.room-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.card:hover .room-photo img { transform: scale(1.05); }

.badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 13px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-available { background: #ddf5e7; color: #157a43; }
.badge-occupied { background: #fbe7e7; color: var(--red); }
.badge-soon { background: #fdf1dc; color: var(--accent-dark); }

.room-meta {
  display: flex;
  gap: 16px;
  margin: 10px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.room-meta strong { color: var(--text); font-size: 1.05rem; }

.feature-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 16px; }

.feature-tags span {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 11px;
  border-radius: 999px;
}

/* ---------- Info page ---------- */
.info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  margin-bottom: 26px;
}

.info-card h2 {
  color: var(--primary-deep);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-card h2 .emoji { font-size: 1.5rem; }

.info-card ul { margin: 10px 0 10px 22px; }
.info-card li { margin-bottom: 6px; }

.de-term {
  background: var(--primary-light);
  padding: 1px 8px;
  border-radius: 7px;
  font-style: italic;
  color: var(--primary-dark);
  white-space: nowrap;
}

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

.bin { border-radius: 14px; padding: 18px; color: #fff; }
.bin h4 { margin-bottom: 6px; font-size: 1rem; }
.bin p { font-size: 0.85rem; opacity: 0.95; color: #fff; }

.bin-yellow { background: linear-gradient(135deg, #e3b41c, #c99a06); }
.bin-blue { background: linear-gradient(135deg, #3778bc, #275f9c); }
.bin-brown { background: linear-gradient(135deg, #8a5f3d, #6e4a2d); }
.bin-black { background: linear-gradient(135deg, #474e56, #333940); }
.bin-glass { background: linear-gradient(135deg, #379a63, #27794c); }

/* ---------- Forms ---------- */
.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 22px;
}

.form-group { display: flex; flex-direction: column; }
.form-group.full { grid-column: 1 / -1; }

label {
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--text);
}

label small { font-weight: 500; color: var(--text-muted); }

input, select, textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 11px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fcfdfc;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 122, 82, 0.15);
}

/* ---------- Signature pad ---------- */
.sig-pad {
  border: 2px dashed #c8d4cc;
  border-radius: 12px;
  background: #fff;
  cursor: crosshair;
  touch-action: none;
  width: 100%;
  height: 160px;
}

/* ---------- Deals ---------- */
.deal-category {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-dark);
  margin-bottom: 6px;
}

.deal-highlight {
  background: #fdf6e9;
  border-left: 4px solid var(--accent);
  padding: 10px 15px;
  border-radius: 0 10px 10px 0;
  font-size: 0.88rem;
  font-weight: 600;
  margin: 14px 0;
  color: #6b4d0e;
}

/* ---------- Payments ---------- */
.pay-option {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pay-option:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.pay-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary-light), #d5ebe0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
}

.bank-details {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 15px 19px;
  margin-top: 14px;
  font-size: 0.92rem;
}

.bank-details div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; flex-wrap: wrap; }
.bank-details dt { color: var(--text-muted); }
.bank-details dd { font-family: "SF Mono", Menlo, Consolas, monospace; font-weight: 600; }

.copy-btn {
  background: var(--primary-light);
  color: var(--primary-dark);
  border: none;
  border-radius: 7px;
  padding: 2px 11px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  margin-left: 8px;
}

/* ---------- Documents ---------- */
.doc-list { list-style: none; margin-top: 20px; }

.doc-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 14px 19px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}

.doc-item .doc-name { flex: 1; font-weight: 700; font-size: 0.94rem; word-break: break-all; }
.doc-item .doc-meta { color: var(--text-muted); font-size: 0.8rem; white-space: nowrap; }

.drop-zone {
  border: 2px dashed var(--primary);
  border-radius: var(--radius);
  background: var(--primary-light);
  padding: 48px 20px;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.drop-zone:hover, .drop-zone.dragover { background: #d9ede2; transform: scale(1.005); }
.drop-zone .big { font-size: 2.3rem; margin-bottom: 8px; }

.signed-tag { background: #ddf5e7; color: #157a43; padding: 3px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 800; }

/* ---------- Check-out ---------- */
.photo-previews { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }

.photo-previews .ph {
  position: relative;
  width: 116px;
  height: 116px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.photo-previews .ph img { width: 100%; height: 100%; object-fit: cover; }

.photo-previews .ph-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: rgba(20, 30, 25, 0.65);
  color: #fff;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
}

.check-list { display: grid; gap: 8px; }

.check-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 500;
  font-size: 0.92rem;
  cursor: pointer;
}

.check-item input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* ---------- Contract preview ---------- */
.contract-paper {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
  padding: 52px 58px;
  max-width: 820px;
  margin: 0 auto;
  font-size: 0.92rem;
  line-height: 1.65;
}

.contract-paper h1 { font-size: 1.4rem; text-align: center; margin-bottom: 4px; }
.contract-paper h2.sub-en { font-size: 0.95rem; text-align: center; color: var(--text-muted); font-weight: 400; margin-bottom: 26px; }
.contract-paper h3 { font-size: 1rem; margin: 20px 0 6px; }
.contract-paper .en { color: #5c6b63; font-style: italic; font-size: 0.86rem; }
.contract-paper table { width: 100%; border-collapse: collapse; margin: 8px 0; }
.contract-paper td { padding: 5px 9px; border: 1px solid #d7dcd8; vertical-align: top; }

.sig-row { display: flex; gap: 40px; margin-top: 45px; flex-wrap: wrap; }
.sig-block { flex: 1; min-width: 220px; }
.sig-line { border-top: 1.5px solid #333; padding-top: 6px; font-size: 0.82rem; margin-top: 55px; }
.sig-block img.sig-img { height: 70px; margin-bottom: -60px; object-fit: contain; object-position: left bottom; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: linear-gradient(135deg, #2fe374, #1fb958);
  color: #fff;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
  text-decoration: none;
  z-index: 200;
  transition: transform 0.15s;
}

.wa-float:hover { transform: scale(1.09); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }

/* ---------- Alerts ---------- */
.alert {
  border-radius: 13px;
  padding: 15px 19px;
  margin: 16px 0;
  font-size: 0.92rem;
}

.alert-info { background: #e8f1fb; border: 1px solid #c3d9ef; color: #1f4e79; }
.alert-warn { background: #fdf6e9; border: 1px solid #efdcae; color: #6b4d0e; }
.alert-success { background: #ddf5e7; border: 1px solid #b5e3c8; color: #1e6b3f; }

/* ---------- Footer ---------- */
footer {
  background:
    radial-gradient(600px 250px at 85% 0%, rgba(60, 190, 130, 0.12), transparent 60%),
    var(--primary-deep);
  color: #c6dccf;
  padding: 46px 0 34px;
  margin-top: 70px;
  font-size: 0.9rem;
}

footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

footer h4 { color: #fff; margin-bottom: 10px; font-size: 1rem; }
footer a { color: #c6dccf; text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }
footer ul { list-style: none; }
footer li { margin-bottom: 6px; }

/* ---------- Home highlights ---------- */
.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  margin-top: -50px;
  position: relative;
  z-index: 5;
}

.highlight-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  text-align: center;
  transition: transform 0.2s ease;
}

.highlight-card:hover { transform: translateY(-4px); }

.highlight-card .icon { font-size: 2.1rem; margin-bottom: 8px; }
.highlight-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.highlight-card p { font-size: 0.85rem; color: var(--text-muted); }

/* ---------- Print (contract PDF) ---------- */
@media print {
  header, footer, .wa-float, .no-print, .page-head { display: none !important; }
  body { background: #fff; }
  .contract-paper { border: none; box-shadow: none; padding: 0; max-width: 100%; border-radius: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  nav { display: none; width: 100%; }
  nav.open { display: block; }
  nav ul { flex-direction: column; align-items: stretch; padding: 10px 0; gap: 3px; }
  nav a { display: block; }
  .lang-switch { margin: 8px auto 4px; align-self: center; }
  .nav { flex-wrap: wrap; }
  .form-grid { grid-template-columns: 1fr; }
  .contract-paper { padding: 30px 24px; }
  .hero { padding: 60px 20px 80px; }
}
