/* ===================================
   Online-Taschenrechner - Professional Styles
   internetgemein.de
   =================================== */

:root {
    /* Color Palette - Professional Blues & Grays */
    --primary-color: #DD0000;
    --primary-dark: #FFCC00;
    --primary-light: #dd6b00;
    --secondary-color: #1f2022;
    --accent-color: #FFCC00;
    
    /* Neutral Colors */
    --text-primary: #000000;
    --text-secondary: #000000;
    --text-light: #101011;
    
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-dark: #0f172a;
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
  --border-color: #e5e7eb;
  --success-color: #10b981;
  --error-color: #ef4444;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
  overflow-x: hidden;
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */

header {
  background: var(--bg-white);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  animation: slideDown 0.5s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: var(--transition);
}

.logo img {
  height: 50px;
  width: auto;
}

.logo:hover {
  transform: scale(1.05);
}

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

.nav-link {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--bg-white);
  padding: 4rem 2rem;
  text-align: center;
  animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.95;
}

/* ===================================
   MAIN CONTENT
   =================================== */

main {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 2rem;
  animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-title {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

/* ===================================
   CALCULATOR GRID
   =================================== */

.calculator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.calculator-card {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  animation: scaleIn 0.5s ease;
  animation-fill-mode: both;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.calculator-card:nth-child(1) { animation-delay: 0.1s; }
.calculator-card:nth-child(2) { animation-delay: 0.2s; }
.calculator-card:nth-child(3) { animation-delay: 0.3s; }
.calculator-card:nth-child(4) { animation-delay: 0.4s; }
.calculator-card:nth-child(5) { animation-delay: 0.5s; }
.calculator-card:nth-child(6) { animation-delay: 0.6s; }
.calculator-card:nth-child(7) { animation-delay: 0.7s; }
.calculator-card:nth-child(8) { animation-delay: 0.8s; }
.calculator-card:nth-child(9) { animation-delay: 0.9s; }
.calculator-card:nth-child(10) { animation-delay: 1s; }
.calculator-card:nth-child(11) { animation-delay: 1.1s; }
.calculator-card:nth-child(12) { animation-delay: 1.2s; }
.calculator-card:nth-child(13) { animation-delay: 1.3s; }
.calculator-card:nth-child(14) { animation-delay: 1.4s; }
.calculator-card:nth-child(15) { animation-delay: 1.5s; }

.calculator-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

.calculator-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.calculator-card h3 {
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.calculator-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--primary-color);
  color: var(--bg-white);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  text-align: center;
}

.btn:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.btn:active {
  transform: scale(0.98);
}

/* ===================================
   CALCULATOR PAGE STYLES
   =================================== */

.calculator-container {
  max-width: 900px;
  margin: 2rem auto;
  background: var(--bg-white);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.6s ease;
}

.calculator-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-color);
}

.calculator-header h1 {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.calculator-description {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  border-left: 4px solid var(--primary-color);
}

.calculator-description h2 {
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.calculator-description p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.calculator-description ul {
  margin-left: 1.5rem;
  color: var(--text-light);
}

.calculator-description li {
  margin-bottom: 0.5rem;
}

/* Form Styles */

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
  background: var(--bg-white);
  color: var(--text-dark);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-group input::placeholder {
  color: var(--text-light);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.btn-calculate {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  margin-top: 1rem;
  background: var(--primary-color);
  color: var(--bg-white);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

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

.btn-reset {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  margin-top: 0.5rem;
  background: var(--text-light);
  color: var(--bg-white);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-reset:hover {
  background: var(--text-dark);
}

/* Results Styles */

.results-container {
  margin-top: 2rem;
  padding: 2rem;
  background: var(--bg-light);
  border-radius: 8px;
  border: 2px solid var(--primary-color);
  display: none;
  animation: fadeInUp 0.5s ease;
}

.results-container.show {
  display: block;
}

.results-container h2 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  text-align: center;
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--bg-white);
  margin-bottom: 0.75rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.result-label {
  font-weight: 600;
  color: var(--text-dark);
}

.result-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.result-highlight {
  background: var(--primary-color);
  color: var(--bg-white);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  margin-top: 1rem;
}

.result-highlight .result-label {
  color: var(--bg-white);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.result-highlight .result-value {
  color: var(--bg-white);
  font-size: 2rem;
  font-weight: 700;
}

/* Debt Items */

.debt-items {
  margin-bottom: 1.5rem;
}

.debt-item {
  background: var(--bg-light);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
}

.debt-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.debt-item-header h4 {
  color: var(--text-dark);
}

.btn-remove {
  background: var(--error-color);
  color: var(--bg-white);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition);
}

.btn-remove:hover {
  background: #dc2626;
}

.btn-add {
  background: var(--success-color);
  color: var(--bg-white);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  width: 100%;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.btn-add:hover {
  background: #059669;
}

/* ===================================
   FOOTER
   =================================== */

footer {
  background: var(--text-dark);
  color: var(--bg-white);
  padding: 3rem 2rem 1rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--bg-white);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-section p {
  color: #9ca3af;
  line-height: 1.8;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--bg-white);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #374151;
  color: #9ca3af;
}

/* ===================================
   CONTENT PAGES
   =================================== */

.content-page {
  max-width: 900px;
  margin: 2rem auto;
  background: var(--bg-white);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.6s ease;
}

.content-page h1 {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
}

.content-page h2 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.content-page h3 {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.content-page p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.content-page ul, .content-page ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.content-page li {
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

.content-page a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.content-page a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Contact Form */

.contact-form {
  max-width: 600px;
  margin: 2rem auto;
}

.contact-form .form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  min-height: 150px;
  transition: var(--transition);
}

.contact-form .form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
  .header-container {
    padding: 1rem;
  }

  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 1rem;
    padding: 1rem 0;
  }

  nav ul.show {
    display: flex;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .calculator-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .calculator-container,
  .content-page {
    padding: 1.5rem;
  }

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

  main {
    padding: 0 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 2rem 1rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .calculator-card {
    padding: 1.5rem;
  }
}

/* ===================================
   UTILITY CLASSES
   =================================== */

.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden {
  display: none;
}

.error {
  color: var(--error-color);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.success {
  color: var(--success-color);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* Cookie Banner */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--text-dark);
  color: var(--bg-white);
  padding: 1.5rem;
  box-shadow: var(--shadow-xl);
  z-index: 1001;
  animation: slideUp 0.5s ease;
  display: none;
}

.cookie-banner.show {
  display: block;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  min-width: 300px;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

.btn-accept, .btn-decline {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-accept {
  background: var(--success-color);
  color: var(--bg-white);
}

.btn-accept:hover {
  background: #059669;
}

.btn-decline {
  background: var(--text-light);
  color: var(--bg-white);
}

.btn-decline:hover {
  background: #4b5563;
}

/* Print Styles */

@media print {
  header, footer, .mobile-menu-toggle, .btn {
    display: none;
  }

  body {
    background: white;
  }

  .calculator-container, .content-page {
    box-shadow: none;
    border: 1px solid #000;
  }
}
