/* Description: Responsive style definitions for KI Innenarchitekt frontend. */
/* Author: Trading OMA AI Assistant */
/* Version: 1.0.0 */

:root {
  --bg: #101316;
  --surface: #171b20;
  --surface-light: #232a31;
  --text: #f2f4f7;
  --muted: #9aa6b2;
  --accent: #1f6b53;
  --accent-hover: #298266;
  --danger: #bf4d4d;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #0d1013, #131820 45%, #151c24);
  color: var(--text);
}

.container {
  width: min(1080px, 94vw);
  margin: 32px auto 56px;
}

.hero {
  text-align: center;
  margin-bottom: 28px;
}

.logo-box {
  width: 142px;
  margin: 0 auto 12px;
  border-radius: 16px;
  border: 1px dashed #4d5966;
  background: #11161a;
  padding: 10px;
}

.logo-box img {
  display: block;
  margin: 0 auto 8px;
  width: 56px;
  height: 56px;
}

.logo-box span {
  font-size: 12px;
  color: var(--muted);
}

h1,
h2 {
  margin: 0;
}

.subtitle {
  margin: 10px auto 0;
  color: var(--muted);
  max-width: 720px;
}

.panel {
  background: rgba(18, 23, 29, 0.92);
  border: 1px solid #2a323b;
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
}

.upload-zone {
  border: 2px dashed #3a4753;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.upload-zone:hover,
.upload-zone.active {
  border-color: var(--accent);
  background: rgba(30, 107, 83, 0.09);
}

.upload-zone small {
  color: var(--muted);
}

.upload-preview {
  margin-top: 14px;
}

.upload-preview img {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #303945;
}

.style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 12px;
}

.style-card {
  border: 1px solid #33404c;
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
  padding: 12px;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.style-card:hover {
  transform: translateY(-1px);
  border-color: #4e606f;
}

.style-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(31, 107, 83, 0.4), 0 8px 20px rgba(0, 0, 0, 0.2);
}

.style-icon {
  width: 100%;
  height: 74px;
  border-radius: 9px;
  margin-bottom: 8px;
  border: 1px solid #3a4450;
}

.style-card h3 {
  margin: 0 0 5px;
  font-size: 16px;
}

.style-card p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.primary-btn {
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #effaf4;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.primary-btn:hover {
  background: var(--accent-hover);
}

.primary-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.status-text {
  margin-top: 10px;
  color: var(--muted);
}

.status-text.error {
  color: var(--danger);
}

.status-text.success {
  color: #55bc93;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.result-card {
  background: var(--surface-light);
  border: 1px solid #394553;
  border-radius: 12px;
  overflow: hidden;
}

.result-card img {
  width: 100%;
  height: 184px;
  object-fit: cover;
  display: block;
}

.result-card .card-body {
  padding: 10px;
}

.select-btn {
  width: 100%;
  border: 1px solid #4a5968;
  color: #f7fafc;
  background: #202833;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
}

.lead-form {
  display: grid;
  gap: 10px;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  border: 1px solid #3a4652;
  border-radius: 9px;
  background: #12171d;
  color: var(--text);
  padding: 11px 12px;
  font-size: 15px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.hidden {
  display: none;
}

@media (max-width: 680px) {
  .container {
    width: min(620px, 94vw);
    margin-top: 18px;
  }
  .panel {
    padding: 14px;
  }
  .result-card img {
    height: 168px;
  }
}
