from fastapi import APIRouter
from fastapi.responses import HTMLResponse

router = APIRouter()


@router.get("/", response_class=HTMLResponse)
def root():
    return """
    <!DOCTYPE html>
    <html lang="de">
    <head>
      <meta charset="UTF-8">
      <title>BreakPilot – Start</title>
    </head>
    <body style="font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif; background:#020617; color:#e5e7eb; margin:40px;">
      <h1>BreakPilot – Lokale App</h1>
      <p>Die App läuft.</p>
      <p>Moderne Oberfläche: <a href="/app" style="color:#22c55e;">/app</a></p>
      <p>Backend-API-Doku: <a href="/api/docs" style="color:#60a5fa;">/api/docs</a></p>
    </body>
    </html>
    """

