/* ============================================
   apoBank Clone — Shared Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@300;400;500;600;700&family=Source+Sans+Pro:wght@400;600;700&display=swap');

:root {
  /* Brand colors (extracted from real apobank.de) */
  --apo-dark-blue: #012169;
  --apo-primary: #1e325f;
  --apo-h1-blue: #004893;
  --apo-blue: #003d8f;
  --apo-navy: #0A1F3F;
  --apo-grey-bg: #f0f3f5;
  --apo-grey-border: #ced4da;
  --apo-grey-text: #555555;
  --apo-link: #555555;
  --apo-white: #ffffff;

  /* Fonts */
  --font-base: 'Source Sans Pro', 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: Arial, sans-serif;

  /* Layout */
  --container-width: 941px;
  --card-width: 911px;
  --radius: 4px;
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.08);
}

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

body {
  font-family: var(--font-base);
  font-size: 16px;
  font-weight: 400;
  color: var(--apo-primary);
  background: var(--apo-white);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

h1, h2, h3, h4, h5, h6 { margin: 0; }
p { margin: 0 0 12px; }

/* ============================================
   Card Pattern (login/standard content page)
   ============================================ */
.apo-iam-container {
  padding: 48px 0;
  flex: 1 0 auto;
}

.iam-content-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 15px;
  width: 100%;
}

.iam-card {
  background: transparent;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  max-width: var(--card-width);
  margin: 0 auto;
  overflow: hidden;
}

.iam-card-header {
  background: var(--apo-white);
  padding: 8px 60px;
}

.iam-card-header h1 {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 500;
  color: var(--apo-h1-blue);
  margin: 0 0 8px;
  line-height: 1.2;
}

.iam-card-body {
  background: var(--apo-grey-bg);
  padding: 25px 60px;
  color: var(--apo-primary);
  font-size: 16px;
  line-height: 1.5;
}

.iam-card-body h2 {
  font-family: var(--font-base);
  font-size: 25.5px;
  font-weight: 700;
  color: var(--apo-primary);
  margin: 24px 0 12px;
  line-height: 1.4;
}

.iam-card-body h3 {
  font-family: var(--font-base);
  font-size: 21px;
  font-weight: 700;
  color: var(--apo-primary);
  margin: 20px 0 10px;
  line-height: 1.4;
}

.iam-card-body strong { font-weight: 700; }

/* ============================================
   Hero / Page Banner (content pages)
   ============================================ */
.apo-page-hero {
  background: var(--apo-primary);
  color: var(--apo-white);
  padding: 60px 60px;
  border-radius: var(--radius);
  margin-bottom: 32px;
}

.apo-page-hero h1 {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 500;
  color: var(--apo-white);
  margin: 0 0 16px;
}

.apo-page-hero p {
  font-size: 18px;
  font-weight: 400;
  opacity: 0.9;
}

/* ============================================
   Teaser / Card Grid (overview pages)
   ============================================ */
.apo-teaser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 24px 0;
}

.apo-teaser {
  background: var(--apo-white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
}

.apo-teaser:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.apo-teaser h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--apo-h1-blue);
  margin: 0 0 8px;
}

.apo-teaser p {
  font-size: 14px;
  color: var(--apo-primary);
  margin: 0 0 12px;
}

.apo-teaser a {
  font-size: 14px;
  font-weight: 700;
  color: var(--apo-h1-blue);
  text-decoration: none;
}

.apo-teaser a:hover { text-decoration: underline; }

/* ============================================
   CTA Button
   ============================================ */
.apo-btn {
  display: inline-block;
  padding: 10px 24px;
  background: var(--apo-dark-blue);
  color: var(--apo-white);
  border: 1px solid var(--apo-dark-blue);
  border-radius: var(--radius);
  font-family: var(--font-base);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.apo-btn:hover {
  background: var(--apo-navy);
  color: var(--apo-white);
}

.apo-btn-outline {
  background: transparent;
  color: var(--apo-dark-blue);
}

.apo-btn-outline:hover {
  background: var(--apo-dark-blue);
  color: var(--apo-white);
}

/* ============================================
   Footer (all pages)
   ============================================ */
.iam-footer {
  padding: 40px 0 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--apo-white);
  margin-top: auto;
}

.iam-footer img {
  width: 160px;
  height: 60px;
}

/* ============================================
   Mini header (top utility bar for content pages)
   ============================================ */
.apo-top-bar {
  background: var(--apo-white);
  padding: 16px 24px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
}

.apo-top-bar__logo img {
  height: 40px;
  width: auto;
}

.apo-top-bar__links {
  display: flex;
  gap: 24px;
}

.apo-top-bar__links a {
  color: var(--apo-dark-blue);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.apo-top-bar__links a:hover { text-decoration: underline; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .iam-card-header,
  .iam-card-body {
    padding-left: 25px;
    padding-right: 25px;
  }
  .iam-card-header h1 { font-size: 32px; }
  .apo-page-hero { padding: 32px 24px; }
  .apo-page-hero h1 { font-size: 28px; }
  .apo-teaser-grid { grid-template-columns: 1fr; }
}
