/* ---------------------------------------------
   Variablen (aus deiner Toolbox übernommen)
--------------------------------------------- */
:root {
  --clr1: #09203F;
  --clr2: #537895;
  --clr3: #09203F;
  --clr4: #537895;
  --btn-bg: rgba(255, 255, 255, 0.85);
  --btn-shadow: rgba(0, 0, 0, 0.15);
  --input-bg: rgba(255, 255, 255, 0.7);
  --input-shadow: rgba(0, 0, 0, 0.05);
  --radius: 6px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --btn-gap: 0.75rem;
}

/* ---------------------------------------------
   Animierter Gradient-Hintergrund
--------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font);
  min-height: 100vh;
  background: linear-gradient(45deg, var(--clr1), var(--clr2), var(--clr3), var(--clr4));
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  padding: 2rem 1rem;
  overflow-x: hidden;
}

@keyframes gradientBG {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}

/* ---------------------------------------------
   Container mit Glassmorphism
--------------------------------------------- */
.container,
.header {
  background: rgba(255, 255, 255, 0.311);
  border-radius: var(--radius);
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  padding: 1.5rem;
  margin: 0 auto 1rem;
  max-width: 1400px;
}

.header {
  text-align: center;
  color: #fff;
  margin-bottom: 2rem;
}

.header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.header p {
  font-size: 1.1rem;
  opacity: 0.95;
}

/* ---------------------------------------------
   Tab Navigation
--------------------------------------------- */
.tab-nav {
  display: flex;
  gap: var(--btn-gap);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.tab-btn {
  background: var(--btn-bg);
  border: none;
  border-radius: var(--radius);
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
  min-width: 150px;
}

.tab-btn:hover {
  transform: translateY(-2px);
  background: rgb(255, 255, 255);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--clr1), var(--clr2));
  color: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ---------------------------------------------
   Tab Content
--------------------------------------------- */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

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

/* ---------------------------------------------
   Section Headers
--------------------------------------------- */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-header h3 {
  color: #fff;
  font-size: 1.5rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.subtitle {
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  flex-basis: 100%;
}

/* ---------------------------------------------
   Editor Layout
--------------------------------------------- */
.editor-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 1024px) {
  .editor-layout {
    grid-template-columns: 1fr;
  }
}

.code-section,
.preview-section {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 1.5rem;
}

/* ---------------------------------------------
   Code Editor
--------------------------------------------- */
.code-actions {
  display: flex;
  gap: var(--btn-gap);
}

#svg-code {
  width: 100%;
  min-height: 400px;
  padding: 1rem;
  border: none;
  border-radius: var(--radius);
  background: rgba(0,0,0,0.7);
  color: #0f0;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.9rem;
  resize: vertical;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.3);
}

#svg-code:focus {
  outline: 2px solid rgba(36, 119, 209, 0.5);
}

/* ---------------------------------------------
   Preview Container
--------------------------------------------- */
.preview-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.preview-controls label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-size: 0.9rem;
}

#color-picker {
  width: 50px;
  height: 35px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
}

#size-slider {
  width: 120px;
}

.preview-container {
  min-height: 300px;
  background: rgba(255,255,255,0.95);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  margin: 1rem 0;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.05);
}

#svg-preview {
  display: flex;
  align-items: center;
  justify-content: center;
}

#svg-preview svg {
  max-width: 100%;
  max-height: 100%;
}

/* ---------------------------------------------
   Preview Info
--------------------------------------------- */
.preview-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}

.info-item {
  background: rgba(255,255,255,0.2);
  padding: 0.75rem;
  border-radius: var(--radius);
  color: #fff;
  font-size: 0.9rem;
}

.info-item strong {
  display: block;
  margin-bottom: 0.25rem;
  opacity: 0.8;
}

/* ---------------------------------------------
   Export Section
--------------------------------------------- */
.export-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.export-section h4 {
  color: #fff;
  margin-bottom: 1rem;
}

.export-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.export-options label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  cursor: pointer;
}

.export-options input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* ---------------------------------------------
   Buttons
--------------------------------------------- */
.btn {
  background: var(--btn-bg);
  border: none;
  border-radius: var(--radius);
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px var(--btn-shadow);
  font-weight: 500;
}

.btn:hover {
  transform: translateY(-2px);
  background: rgb(255, 255, 255);
  box-shadow: 0 4px 12px var(--btn-shadow);
}

