:root{
  --bg: #f6f8f6;
  --card: #ffffff;

  --text: #1f2320;
  --muted: #4b544d;

  --green: #2F8F6B;
  --green-dark: #1E5F4A;

  --border: rgba(0,0,0,.08);
  --shadow-soft: 0 12px 30px rgba(0,0,0,.06);
}

*{ box-sizing: border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

.container{
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

/* =========================
   HEADER
   ========================= */
.site-header{
  padding: 36px 0 18px;
  text-align: center;
}

.logo-pill{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 10px 28px rgba(0,0,0,.06);
  text-decoration: none;
  color: inherit;
}

.brand-mark{
  color: var(--green);
  display: inline-flex;
}

/* Studio sicher unter Idea2Code */
.brand-text{
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  text-align: left;
}
.brand-top{
  font-weight: 800;
  letter-spacing: .2px;
  color: #1f2a35;
}
.brand-bottom{
  font-weight: 800;
  color: var(--green);
}

.main-nav{
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.main-nav a{
  text-decoration: none;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 10px;
  transition: background .15s ease, color .15s ease;
}

.main-nav a:hover{
  color: var(--text);
  background: rgba(47,143,107,.10);
}

.main-nav a[aria-current="page"]{
  color: var(--green-dark);
  background: rgba(47,143,107,.16);
}

/* =========================
   HEADLINE
   ========================= */
.page-head{
  text-align: center;
  margin: 36px 0 24px;
}

.page-head h1{
  margin: 0 0 10px;
  font-size: clamp(30px, 3.2vw, 46px);
  letter-spacing: -0.3px;
}

.lead{
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 16px;
}
.sub{
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

/* =========================
   GRID (4 Karten)
   ========================= */
.pricing-grid{
  margin: 28px 0 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: stretch;
}

/* Karte als flex -> damit Buttons unten gleich ausgerichtet sind */
.card{
  position: relative;
  background: var(--card);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow-soft);

  display: flex;              /* wichtig */
  flex-direction: column;     /* wichtig */
  min-height: 520px;          /* sorgt für gleiche Höhe (Buttons in einer Reihe) */

  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card:hover{
  transform: translateY(-6px);
  box-shadow: 0 22px 55px rgba(0,0,0,.10);
  border-color: rgba(47,143,107,.25);
}

/* Top Bereich */
.card-top{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.card h3{
  margin: 4px 0 10px;
  font-size: 15px;
  letter-spacing: .5px;
}

.price{
  font-size: 30px;
  font-weight: 900;
  margin: 0;
}

.price.small{
  font-size: 14px;
  font-weight: 800;
  color: var(--muted);
}

/* Text */
.card-note{
  margin: 6px 0 14px;
  color: var(--muted);
}

/* Liste */
.list{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.list li{ margin: 6px 0; }

/* =========================
   Badge (Empfohlen) - jetzt sauber
   ========================= */
.card-featured{
  border: 1.5px solid rgba(47,143,107,.55);
  box-shadow: 0 22px 60px rgba(47,143,107,.12);
}

/* Badge sitzt im Flow, kein Verrutschen */
.badge{
  align-self: flex-start;
  margin-bottom: 10px;

  background: rgba(47,143,107,.12);
  color: var(--green-dark);
  border: 1px solid rgba(47,143,107,.25);

  font-weight: 800;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
}

/* =========================
   Add-ons: kein Plus, sauber rechts
   ========================= */
.addon-list{
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.addon{
  display:flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;

  padding: 10px 12px;
  border-radius: 14px;

  background: rgba(47,143,107,.07);
  border: 1px solid rgba(47,143,107,.12);
  color: var(--muted);
}

.addon-title{
  max-width: 70%;
}

.addon-price{
  color: var(--text);
  white-space: nowrap;
}

/* =========================
   Buttons (immer unten -> in einer Reihe)
   ========================= */

/* Dieser Bereich schiebt sich automatisch nach unten */
.card-actions{
  margin-top: auto; /* wichtig: drückt Button nach unten */
  padding-top: 16px;
}

.btn{
  display: inline-flex;
  width: 100%;
  justify-content: center;
  align-items: center;

  padding: 12px 14px;
  border-radius: 14px;

  background: var(--green);
  color: white;
  text-decoration: none;
  font-weight: 800;

  box-shadow: 0 14px 30px rgba(47,143,107,.18);

  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.btn:hover{
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(47,143,107,.22);
}

.btn-ghost{
  background: transparent;
  color: var(--green-dark);
  border: 1px solid rgba(47,143,107,.35);
  box-shadow: none;
}

.btn-ghost:hover{
  background: rgba(47,143,107,.10);
}

/* =========================
   Below CTA
   ========================= */
.below-cta{
  margin: 26px 0 70px;
  display:flex;
  justify-content: center;
}

.below-cta-inner{
  width: min(720px, 100%);
  text-align: center;

  background: rgba(255,255,255,.55);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 22px;
  padding: 22px;

  box-shadow: 0 16px 40px rgba(0,0,0,.06);
}

.below-title{
  margin: 0 0 8px;
  font-weight: 900;
  font-size: 18px;
}

.below-text{
  margin: 0 0 14px;
  color: var(--muted);
}

/* CTA Button etwas kleiner */
.below-cta .btn{
  width: auto;
  padding: 12px 18px;
}

/* =========================
   Footer
   ========================= */
.site-footer{
  padding: 22px 0 28px;
  text-align: center;
  color: #666;
  border-top: 1px solid rgba(0,0,0,.07);
}

.footer-line{
  margin: 0 0 10px;
  font-size: 14px;
}

.footer-links{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-links a{
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 8px;
  border-radius: 10px;
  transition: background .15s ease, color .15s ease;
}

.footer-links a:hover{
  color: var(--text);
  background: rgba(47,143,107,.10);
}

.dot{ color: rgba(0,0,0,.35); }

/* =========================
   Responsive
   ========================= */
@media (max-width: 1050px){
  .pricing-grid{ grid-template-columns: repeat(2, 1fr); }
  .card{ min-height: auto; } /* auf kleineren Screens darf Höhe flexibel sein */
}

@media (max-width: 620px){
  .pricing-grid{ grid-template-columns: 1fr; }
  .card{ min-height: auto; }
}