/* ===================================================
   raummich.de – Hauptstylesheet
   Farbpalette: Warm & familiär, Erdtöne
   =================================================== */

:root {
  --primary:    #8B5E3C;
  --primary-d:  #6b4a2e;
  --secondary:  #C4956A;
  --accent:     #D4A96A;
  --light:      #F5EDE0;
  --mid:        #E8D5BC;
  --dark:       #4A3728;
  --gray:       #7a6a60;
  --white:      #FFFFFF;
  --danger:     #c0392b;
  --success:    #27ae60;
  --warn:       #e67e22;
  --radius:     10px;
  --shadow:     0 2px 12px rgba(74,55,40,.10);
  --trans:      0.18s ease;
}

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

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--light);
  color: var(--dark);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ── Layout ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
main { flex: 1; padding: 2rem 0 3rem; }

/* ── Header ── */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--accent);
  box-shadow: var(--shadow);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  padding-top: .8rem; padding-bottom: .8rem;
}
.logo {
  font-size: 1.6rem; font-weight: 800;
  color: var(--primary); text-decoration: none;
}
.logo span { color: var(--secondary); }
.main-nav { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.main-nav a { color: var(--dark); font-weight: 500; }
.main-nav a:hover { color: var(--primary); text-decoration: none; }

/* ── Footer ── */
.site-footer {
  background: var(--dark);
  color: var(--mid);
  padding: 1.2rem 0;
  font-size: .9rem;
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; }
.site-footer nav { display: flex; gap: 1.2rem; }
.site-footer a { color: var(--mid); }
.site-footer a:hover { color: var(--accent); text-decoration: none; }

/* ── Buttons ── */
.btn {
  display: inline-block; padding: .55rem 1.3rem;
  border-radius: var(--radius); font-weight: 600;
  font-size: .95rem; cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--trans), color var(--trans), border-color var(--trans);
  text-decoration: none; line-height: 1.4;
}
.btn-primary  { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-d); border-color: var(--primary-d); text-decoration: none; color: var(--white); }
.btn-outline  { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--light); text-decoration: none; }
.btn-danger   { background: var(--danger); color: var(--white); border-color: var(--danger); }
.btn-danger:hover { background: #a93226; text-decoration: none; color: var(--white); }
.btn-sm  { padding: .3rem .8rem; font-size: .85rem; }
.btn-lg  { padding: .75rem 1.8rem; font-size: 1.05rem; }
.btn-full { width: 100%; text-align: center; }

/* ── Alerts ── */
.alert {
  padding: .75rem 1.2rem; border-radius: var(--radius);
  margin: 1rem 0; font-weight: 500; font-size: .95rem;
}
.alert-success { background: #d4edda; color: #155724; border-left: 4px solid var(--success); }
.alert-danger  { background: #f8d7da; color: #721c24; border-left: 4px solid var(--danger); }
.alert-warning { background: #fff3cd; color: #856404; border-left: 4px solid var(--warn); }
.alert-info    { background: #d1ecf1; color: #0c5460; border-left: 4px solid #17a2b8; }

/* ── Forms ── */
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: .4rem; color: var(--dark); }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group textarea,
.form-group select {
  width: 100%; padding: .6rem .9rem;
  border: 2px solid var(--mid); border-radius: var(--radius);
  font-size: 1rem; background: var(--white); color: var(--dark);
  transition: border-color var(--trans);
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-group small { color: var(--gray); font-size: .85rem; margin-top: .25rem; display: block; }
.radio-group { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.radio-group label { font-weight: 400; cursor: pointer; display: flex; align-items: center; gap: .4rem; }
.checkbox-label { display: flex; align-items: flex-start; gap: .5rem; font-weight: 400; cursor: pointer; }
.form-inline { display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }

/* ── Badges ── */
.badge {
  display: inline-block; padding: .2rem .6rem;
  border-radius: 20px; font-size: .78rem; font-weight: 700; text-transform: uppercase;
}
.badge-aktiv, .badge-free { background: #d4edda; color: #155724; }
.badge-storniert { background: #f8d7da; color: #721c24; }
.badge-taken  { background: #ffeeba; color: #856404; }
.badge-bezahlt { background: #d4edda; color: #155724; }
.badge-offen  { background: #fff3cd; color: #856404; }

/* ── Tables ── */
.data-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.data-table th {
  background: var(--primary); color: var(--white);
  padding: .6rem 1rem; text-align: left; font-size: .9rem;
}
.data-table td { padding: .55rem 1rem; border-bottom: 1px solid var(--mid); vertical-align: middle; }
.data-table tr:nth-child(even) td { background: var(--light); }
.data-table tr:hover td { background: var(--mid); }
.row-cancelled td { opacity: .55; }

/* ── Info table ── */
.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td { padding: .6rem 1rem; border-bottom: 1px solid var(--mid); }
.info-table th { width: 160px; color: var(--gray); font-weight: 600; }

/* ── Cards & sections ── */
.section-box {
  background: var(--white); border-radius: var(--radius);
  padding: 1.5rem; margin: 1.5rem 0;
  box-shadow: var(--shadow); border-top: 3px solid var(--accent);
  overflow-x: auto;
}

.detail-card { background: var(--white); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }

/* ── Muted / back-link ── */
.muted { color: var(--gray); font-size: .9rem; }
.back-link { display: inline-block; margin-bottom: 1rem; color: var(--primary); font-weight: 600; }
.back-link:hover { text-decoration: none; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--gray); }

/* ── Landing: Hero ── */
.hero { background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); padding: 4rem 0; }
.hero-inner { display: flex; align-items: center; gap: 3rem; flex-wrap: wrap; }
.hero-text { flex: 1; min-width: 280px; }
.hero-text h1 { font-size: 2.8rem; color: var(--white); line-height: 1.2; margin-bottom: 1rem; }
.hero-sub { font-size: 1.15rem; color: #f5ede0cc; margin-bottom: 1.8rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-visual { flex: 0 0 300px; }
.hero-card {
  background: var(--white); border-radius: 16px;
  padding: 1.5rem; box-shadow: 0 8px 30px rgba(74,55,40,.25);
}
.cal-mock .cal-row { display: flex; gap: .5rem; justify-content: center; margin-bottom: 1rem; }
.cal-mock .cal-row span {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem;
}
.cal-free   { background: #d4edda; color: #155724; }
.cal-taken  { background: #f8d7da; color: #721c24; }
.cal-legend { text-align: center; font-size: .85rem; color: var(--gray); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.dot-free  { background: var(--success); }
.dot-taken { background: var(--danger); }

/* ── Features ── */
.features { padding: 3.5rem 0; }
.section-title { text-align: center; font-size: 1.9rem; color: var(--primary); margin-bottom: 2rem; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.feature-card {
  background: var(--white); border-radius: var(--radius);
  padding: 1.5rem; text-align: center;
  box-shadow: var(--shadow); border-bottom: 3px solid var(--accent);
}
.feature-icon { font-size: 2.2rem; margin-bottom: .8rem; }
.feature-card h3 { color: var(--primary); margin-bottom: .5rem; }

/* ── Pakete ── */
.pakete { padding: 3.5rem 0; background: var(--mid); }
.pakete-grid { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; }
.paket-card {
  background: var(--white); border-radius: var(--radius);
  padding: 2rem; min-width: 260px; max-width: 340px; flex: 1;
  box-shadow: var(--shadow); position: relative;
  display: flex; flex-direction: column; gap: 1rem;
}
.paket-highlight { border: 3px solid var(--primary); }
.paket-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: var(--white);
  font-size: .75rem; font-weight: 700; padding: .2rem .9rem;
  border-radius: 20px; white-space: nowrap;
}
.paket-head h3 { font-size: 1.4rem; color: var(--primary); }
.paket-preis { font-size: 2rem; font-weight: 800; color: var(--dark); }
.paket-preis span { font-size: 1rem; font-weight: 400; color: var(--gray); }
.paket-list { list-style: none; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.paket-list li { font-size: .95rem; }
.paket-list .muted { color: var(--gray); }

/* ── Use cases ── */
.usecases { padding: 3.5rem 0; }
.usecase-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; }
.usecase-card {
  text-align: center; padding: 1.5rem;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
}
.usecase-icon { font-size: 2.5rem; margin-bottom: .5rem; }
.usecase-card h4 { color: var(--primary); margin-bottom: .4rem; }

/* ── Auth ── */
.auth-page { max-width: 460px; margin: 0 auto; padding-top: 1.5rem; }
.auth-card {
  background: var(--white); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow);
  border-top: 4px solid var(--primary);
}
.auth-card h1 { color: var(--primary); margin-bottom: 1.5rem; }
.auth-switch { margin-top: 1rem; text-align: center; font-size: .9rem; color: var(--gray); }
.auth-legal  { margin-top: .5rem; font-size: .8rem; text-align: center; color: var(--gray); }

/* ── Room page ── */
.raum-page h1 { color: var(--primary); margin-bottom: 1rem; }
.raum-gallery { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.raum-gallery img { max-height: 220px; border-radius: var(--radius); object-fit: cover; }
.raum-text { background: var(--white); padding: 1.2rem; border-radius: var(--radius); margin-bottom: 1.5rem; box-shadow: var(--shadow); }
.slot-section h2 { color: var(--primary); margin-bottom: 1rem; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.slot-card {
  border-radius: var(--radius); padding: 1rem; text-align: center;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .5rem;
}
.slot-free  { background: var(--white); border: 2px solid var(--success); }
.slot-taken { background: #f8d7da; border: 2px solid #e09090; }
.slot-date  { font-weight: 700; font-size: .95rem; }
.slot-status { font-size: .85rem; color: var(--gray); }
.limit-box {
  background: var(--white); border-radius: var(--radius); padding: 2rem;
  text-align: center; box-shadow: var(--shadow); border-top: 4px solid var(--warn);
}

/* ── Admin dashboard ── */
.dashboard-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; flex-wrap: wrap; gap: .5rem; }
.paket-badge { padding: .3rem 1rem; border-radius: 20px; font-weight: 700; font-size: .85rem; }
.paket-free { background: var(--mid); color: var(--dark); }
.paket-pro  { background: var(--primary); color: var(--white); }
.room-grid  { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.room-card {
  background: var(--white); border-radius: var(--radius);
  padding: 1.3rem; box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
  display: flex; flex-direction: column; gap: .6rem;
}
.room-warn { border-left-color: var(--warn); }
.room-card-head { display: flex; justify-content: space-between; align-items: flex-start; }
.room-card-head h3 { color: var(--primary); }
.warn-badge { background: #fff3cd; color: #856404; padding: .15rem .5rem; border-radius: 8px; font-size: .75rem; font-weight: 700; }
.room-art { color: var(--gray); font-size: .85rem; }
.room-card-actions { display: flex; gap: .5rem; margin-top: .3rem; }
.booking-meter { display: flex; flex-direction: column; gap: .3rem; }
.meter-bar { background: var(--mid); border-radius: 10px; height: 8px; overflow: hidden; }
.meter-fill { background: var(--primary); height: 100%; border-radius: 10px; transition: width .3s; }
.booking-meter span { font-size: .8rem; color: var(--gray); }

/* ── Admin room detail ── */
.room-detail-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.room-detail-header h1 { color: var(--primary); flex: 1; }
.buchungslink-box {
  background: var(--white); border-radius: var(--radius);
  padding: 1rem 1.2rem; margin-bottom: 1.5rem; box-shadow: var(--shadow);
}
.buchungslink-box label { font-weight: 600; margin-bottom: .4rem; display: block; color: var(--dark); }
.link-copy { display: flex; gap: .5rem; }
.link-copy input { flex: 1; font-size: .9rem; background: var(--light); }
.slot-add-form { margin-bottom: 1rem; }
.notiz-form { display: flex; gap: .3rem; }
.notiz-form input[type="text"] { max-width: 180px; padding: .25rem .5rem; border: 1px solid var(--mid); border-radius: var(--radius); font-size: .85rem; }

/* ── Legal pages ── */
.legal-page { max-width: 780px; }
.legal-page h1 { color: var(--primary); margin-bottom: 1.5rem; }
.legal-page h2 { color: var(--dark); margin: 1.5rem 0 .5rem; font-size: 1.1rem; }
.legal-page p  { margin-bottom: .8rem; }

/* ── Booking list (user) ── */
.booking-list { display: flex; flex-direction: column; gap: 1rem; }
.booking-card {
  background: var(--white); border-radius: var(--radius);
  padding: 1.2rem; box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: space-between;
  border-left: 4px solid var(--accent);
  flex-wrap: wrap; gap: .5rem;
}
.booking-card.status-storniert { opacity: .65; border-left-color: var(--danger); }
.booking-info h3 { color: var(--primary); margin-bottom: .2rem; }
.booking-date { color: var(--gray); font-size: .9rem; }

/* ── Slot radio ── */
.slot-radio { display: flex; align-items: center; gap: .5rem; padding: .4rem 0; cursor: pointer; }

/* ── Bild row ── */
.bild-row { display: flex; align-items: center; gap: .8rem; margin-bottom: .5rem; flex-wrap: wrap; }
.bild-preview { width: 80px; height: 60px; object-fit: cover; border-radius: var(--radius); }

/* ── Responsive ── */
@media (max-width: 640px) {
  .hero-text h1 { font-size: 2rem; }
  .hero-visual { display: none; }
  .data-table { font-size: .82rem; }
  .data-table th, .data-table td { padding: .4rem .5rem; }
  .paket-card { max-width: 100%; }
}

/* ── Partnerseiten ── */
.partner-sites {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--border, #e0d8cf);
  margin-top: 1rem;
}
.partner-label {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted, #888);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}
.partner-grid {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem 0.6rem;
  border: 1px solid var(--border, #e0d8cf);
  border-radius: var(--radius, 10px);
  text-decoration: none;
  color: inherit;
  background: var(--white, #fff);
  transition: box-shadow 0.2s, transform 0.2s;
  min-width: 90px;
}
.partner-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.partner-icon { font-size: 1.5rem; }
.partner-name { font-weight: 600; font-size: 0.95rem; }
.partner-desc { font-size: 0.78rem; color: var(--muted, #888); text-align: center; }

@media (max-width: 600px) {
  .partner-grid {
    flex-direction: row;
    justify-content: center;
  }
  .partner-card {
    min-width: 80px;
    padding: 0.6rem 0.5rem;
    flex: 1;
  }
  .partner-name {
    font-size: 0.8rem;
  }
  .partner-desc {
    display: none;
  }
}

