/* Pfandrechner - Jonas Kühn Getränkehandel */
/* Design tokens match the main site (kuehn-getraenke.de) for a consistent brand feel. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Colors */
  --bg-primary: #080c16;
  --bg-secondary: #0f172a;
  --bg-tertiary: #1e293b;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-primary: #00f2fe;
  --accent-secondary: #4facfe;
  --accent-orange: #ff9f43;
  --accent-success: #10b981;
  --accent-error: #f43f5e;

  --gradient-primary: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-primary) 100%);
  --gradient-glow: linear-gradient(135deg, rgba(79, 172, 254, 0.15) 0%, rgba(0, 242, 254, 0.15) 100%);

  --glass-bg: rgba(15, 23, 42, 0.65);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(0, 242, 254, 0.25);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --glass-blur: blur(16px);

  --container-max-width: 1200px;
  --header-height: 80px;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  background-image: radial-gradient(circle at 10% 20%, rgba(0, 242, 254, 0.05) 0%, transparent 40%),
                    radial-gradient(circle at 90% 80%, rgba(79, 172, 254, 0.05) 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 40px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-secondary);
}

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* Glass card base */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(8, 12, 22, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo span {
  display: none;
}

@media (min-width: 540px) {
  .logo span {
    display: inline;
  }
}

.logo-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--bg-primary);
  font-size: 1.1rem;
  font-weight: bold;
  -webkit-text-fill-color: var(--bg-primary);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--text-primary);
}

@media (max-width: 480px) {
  .nav-links li:last-child {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  border: none;
  min-height: 46px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--bg-primary);
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 242, 254, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-secondary);
  transform: translateY(-2px);
}

/* Hero */
.pfand-hero {
  padding-top: 3rem;
  padding-bottom: 1rem;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.pfand-title {
  font-size: clamp(2rem, 5vw, 2.75rem);
}

.pfand-title span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text {
  max-width: 620px;
  margin-top: 1rem;
}

/* Sticky summary bar */
.pfand-summary-wrap {
  position: sticky;
  top: var(--header-height);
  z-index: 900;
  padding: 1rem 0;
  background: linear-gradient(180deg, var(--bg-primary) 60%, transparent);
}

.pfand-summary {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--gradient-glow);
  border-color: rgba(0, 242, 254, 0.2);
}

@media (min-width: 640px) {
  .pfand-summary {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.pfand-summary-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.pfand-summary-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.pfand-summary-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pfand-summary-value {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.pfand-summary-total {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.75rem;
}

.pfand-summary-divider {
  width: 1px;
  height: 36px;
  background: var(--glass-border);
}

.pfand-summary-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Sections & cards */
.pfand-section-intro {
  margin-bottom: 1.5rem;
  max-width: 620px;
}

.pfand-card {
  padding: 1rem;
}

@media (min-width: 640px) {
  .pfand-card {
    padding: 0.5rem;
  }
}

.pfand-list {
  display: flex;
  flex-direction: column;
}

/* Individual deposit item row */
.pfand-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1rem;
  border-bottom: 1px solid var(--glass-border);
  flex-wrap: wrap;
}

.pfand-item:last-child {
  border-bottom: none;
}

.pfand-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 180px;
  flex: 1 1 220px;
}

.pfand-item-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
}

.pfand-item-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pfand-item-price {
  font-size: 0.85rem;
  color: var(--accent-primary);
  font-weight: 500;
}

/* Quantity stepper */
.qty-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.qty-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
  font-family: var(--font-heading);
  line-height: 1;
}

.qty-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-primary);
}

.qty-input {
  width: 48px;
  height: 40px;
  text-align: center;
  background: transparent;
  border: none;
  border-left: 1px solid var(--glass-border);
  border-right: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  outline: none;
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-input:focus {
  color: var(--accent-primary);
}

/* Line subtotal shown when quantity > 0 */
.pfand-item-subtotal {
  min-width: 70px;
  text-align: right;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.pfand-item.has-qty .pfand-item-subtotal {
  color: var(--accent-primary);
}

.pfand-item.has-qty {
  background: rgba(0, 242, 254, 0.03);
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  padding-top: 3rem;
  padding-bottom: 2rem;
  margin-top: 2rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.copyright {
  text-align: center;
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  left: 1.5rem;
  margin: 0 auto;
  max-width: 360px;
  background: var(--bg-secondary);
  border: 1px solid var(--accent-success);
  color: var(--text-primary);
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius-sm);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateY(150%);
  transition: transform var(--transition-normal);
  z-index: 1100;
}

.toast.show {
  transform: translateY(0);
}

.toast-icon {
  color: var(--accent-success);
  font-size: 1.1rem;
}