.btn:focus {
  outline: 2px solid rgba(36, 119, 209, 0.5);
}

.btn-ghost {
  background: rgba(255,255,255,0.65);
}

.btn-primary {
  background: linear-gradient(135deg, var(--clr1), var(--clr2));
  color: white;
  width: 100%;
  padding: 1rem;
  font-size: 1.05rem;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--clr2), var(--clr1));
}

.btn-link {
  background: rgba(255,255,255,0.9);
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

/* ---------------------------------------------
   Preset Grid
--------------------------------------------- */
#preset-search {
  width: 100%;
  max-width: 400px;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--radius);
  background: var(--input-bg);
  font-size: 1rem;
  box-shadow: inset 0 2px 6px var(--input-shadow);
}

#preset-search:focus {
  outline: 2px solid rgba(36, 119, 209, 0.5);
}

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

.preset-item {
  background: rgba(255,255,255,0.9);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.preset-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  background: white;
}

.preset-item svg {
  width: 64px;
  height: 64px;
  margin-bottom: 0.75rem;
  color: var(--clr1);
}

.preset-item .preset-name {
  font-size: 0.85rem;
  color: #333;
  font-weight: 500;
}

/* ---------------------------------------------
   Prompt Cards
--------------------------------------------- */
.prompt-list {
  display: grid;
  gap: 1.5rem;
}

.prompt-card {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.prompt-card h4 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.prompt-text {
  color: rgba(255,255,255,0.95);
  line-height: 1.6;
  margin-bottom: 1rem;
  padding: 1rem;
  background: rgba(0,0,0,0.2);
  border-radius: var(--radius);
  border-left: 3px solid rgba(255,255,255,0.5);
}

.btn-copy {
  width: 100%;
}

/* ---------------------------------------------
   Resources Grid
--------------------------------------------- */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.resource-card {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  background: rgba(255,255,255,0.25);
}

.resource-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.resource-card h4 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.resource-card p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.resource-tip {
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.95);
  border-left: 3px solid rgba(255,255,255,0.5);
}

/* ---------------------------------------------
   WordPress Integration
--------------------------------------------- */
.wp-integration {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 2rem;
}

.wp-integration h4 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.code-snippet {
  position: relative;
}

.code-snippet h5 {
  color: rgba(255,255,255,0.9);
  margin-bottom: 1rem;
}

.code-snippet pre {
  background: rgba(0,0,0,0.7);
  border-radius: var(--radius);
  padding: 1.5rem;
  overflow-x: auto;
  margin-bottom: 1rem;
}

.code-snippet code {
  color: #0f0;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
}

.btn-copy-code {
  width: 100%;
}

/* ---------------------------------------------
   Contact Link (aus deiner Toolbox)
--------------------------------------------- */
.contact {
  position: fixed;
  bottom: 1rem;
  left: 90%;
  transform: translateX(-50%);
  background: var(--btn-bg);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: #333;
  font-weight: bold;
  opacity: 0;
  animation: slideUpFadeIn 0.8s ease-out forwards;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px var(--btn-shadow);
}

@keyframes slideUpFadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.contact::after {
  content: "";
  display: block;
  margin: 0.25rem auto 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--clr1), var(--clr3));
  transition: width 0.4s ease;
}

.contact:hover {
  transform: translateX(-50%) translateY(-3px);
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 6px 16px var(--btn-shadow);
}

.contact:hover::after {
  width: 100%;
}

/* ---------------------------------------------
   Responsive
--------------------------------------------- */
@media (max-width: 768px) {
  .header h1 {
    font-size: 1.8rem;
  }
  
  .tab-nav {
    flex-direction: column;
  }
  
  .tab-btn {
    min-width: auto;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .preview-info {
    grid-template-columns: 1fr;
  }
  
  .resources-grid {
    grid-template-columns: 1fr;
  }
  
  .contact {
    left: 50%;
  }
}


.name-input-wrapper {
  margin-bottom: 1rem;
}

.name-input-wrapper label {
  display: block;
  color: #fff;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

#icon-name {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: var(--radius);
  background: var(--input-bg);
  font-size: 1rem;
  box-shadow: inset 0 2px 6px var(--input-shadow);
}

#icon-name:focus {
  outline: 2px solid rgba(36, 119, 209, 0.5);
}